com.jidesoft.grid
Class AbstractStyleTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.jidesoft.grid.AbstractStyleTableModel
- All Implemented Interfaces:
- StyleModel, StyleTableModel, Serializable, TableModel
public abstract class AbstractStyleTableModel
- extends AbstractTableModel
- implements StyleTableModel
AbstractStyleTableModel adds StyleModel support to AbstractTableModel.
You can use it as replacement for AbstractTableModel. It implements both methods
in StyleModel by returning false in StyleModel.isCellStyleOn() and returning null
in StyleModel.getCellStyleAt(int, int). Subclass can override the default
implementation.
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStyleTableModel
protected AbstractStyleTableModel()
getCellStyleAt
public CellStyle getCellStyleAt(int rowIndex,
int columnIndex)
- Description copied from interface:
StyleModel
- Gets the cell style at the specified row and column.
- Specified by:
getCellStyleAt in interface StyleModel
- Parameters:
rowIndex - the row indexcolumnIndex - the column index
- Returns:
- CellStyle object.
isCellStyleOn
public boolean isCellStyleOn()
- Description copied from interface:
StyleModel
- Checks if the style is on. The CellStyleTable will ignore all the CellStyles defined in this model if this method
returns false.
- Specified by:
isCellStyleOn in interface StyleModel
- Returns:
- true if style is on. Otherwise false.