com.vaadin.navigator.ViewChangeListener.ViewChangeEvent Java Examples
The following examples show how to use
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HomePresenter.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 5 votes |
@Override public void enter(ViewChangeEvent event) { /* * UsernamePasswordAuthenticationToken OR * AnonymousAuthenticationToken */ Authentication a = security.getAuthentication(); getView().initView(a.getName(), a.getClass().getSimpleName()); }
Example #2
Source File: DistributionsView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override public void enter(final ViewChangeEvent event) { softwareModuleTableLayout.getSwModuleTable() .selectEntity(manageDistUIState.getLastSelectedSoftwareModule().orElse(null)); distributionTableLayout.getDistributionSetTable() .selectEntity(manageDistUIState.getLastSelectedDistribution().orElse(null)); }
Example #3
Source File: QuestionnaireView.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { logger.debug("Entering {} view ", QuestionnaireView.NAME); addStyleName(Reindeer.LAYOUT_BLUE); addStyleName("questionnaires"); WebBrowser webBrowser = Page.getCurrent().getWebBrowser(); Integer screenWidth = webBrowser.getScreenWidth(); Integer heightWidth = webBrowser.getScreenHeight(); logger.debug("Browser screen settings {} x {}", screenWidth, heightWidth); if (heightWidth <= 480) { renderingMode = RenderingMode.QUESTION_BY_QUESTION; } // centralLayout.addStyleName("questionnaires"); // new Responsive(centralLayout); RespondentAccount respondent = (RespondentAccount) VaadinServletService.getCurrentServletRequest() .getUserPrincipal(); if (respondent.hasPreferredLanguage()) { preferredLanguage = Language.fromString(respondent.getPreferredLanguage()); } else { preferredLanguage = Language.fromLocale(webBrowser.getLocale()); } questionnaireId = respondent.getGrantedquestionnaireIds().iterator().next(); logger.debug("Trying to fetch questionnair identified with id = {} ", questionnaireId); QuestionnaireDefinitionDTO definition = questionnaireResource.getDefinition(questionnaireId); sectionInfoVisible = definition.isSectionInfoVisible(); QuestionnairePageDTO page = questionnaireResource.getPage(questionnaireId, renderingMode, preferredLanguage, NavigationAction.ENTERING); logger.debug("Displaying page {}/{} with {} questions", page.getMetadata().getNumber(), page.getMetadata() .getCount(), page.getQuestions().size()); questionsLayout = new VerticalLayout(); update(page); Label questionnaireTitle = new Label(definition.getLanguageSettings().getTitle()); questionnaireTitle.addStyleName(Reindeer.LABEL_H1); VerticalLayout mainLayout = new VerticalLayout(); mainLayout.setSizeFull(); mainLayout.setMargin(true); mainLayout.addComponent(questionnaireTitle); mainLayout.addComponent(questionsLayout); // Add the responsive capabilities to the components Panel centralLayout = new Panel(); centralLayout.setContent(mainLayout); centralLayout.setSizeFull(); centralLayout.getContent().setSizeUndefined(); Responsive.makeResponsive(questionnaireTitle); setCompositionRoot(centralLayout); setSizeFull(); }
Example #4
Source File: DashboardView.java From designer-tutorials with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { }
Example #5
Source File: HiddenAdminPresenter.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { getView().initView(); }
Example #6
Source File: UserPresenter.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { getView().initView(); }
Example #7
Source File: SignInPresenter.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { getView().init(); }
Example #8
Source File: SignUpPresenter.java From Vaadin4Spring-MVP-Sample-SpringSecurity with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { getView().initView(); }
Example #9
Source File: XacmlErrorHandler.java From XACML with MIT License | 4 votes |
@Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub }
Example #10
Source File: XacmlAdminConsole.java From XACML with MIT License | 4 votes |
@Override public void enter(ViewChangeEvent event) { // // This needs to be implemented // }
Example #11
Source File: OrderView.java From designer-tutorials with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub }
Example #12
Source File: OldLoginView.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // focus the username field when invitation arrives to the login view invitationTextField.focus(); }
Example #13
Source File: LoginView.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub }
Example #14
Source File: ErrorView.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub }
Example #15
Source File: MyViewImpl.java From gazpachoquest with GNU General Public License v3.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { super.enter(); }
Example #16
Source File: TabMainView.java From jdal with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // do nothing by default }
Example #17
Source File: ComponentViewAdapter.java From jdal with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // do nothing }
Example #18
Source File: AbstractMainView.java From jdal with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // don nothing by default }
Example #19
Source File: UIScopedView.java From framework-spring-tutorial with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #20
Source File: DemoUI.java From sidemenu-addon with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { }
Example #21
Source File: TenantConfigurationDashboardView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #22
Source File: RolloutView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #23
Source File: FilterManagementView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #24
Source File: UploadArtifactView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { smTableLayout.getSoftwareModuleTable() .selectEntity(artifactUploadState.getSelectedBaseSwModuleId().orElse(null)); dropAreaLayout.getUploadButtonLayout().restoreState(); }
Example #25
Source File: DeploymentView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { if (permChecker.hasReadRepositoryPermission()) { distributionTableLayout.getDistributionTable().selectEntity(managementUIState.getLastSelectedDsIdName()); } }
Example #26
Source File: AbstractNotificationView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override public void enter(final ViewChangeEvent event) { // intended to override }
Example #27
Source File: DefaultView.java From framework-spring-tutorial with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #28
Source File: ViewScopedView.java From framework-spring-tutorial with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // This view is constructed in the init() method() }
Example #29
Source File: StatsView.java From designer-tutorials with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { }
Example #30
Source File: PermissionsView.java From designer-tutorials with Apache License 2.0 | 4 votes |
@Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub }