|
|
|
|
@ -8,6 +8,7 @@ import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.AnaliseAcid
|
|
|
|
|
import com.evolute.siprp.client.panels.index.login.LoginPanel;
|
|
|
|
|
import com.evolute.siprp.client.panels.index.recover_pwd.RecoverPwdPanel;
|
|
|
|
|
import com.evolute.siprp.client.vo.Utilizador;
|
|
|
|
|
import com.google.gwt.user.client.History;
|
|
|
|
|
import com.google.gwt.user.client.ui.Composite;
|
|
|
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
|
|
|
|
|
|
@ -77,7 +78,8 @@ public class PageNavigation
|
|
|
|
|
{
|
|
|
|
|
panelsCache.put( NavigationConstants.LOGIN_PANEL, new LoginPanel() );
|
|
|
|
|
}
|
|
|
|
|
gotoPage( ( LoginPanel ) panelsCache.get( NavigationConstants.LOGIN_PANEL ) );
|
|
|
|
|
gotoPage( ( LoginPanel ) panelsCache.get( NavigationConstants.LOGIN_PANEL ) );
|
|
|
|
|
History.newItem( String.valueOf( NavigationConstants.LOGIN_PANEL ) );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case NavigationConstants.RECOVER_PWD_PANEL:
|
|
|
|
|
@ -87,6 +89,7 @@ public class PageNavigation
|
|
|
|
|
panelsCache.put( NavigationConstants.RECOVER_PWD_PANEL, new RecoverPwdPanel() );
|
|
|
|
|
}
|
|
|
|
|
gotoPage( ( RecoverPwdPanel ) panelsCache.get( NavigationConstants.RECOVER_PWD_PANEL ) );
|
|
|
|
|
History.newItem( String.valueOf( NavigationConstants.RECOVER_PWD_PANEL ) );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case NavigationConstants.APP_MAIN_PANEL:
|
|
|
|
|
@ -96,6 +99,7 @@ public class PageNavigation
|
|
|
|
|
panelsCache.put( NavigationConstants.APP_MAIN_PANEL, new MainPanel() );
|
|
|
|
|
}
|
|
|
|
|
gotoPage( ( MainPanel ) panelsCache.get( NavigationConstants.APP_MAIN_PANEL) );
|
|
|
|
|
History.newItem( String.valueOf( NavigationConstants.APP_MAIN_PANEL ) );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL:
|
|
|
|
|
@ -105,6 +109,7 @@ public class PageNavigation
|
|
|
|
|
panelsCache.put( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL, new AnaliseAcidentesTrabalhoPanel() );
|
|
|
|
|
}
|
|
|
|
|
gotoPage( ( AnaliseAcidentesTrabalhoPanel ) panelsCache.get( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL ) );
|
|
|
|
|
History.newItem( String.valueOf( NavigationConstants.ANALISE_ACIDENTES_TRABALHO_PANEL ) );
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
|