Examples of UITableModelDefault


Examples of net.sourceforge.javautil.ui.model.impl.UITableModelDefault

     
    }
  }
 
  protected UITableModelDefault getCommandTable () {
    UITableModelDefault dtm = new UITableModelDefault();
    dtm.setColumnHeaders("Command", "Description");
    dtm.setColumnWidths(25, 50);
   
    List<String> commands = set.getCommandNames();
    Collections.sort(commands);
   
    for (String command : commands) {
      CommandLineCommand clc = set.createCommand(command);
      dtm.addRow(new Object[] { command, clc.getDescription() });
    }
   
    return dtm;
  }
View Full Code Here

Examples of net.sourceforge.javautil.ui.model.impl.UITableModelDefault

        ((Exception)results).printStackTrace(writer);
      }
    } else if (results != null) {
      if (results.getClass().isArray()) results = CollectionUtil.asList(results);
      if (results instanceof Collection) {
        this.showTable( new UITableModelDefault((Collection) results));
      } else if (results instanceof Map) {
        this.showTable( new UITableModelDefault((Map) results, "Key", "Value"));
      } else
        this.info(String.valueOf(results));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.