Ejemplo n.º 1
0
  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);
    }
  }
Ejemplo n.º 2
0
  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();
  }
Ejemplo n.º 3
0
 public String getSelectedHost() {
   return hostStore.getSelectedHost();
 }
Ejemplo n.º 4
0
 ModelNode baseAddress() {
   return standalone ? baseAddress(STANDALONE_HOST) : baseAddress(hostStore.getSelectedHost());
 }