Package javax.swing.event

Examples of javax.swing.event.TableModelEvent


            table.tableChanged(new TableModelEvent(this));
        }

        public void setItems(Collection col) {
            this.items = col;
            table.tableChanged(new TableModelEvent(this));
        }
View Full Code Here


     *  Clears the table
     */
    public void clear() {
        items.clear();
        infos.clear();
        table.tableChanged(new TableModelEvent(this));
    }
View Full Code Here

    // Finally, the 'fire' on the _acutalModel is triggered from this method
    // rather than from inside the MyJTable code because the add() method used
    // to add a row is also used when loading the table with lots of rows, and
    // in that case we do not want to generate events until all of the rows
    // have been added, so the 'fire' cannot happen there.
    ((MyTableModel)_actualModel).fireTableChanged(new TableModelEvent(_actualModel));
    fireTableChanged(new TableModelEvent(this));
  }
View Full Code Here

     * @param list
     *            the list of plugins
     */
    public void setPlugins(ArrayList list) {
        this.list = list;
        table.tableChanged(new TableModelEvent(this));
    }
View Full Code Here

         
        synchronized (list) {
            list.clear();
            list.addAll(newList);
        }
        fireTableChanged(new TableModelEvent(this));
        return null;
    }
View Full Code Here

    if (addedFlag)
      data.add(nullVector);
    addedFlag = false;
    this.setDataVector(data, createHeaders());
    fireTableChanged(new TableModelEvent(this));
  }
View Full Code Here

    public void sortByColumn(int column, boolean ascending) {
        this.ascending = ascending;
        sortingColumns.removeAllElements();
        sortingColumns.addElement(new Integer(column));
        sort(this);
        super.tableChanged(new TableModelEvent(this));
    }
View Full Code Here

    public void sortByColumn(int column, boolean ascending) {
        this.ascending = ascending;
        sortingColumns.removeAllElements();
        sortingColumns.addElement(new Integer(column));
        sort(this);
        super.tableChanged(new TableModelEvent(this));
    }
View Full Code Here

    public void sortByColumn(int column, boolean ascending) {
        this.ascending = ascending;
        sortingColumns.removeAllElements();
        sortingColumns.addElement(new Integer(column));
        sort(this);
        super.tableChanged(new TableModelEvent(this));
    }
View Full Code Here

        List<Object> subList = objects.subList(start, end);
        for (int x = end - 1; x >= start; x--) {
            objects.remove(x);
        }
        objects.addAll(to, subList);
        super.fireTableChanged(new TableModelEvent(this));
    }
View Full Code Here

TOP

Related Classes of javax.swing.event.TableModelEvent

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.