public class NavigationtestUI extends UI { @Override public void init(VaadinRequest request) { // Create Navigator, use the UI content layout to display the views Navigator navigator = new Navigator(this, getContent()); // Add some Views navigator.addView(MainView.NAME, new MainView()); // no fragment // #count will be a new instance each time we navigate to it, counts: navigator.addView(CountView.NAME, CountView.class); // Navigate to view navigator.navigate(); } }
private void initNavigator() { navigator = new Navigator(this, contentPanel); navigator.addView(UiState.ServiceConfigurationView.name(), new ConfigView(this)); navigator.addView(UiState.MbeansView.name(), new MBeansView(this)); navigator.addView(UiState.ResultView.name(), new ResultView()); navigator.addView(UiState.MbeansDetection.name(), new Navigator.EmptyView()); navigator.addView(UiState.ResultConfigGeneration.name(), new Navigator.EmptyView());
private void initNavigator() { navigator = new Navigator(this, contentPanel); navigator.addView(UiState.ServiceConfigurationView.name(), new ConfigView(this)); navigator.addView(UiState.MbeansView.name(), new MBeansView(this)); navigator.addView(UiState.ResultView.name(), new ResultView()); navigator.addView(UiState.MbeansDetection.name(), new Navigator.EmptyView()); navigator.addView(UiState.ResultConfigGeneration.name(), new Navigator.EmptyView());
public static final String SOMEPAGE = null; Navigator navigator; SomePage somePageInstance = null; protected void init(VaadinRequest request) { InitPortlet.initPortlet(this); // Create a navigator to control the views navigator = new Navigator(this, this); somePageInstance = new SomePage(); navigator.addView(SOMEPAGE, somePageInstance);
Navigator navigator = new Navigator(this, this); navigator.addView("viewStuff", new ViewStuff());
navigator.addProvider(new ManagementViewProvider()); setNavigator(navigator); navigator.addView(EMPTY_VIEW, new Navigator.EmptyView());
public void loadTopLevelNavigator() { Navigator navigator = new Navigator(UI.getCurrent(), this.menuLayout.getContentContainer()); for (IkasanUIView view : this.views.get("topLevel").getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } }
navigator.addProvider(new ManagementViewProvider()); setNavigator(navigator); navigator.addView(EMPTY_VIEW, new Navigator.EmptyView());
public void loadTopLevelNavigator() { Navigator navigator = new Navigator(UI.getCurrent(), this.menuLayout.getContentContainer()); for (IkasanUIView view : this.views.get("topLevel").getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } }
@Override protected void init(VaadinRequest request) { nav = new Navigator(this, this); for (Views view : Views.values()) { nav.addView(view.name(), view.viewClass); } nav.navigateTo(Views.MAIN.name()); }
public void loadNavigator(String name) { IkasanUINavigator uiNavigator = this.views.get(name); uiNavigator.setParentContainer(this.menuLayout.getContentContainer()); Navigator navigator = new Navigator(UI.getCurrent(), uiNavigator.getContainer()); for (IkasanUIView view : uiNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } }
public void buttonClick(ClickEvent event) { Navigator navigator = new Navigator(UI.getCurrent(), menuLayout.getContentContainer()); for (IkasanUIView view : topLevelNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } UI.getCurrent().getNavigator().navigateTo("mappingView"); navigator = new Navigator(UI.getCurrent(), mappingNavigator.getContainer()); for (IkasanUIView view : mappingNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } } });
public void buttonClick(ClickEvent event) { setEditable(false); mappingConfigurationFunctionalGroup.saveOrCancelButtonPressed(); Navigator navigator = new Navigator(UI.getCurrent(), menuLayout.getContentContainer()); for (IkasanUIView view : topLevelNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } saveRequiredMonitor.manageSaveRequired("mappingView"); navigator = new Navigator(UI.getCurrent(), mappingNavigator.getContainer()); for (IkasanUIView view : mappingNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } } });
public void buttonClick(ClickEvent event) { setEditable(false); mappingConfigurationFunctionalGroup.saveOrCancelButtonPressed(); Navigator navigator = new Navigator(UI.getCurrent(), menuLayout.getContentContainer()); for (IkasanUIView view : topLevelNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } saveRequiredMonitor.manageSaveRequired("mappingView"); navigator = new Navigator(UI.getCurrent(), mappingNavigator.getContainer()); for (IkasanUIView view : mappingNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } } });
public void buttonClick(ClickEvent event) { try { mappingConfigurationService.addMappingConfiguration(mappingConfiguration, parameterNames); Navigator navigator = new Navigator(UI.getCurrent(), mappingNavigator.getParentContainer()); for (IkasanUIView view : mappingNavigator.getIkasanViews()) { navigator.addView(view.getPath(), view.getView()); } UI.getCurrent().getNavigator().navigateTo("existingMappingConfigurationPanel"); newMappingConfigurationPanel.setMappingConfiguration(mappingConfiguration); newMappingConfigurationPanel.populateMappingConfigurationForm(); close(); } catch(Exception e) { e.printStackTrace(); Notification.show("Error creating Mapping Configuration: " + e.getMessage(), Notification.Type.ERROR_MESSAGE); } } });
@Override public void itemClick(ItemClickEvent event) { MappingConfiguration mappingConfiguration = this.mappingConfigurationService .getMappingConfigurationById((Long)event.getItemId()); this.visibilityGroup.setVisible(PolicyLinkTypeConstants.MAPPING_CONFIGURATION_LINK_TYPE, (Long)event.getItemId()); Navigator navigator = new Navigator(UI.getCurrent(), mapingNavigator.getParentContainer()); for (IkasanUIView view : mapingNavigator.getIkasanViews()) { logger.debug("Adding view:" + view.getPath()); navigator.addView(view.getPath(), view.getView()); } this.mappingConfigurationPanel.setMappingConfiguration(mappingConfiguration); this.mappingConfigurationPanel.populateMappingConfigurationForm(); this.mappingConfigurationConfigurationValuesTable.populateTable(mappingConfiguration); UI.getCurrent().getNavigator().navigateTo("existingMappingConfigurationPanel"); } }
navigator.addView(view.getPath(), view.getView());