| 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
com.jidesoft.grid.DefaultUndoableTableModel
public class DefaultUndoableTableModel
Default undoable TableModel that implements TableUndoableSupport over DefaultTableModel.
| Field Summary | 
|---|
| Fields inherited from class javax.swing.table.DefaultTableModel | 
|---|
columnIdentifiers, dataVector | 
| Fields inherited from class javax.swing.table.AbstractTableModel | 
|---|
listenerList | 
| Constructor Summary | |
|---|---|
DefaultUndoableTableModel()
 | 
|
DefaultUndoableTableModel(int rowCount,
                          int columnCount)
 | 
|
DefaultUndoableTableModel(Object[][] data,
                          Object[] columnNames)
 | 
|
DefaultUndoableTableModel(Object[] columnNames,
                          int rowCount)
 | 
|
DefaultUndoableTableModel(Vector columnNames,
                          int rowCount)
 | 
|
DefaultUndoableTableModel(Vector data,
                          Vector columnNames)
 | 
|
| Method Summary | |
|---|---|
 void | 
beginCompoundEdit(boolean isUndoRedo)
Begins the edit of the model.  | 
 void | 
endCompoundEdit()
Ends the edit of the model.  | 
 void | 
fireTableChanged(TableModelEvent e)
 | 
 UndoableEditSupport | 
getUndoableEditSupport()
Gets the UndoableEditSupport instance to add UndoableListener.  | 
 UndoManager | 
getUndoManager()
Gets the UndoManager.  | 
 void | 
insertRow(int row,
          Vector rowData)
 | 
 void | 
removeRow(int row)
 | 
 void | 
setValueAt(Object aValue,
           int rowIndex,
           int columnIndex)
 | 
 void | 
undoableInsertRow(int row,
                  Vector<Object> rowData)
Inserts a row at the designated row index.  | 
 void | 
undoableRemoveRow(int row)
Removes a row at the designated row index.  | 
 void | 
undoableUpdateCell(int row,
                   int column,
                   Object value)
Updates a cell at the designated cell with the new cell data .  | 
 void | 
undoableUpdateRow(int rowIndex,
                  Vector<Object> rowData)
Updates a row at the designated row index with the new row data .  | 
| Methods inherited from class javax.swing.table.DefaultTableModel | 
|---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount | 
| Methods inherited from class javax.swing.table.AbstractTableModel | 
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultUndoableTableModel()
public DefaultUndoableTableModel(int rowCount,
                                 int columnCount)
public DefaultUndoableTableModel(Vector columnNames,
                                 int rowCount)
public DefaultUndoableTableModel(Object[] columnNames,
                                 int rowCount)
public DefaultUndoableTableModel(Vector data,
                                 Vector columnNames)
public DefaultUndoableTableModel(Object[][] data,
                                 Object[] columnNames)
| Method Detail | 
|---|
public UndoManager getUndoManager()
UndoableSupport
getUndoManager in interface UndoableSupportpublic UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport in interface UndoableSupport
public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
setValueAt in interface TableModelsetValueAt in class DefaultTableModel
public void insertRow(int row,
                      Vector rowData)
insertRow in class DefaultTableModelpublic void removeRow(int row)
removeRow in class DefaultTableModelpublic void fireTableChanged(TableModelEvent e)
fireTableChanged in class AbstractTableModelpublic void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit in interface UndoableSupportisUndoRedo - the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit in interface UndoableSupport
public void undoableInsertRow(int row,
                              Vector<Object> rowData)
TableUndoableSupport
undoableInsertRow in interface TableUndoableSupportrow - the row indexrowData - the row data
public void undoableUpdateRow(int rowIndex,
                              Vector<Object> rowData)
TableUndoableSupport
undoableUpdateRow in interface TableUndoableSupportrowIndex - the row indexrowData - the row datapublic void undoableRemoveRow(int row)
TableUndoableSupport
undoableRemoveRow in interface TableUndoableSupportrow - the row index
public void undoableUpdateCell(int row,
                               int column,
                               Object value)
TableUndoableSupport
undoableUpdateCell in interface TableUndoableSupportrow - the row indexcolumn - the row indexvalue - the cell value
  | 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||