private void refreshServerList() { if (FilterType.HOST.equals(serverStore.getFilter())) { String selectedHost = hostStore.getSelectedHost(); List<Server> serverModel = Collections.EMPTY_LIST; if (selectedHost != null) { serverModel = serverStore.getServerForHost(hostStore.getSelectedHost()); } getView().updateServerList(serverModel); } else if (FilterType.GROUP.equals(serverStore.getFilter())) { List<Server> serverModel = serverStore.getServerForGroup(serverStore.getSelectedGroup()); getView().updateServerList(serverModel); } }
public void onLaunchCopyWizard(final Server server) { window = new DefaultWindow("Copy Server Configuration"); window.setWidth(480); window.setHeight(380); CopyServerWizard wizard = new CopyServerWizard(DomainRuntimePresenter.this); Widget widget = wizard.asWidget(); wizard.setCurrentServerSelection(server); wizard.setHosts(hostStore.getHostNames(), hostStore.getSelectedHost()); window.trapWidget(widget); window.setGlassEnabled(true); window.center(); }
public String getSelectedHost() { return hostStore.getSelectedHost(); }
ModelNode baseAddress() { return standalone ? baseAddress(STANDALONE_HOST) : baseAddress(hostStore.getSelectedHost()); }