Examples of JXTable


Examples of org.jdesktop.swingx.JXTable

        standaloneLinks.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
       
        JComponent renderedLinks = new JXPanel(new BorderLayout());
        linkList = new JXList();
       
        linkTable = new JXTable();
        linkTable.setVisibleRowCount(10);

        linkTree = new JXTree();
       
        JXPanel top = new JXPanel(new GridLayout(1, 2, 20, 10));
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

                return StringValues.TO_STRING.getString(value);
            }
        }));
        contents.add(list, list.getName());
       
        table = new JXTable();
        contents.add(table, "table");
       
        tree = new JXTree();
        tree.setName("tree");
        tree.setCellRenderer(new DefaultTreeRenderer(new StringValue() {
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

        setLayout(new BorderLayout());
       
        searchPanel = SearchFactory.getInstance().createFindBar();
        add(searchPanel, BorderLayout.NORTH);
       
        table = new JXTable();
        table.setName("searchTable");
        list = new JXList(true);
        tree = new JXTree();
        treeTable = new JXTreeTable();
       
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

     */
    public static class XTableProperty implements PropertySupport {

        public Object getSessionState(Component c) {
            checkComponent(c);
            JXTable table = (JXTable) c;
            List<ColumnState> columnStates = new ArrayList<ColumnState>();
            List<TableColumn> columns = table.getColumns(true);
            List<TableColumn> visibleColumns = table.getColumns();
            for (TableColumn column : columns) {
                columnStates.add(new ColumnState((TableColumnExt) column,
                        visibleColumns.indexOf(column)));
            }
            XTableState tableState = new XTableState(columnStates.toArray(new ColumnState[columnStates.size()]));
            tableState.setHorizontalScrollEnabled(table.isHorizontalScrollEnabled());
            List<? extends SortKey> sortKeys = null;
            if (table.getRowSorter() != null) {
                sortKeys = table.getRowSorter().getSortKeys();
            }
            // PENDING: store all!
            if ((sortKeys != null) && (sortKeys.size() >0)) {
                tableState.setSortKey(sortKeys.get(0));
            }
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

            return tableState;
        }

        public void setSessionState(Component c, Object state) {
            checkComponent(c);
            JXTable table = (JXTable) c;
            XTableState tableState = ((XTableState) state);
            ColumnState[] columnState = tableState.getColumnStates();
            List<TableColumn> columns = table.getColumns(true);
            if (canRestore(columnState, columns)) {
                for (int i = 0; i < columnState.length; i++) {
                    columnState[i].configureColumn((TableColumnExt) columns
                            .get(i));
                }
                restoreVisibleSequence(columnState, table.getColumnModel());
            }
            table.setHorizontalScrollEnabled(tableState
                    .getHorizontalScrollEnabled());
            if (tableState.getSortKey() != null) {
                table.getRowSorter().setSortKeys(
                        Collections.singletonList(tableState.getSortKey()));
            }
        }
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

//------------------ init ui
   
    private void initComponents() {
        setLayout(new BorderLayout());
       
        table = new JXTable();
        list = new JXList(true);
        tree = new JXTree();
        treeTable = new JXTreeTable();
       
        table.setColumnControlVisible(true);
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

    super( new BorderLayout() );

    loadTestLog = log;

    logTableModel = new LoadTestLogTableModel();
    logTable = new JXTable( logTableModel );
    logTable.setHorizontalScrollEnabled( true );
    logTable.setColumnControlVisible( true );
    logTable.addMouseListener( new LoadTestLogTableMouseListener() );

    TableColumnModel columnModel = logTable.getColumnModel();
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

    section.finish();

    metrics.addSection( "Definition Parts" );
    section = metrics.addSection( "Operations" );
    operationsTableModel = new OperationsTableModel();
    JXTable table = section.addTable( operationsTableModel );
    table.getColumn( 1 ).setPreferredWidth( 60 );
    table.getColumn( 2 ).setPreferredWidth( 60 );
    section.finish();

    table.packColumn( 3, 10 );
    if( table.getColumn( 3 ).getPreferredWidth() < 250 )
      table.getColumn( 3 ).setPreferredWidth( 250 );

    return new JScrollPane( metrics );
  }
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

  }

  private JComponent buildLog()
  {
    tableModel = new MonitorLogTableModel();
    logTable = new JXTable( 1, 2 );
    logTable.setColumnControlVisible( true );
    logTable.setModel( tableModel );
    logTable.setHorizontalScrollEnabled( true );
    logTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );
View Full Code Here

Examples of org.jdesktop.swingx.JXTable

  public JStatisticsTable( WsdlLoadTest loadTest )
  {
    super( new BorderLayout() );
    this.loadTest = loadTest;

    statisticsTable = new JXTable( loadTest.getStatisticsModel() );
    statisticsTable.setColumnControlVisible( true );
    statisticsTable.getTableHeader().setReorderingAllowed( false );

    statisticsTable.addMouseListener( new StatisticsTableMouseListener() );
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.