Package net.sphene.goim.serverbrowser.models

Examples of net.sphene.goim.serverbrowser.models.MasterServer


  }

  @Override
  public boolean performFinish() {
    MasterServerList masterServerList = ServerBrowserPlugin.getPreferenceObject(MasterServerList.class);
    MasterServer masterServer = new MasterServer(protocolId,defaultAddMasterServerPage.txtMasterServerAddress.getText());
    masterServer.name = defaultAddMasterServerPage.txtMasterServerName.getText();
    masterServerList.add(masterServer);
    return true;
  }
View Full Code Here


      return true;
    }

    public String getColumnText(Object element, int columnIndex) {
      if (element instanceof MasterServer) {
        MasterServer masterServer = (MasterServer) element;
        switch (columnIndex) {
        case 0:
          return ("".equals(masterServer.name) ? masterServer.address
              : masterServer.name);
        default:
View Full Code Here

    public Object[] getChildren(Object parentElement) {
      if (parentElement == null || "".equals(parentElement)) {
        return masterServerList.toArray();
      } else if (parentElement instanceof MasterServer) {
        MasterServer masterServer = (MasterServer) parentElement;
        GameServerListWrapper serverList = masterServer.getServerList(false);
        serverList.refresh(false);
        return serverList.getServerList();
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of net.sphene.goim.serverbrowser.models.MasterServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.