Package ca.odell.glazedlists.swing

Examples of ca.odell.glazedlists.swing.EventTableModel


                i.remove();
            }
        }
        pluginsOther = new SortedList<NameAndVersion>(outsideUserDir);
        tableFormatOther = new PluginTableFormat();
        EventTableModel tableModel = new EventTableModel(pluginsOther, tableFormatOther);
        tableOther.setModel(tableModel);
        tableOther.getColumnModel().getColumn(0).setPreferredWidth(200);
        tableOther.getColumnModel().getColumn(1).setPreferredWidth(50);
        tableOther.getColumnModel().getColumn(2).setPreferredWidth(50);

        tableFormat = new PluginTableFormat();
        EventTableModel tableModelOther = new EventTableModel(plugins, tableFormat);
        table.setModel(tableModelOther);
        table.getColumnModel().getColumn(0).setPreferredWidth(200);
        table.getColumnModel().getColumn(1).setPreferredWidth(50);
        table.getColumnModel().getColumn(2).setPreferredWidth(50);
    }
View Full Code Here


    close.addActionListener(closeAction);

    help.addActionListener(new HelpAction(frame.helpDiag, GUIGlobals.exportCustomizationHelp,
                                          "Help"));

    EventTableModel tableModel = new EventTableModel(Globals.prefs.customExports.getSortedList(), new ExportTableFormat());
    table = new JTable(tableModel);
    TableColumnModel cm = table.getColumnModel();
    cm.getColumn(0).setPreferredWidth(GUIGlobals.EXPORT_DIALOG_COL_0_WIDTH);
    cm.getColumn(1).setPreferredWidth(GUIGlobals.EXPORT_DIALOG_COL_1_WIDTH);
    cm.getColumn(2).setPreferredWidth(GUIGlobals.EXPORT_DIALOG_COL_2_WIDTH);
View Full Code Here

    /**
     * Display a frame for browsing issues.
     */
    private JPanel constructView() {
        // build the table
        EventTableModel tableModel = new EventTableModel(data, new IntegerTableFormat());
        JTable table = new JTable(tableModel);
        JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
       
        // build the buttons
        connectButton = new JButton(data.isConnected() ? "Disconnect" : "Connect");
View Full Code Here

    /**
     * Display a frame for browsing issues.
     */
    private JPanel constructView() {
        // build the table
        EventTableModel tableModel = new EventTableModel(data, new IntegerTableFormat());
        JTable table = new JTable(tableModel);
        JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
       
        // build the text entry
        textEnter = new JTextField();
View Full Code Here

        return (EventTableModel) getModel();
    }

    /** {@inheritDoc} */
    public Rectangle getCellRect(int row, int column, boolean includeSpacing) {
        final EventTableModel eventTableModel = getEventTableModel();

        // sometimes JTable asks for a cellrect that doesn't exist anymore, due
        // to an editor being installed before a bunch of rows were removed.
        // In this case, just return an empty rectangle, since it's going to
        // be discarded anyway
        if(row >= eventTableModel.getRowCount()) {
            return new Rectangle();
        }

        // if it's the separator row, return the entire row as one big rectangle
        Object rowValue = eventTableModel.getElementAt(row);
        if(rowValue instanceof SeparatorList.Separator) {
            Rectangle firstColumn = super.getCellRect(row, 0, includeSpacing);
            Rectangle lastColumn = super.getCellRect(row, getColumnCount() - 1, includeSpacing);
            return firstColumn.union(lastColumn);

View Full Code Here

        selectedProjectsModel.setSelectionMode( ListSelection.MULTIPLE_INTERVAL_SELECTION_DEFENSIVE );
       
        FilterList textFilteredIssues = new FilterList( sortedProjects,
            new TextComponentMatcherEditor( filterEditor, new ProjectTextFilterator()) );

        EventTableModel statusTableModel = new EventTableModel( textFilteredIssues, format );
      
        statusTable = new JTable(statusTableModel);
        statusTable.setShowVerticalLines(true);
        statusTable.setShowHorizontalLines(false);
        statusTable.setSelectionModel( selectedProjectsModel );
View Full Code Here

  public TraceViewPanel(TraceModel traceModel) {

    EventList methodList = new BasicEventList();
    methodList.addAll(traceModel.getMethodKeyBlackList());
    SortedList sortedMethodList = new SortedList(methodList, NoOpComparator.INSTANCE);
    TableModel tableModel = new EventTableModel(sortedMethodList, new MethodKeyTableFormat());
    blackListTable = new JTable();
    blackListTable.setModel(tableModel);
    new TableComparatorChooser(blackListTable, sortedMethodList, true);
    JTabbedPane tabbedPane = new JTabbedPane(SwingConstants.BOTTOM, JTabbedPane.WRAP_TAB_LAYOUT);
    traceTree = new JTree(traceModel.getRootNode());
View Full Code Here

    accumulatorsEventList = new FilterList(accumulatorsEventList, classMatcherEditor);
    accumulatorsEventList = new FilterList(accumulatorsEventList, methodMatcherEditor);
    accumulatorsEventList = new FilterList(accumulatorsEventList, signatureMatcherEditor);
    TotalsEventList totalsEventList = new TotalsEventList(accumulatorsEventList);
    SortedList sortedAccumulators = new SortedList(accumulatorsEventList, NoOpComparator.INSTANCE);
    JTable accumulatorsTable = new JTable(new EventTableModel(sortedAccumulators, tableFormat));
    JTable totalsTable = new JTable(new EventTableModel(totalsEventList, tableFormat),
        accumulatorsTable.getColumnModel()) {

      public void columnMarginChanged(ChangeEvent e) {

        // LOG.info("columnMarginChanged");
View Full Code Here

TOP

Related Classes of ca.odell.glazedlists.swing.EventTableModel

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.