Пример #1
0
  /**
   * If the server class has a static method called gerServerProperties the default properties will
   * be used to create the list with default values. If this is the case the gui will not allow
   * deletion of properties or allowing to add additional properties. If the server class do not
   * have any
   *
   * @param servername
   */
  public static void edit(String servername) {
    XMLServers serversconfig = getCache();
    Iterator<XMLServer> servers = serversconfig.getServer().iterator();

    while (servers.hasNext()) {
      XMLServer server = servers.next();

      if (server.getName().equals(servername)) {

        List<String> serverclasses = Populate.getServerClasses();

        boolean hasdefaultproperties = replaceServerProperties(server);

        render(server, serverclasses, hasdefaultproperties);
      }
    }
    render();
  }
Пример #2
0
 public static void add() {
   List<String> serverclasses = Populate.getServerClasses();
   render(serverclasses);
 }