|
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
com.jidesoft.grid.AbstractUndoableTableModel
public abstract class AbstractUndoableTableModel
Abstract undoable table model that extends AbstractTableModel.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
AbstractUndoableTableModel()
The Constructor. |
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. |
abstract boolean |
insertRowImpl(int rowIndex,
Vector<Object> rowData)
Inserts a row in this table model. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns true. |
abstract boolean |
removeRowImpl(int rowIndex)
Removes a row in this table model. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
To support undoable, this method is made final. |
void |
undoableInsertRow(int rowIndex,
Vector<Object> rowData)
Inserts a row at the designated row index. |
void |
undoableRemoveRow(int rowIndex)
Removes a row at the designated row index. |
void |
undoableUpdateCell(int rowIndex,
int columnIndex,
Object value)
Updates a cell at the designated cell with the new cell data . |
void |
undoableUpdateRow(int rowIndex,
Vector<Object> newRowData)
Updates a row at the designated row index with the new row data . |
abstract boolean |
updateCellImpl(Object value,
int rowIndex,
int columnIndex)
Updates a cell in this table model. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
---|
getColumnCount, getRowCount, getValueAt |
Constructor Detail |
---|
public AbstractUndoableTableModel()
Method Detail |
---|
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queried
public final void setValueAt(Object aValue, int rowIndex, int columnIndex)
updateCellImpl(Object, int, int)
to change the
cell value without firing an event.
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
aValue
- value to assign to cellrowIndex
- row of cellcolumnIndex
- column of cellpublic void fireTableChanged(TableModelEvent e)
fireTableChanged
in class AbstractTableModel
public UndoManager getUndoManager()
UndoableSupport
getUndoManager
in interface UndoableSupport
public UndoableEditSupport getUndoableEditSupport()
UndoableSupport
getUndoableEditSupport
in interface UndoableSupport
public void beginCompoundEdit(boolean isUndoRedo)
UndoableSupport
beginCompoundEdit
in interface UndoableSupport
isUndoRedo
- the flag to indicate if this operation is triggered by undo/redopublic void endCompoundEdit()
UndoableSupport
endCompoundEdit
in interface UndoableSupport
public void undoableInsertRow(int rowIndex, Vector<Object> rowData)
TableUndoableSupport
undoableInsertRow
in interface TableUndoableSupport
rowIndex
- the row indexrowData
- the row datapublic void undoableRemoveRow(int rowIndex)
TableUndoableSupport
undoableRemoveRow
in interface TableUndoableSupport
rowIndex
- the row indexpublic void undoableUpdateRow(int rowIndex, Vector<Object> newRowData)
TableUndoableSupport
undoableUpdateRow
in interface TableUndoableSupport
rowIndex
- the row indexnewRowData
- the row datapublic void undoableUpdateCell(int rowIndex, int columnIndex, Object value)
TableUndoableSupport
undoableUpdateCell
in interface TableUndoableSupport
rowIndex
- the row indexcolumnIndex
- the row indexvalue
- the cell valuepublic abstract boolean insertRowImpl(int rowIndex, Vector<Object> rowData)
rowIndex
- the row indexrowData
- the row data
public abstract boolean removeRowImpl(int rowIndex)
rowIndex
- the row index
public abstract boolean updateCellImpl(Object value, int rowIndex, int columnIndex)
value
- the cell valuerowIndex
- the row indexcolumnIndex
- the row index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |