Package org.xnap.commons.gui.table

Examples of org.xnap.commons.gui.table.TableSorter


       
    resetQueueTableAction = new ResetQueueTableAction();
   
    tablePopupMenu = new JPopupMenu();
   
    TableSorter sorter = new TableSorter(getTableModel());
    queueTable = new ColoredTable(sorter);
    queueTableLayout = new TableLayout(queueTable);
    initializeTableLayout();
    queueTableLayout.getHeaderPopupMenu().add(new JMenuItem(resetQueueTableAction));
    add(new JScrollPane(queueTable), BorderLayout.CENTER);
View Full Code Here


    }
  }

  public SimpleContact[] getAlllContacts()
  {
    TableSorter sorter = (TableSorter)contactTable.getModel();
    SimpleContact[] result = new SimpleContact[sorter.getRowCount()];
    for (int i = 0; i < result.length; i++) {
      int row = sorter.mapToIndex(i);
      result[i] = contactTableModel.getContact(row);
    }
    return result;
  }
View Full Code Here

    tablePopupMenu.add(Builder.createMenuItem(editAction));
    tablePopupMenu.addSeparator();   
    tablePopupMenu.add(Builder.createMenuItem(deleteAction));

    contactTableModel = new AddressTableModel();
    TableSorter sorter = new TableSorter(contactTableModel);
    contactTable = new ColoredTable(sorter);
    contactTableLayoutManager = new TableLayoutManager(contactTable);
    contactTableLayoutManager.addColumnProperties("displayName", "", 180, true);
    contactTableLayoutManager.addColumnProperties("company", "", 80, true);
    contactTableLayoutManager.addColumnProperties("faxNumber", "", 60, true);
View Full Code Here

    return data;
  }
 
  private void initialize() {
    jobTableModel = new KeyValueTableModel();
    TableSorter sorter = new TableSorter(jobTableModel);
    jobTable = new ColoredTable(sorter);
    jobTable.setShowVerticalLines(true);
    jobTable.setShowHorizontalLines(false);
    jobTable.setAutoCreateColumnsFromModel(true);
    jobTable.setIntercellSpacing(new java.awt.Dimension(2, 1));
View Full Code Here

TOP

Related Classes of org.xnap.commons.gui.table.TableSorter

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.