Class AspectTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.bidib.wizard.mvc.stepcontrol.view.AspectTableModel
- All Implemented Interfaces:
com.jidesoft.grid.HeaderStyleModel,com.jidesoft.grid.HierarchicalTableModel,com.jidesoft.grid.StyleModel,Serializable,TableModel
public class AspectTableModel
extends AbstractTableModel
implements com.jidesoft.grid.HierarchicalTableModel, com.jidesoft.grid.StyleModel, com.jidesoft.grid.HeaderStyleModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionAspectTableModel(com.jgoodies.binding.list.IndirectListModel<StepControlAspect> listModel, String[] columnNames, StepControlModel stepControlModel) -
Method Summary
Modifier and TypeMethodDescriptioncom.jidesoft.grid.CellStylegetCellStyleAt(int rowIndex, int columnIndex) getChildValueAt(int row) intgetColumnName(int column) Returns the column name.com.jidesoft.grid.CellStylegetHeaderStyleAt(int rowIndex, int columnIndex) intgetValueAt(int rowIndex, int columnIndex) booleanhasChild(int row) booleanisCellEditable(int rowIndex, int columnIndex) booleanbooleanbooleanisExpandable(int row) booleanbooleanisHierarchical(int row) voidvoidsetCollapsed(boolean collapsed) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
COLUMN_ASPECT
public static final int COLUMN_ASPECT- See Also:
-
COLUMN_POSITION
public static final int COLUMN_POSITION- See Also:
-
COLUMN_COUNT
public static final int COLUMN_COUNT- See Also:
-
-
Constructor Details
-
AspectTableModel
public AspectTableModel(com.jgoodies.binding.list.IndirectListModel<StepControlAspect> listModel, String[] columnNames, StepControlModel stepControlModel)
-
-
Method Details
-
removeAllRows
public void removeAllRows() -
getColumnName
Returns the column name.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Returns:
- a name for this column using the string value of the appropriate member in
columnIdentifiers. IfcolumnIdentifiersdoes not have an entry for this index, returns the default name provided by the superclass.
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
getCellStyleAt
public com.jidesoft.grid.CellStyle getCellStyleAt(int rowIndex, int columnIndex) - Specified by:
getCellStyleAtin interfacecom.jidesoft.grid.StyleModel
-
isCellStyleOn
public boolean isCellStyleOn()- Specified by:
isCellStyleOnin interfacecom.jidesoft.grid.StyleModel
-
hasChild
public boolean hasChild(int row) - Specified by:
hasChildin interfacecom.jidesoft.grid.HierarchicalTableModel
-
isHierarchical
public boolean isHierarchical(int row) - Specified by:
isHierarchicalin interfacecom.jidesoft.grid.HierarchicalTableModel
-
getChildValueAt
- Specified by:
getChildValueAtin interfacecom.jidesoft.grid.HierarchicalTableModel
-
isExpandable
public boolean isExpandable(int row) - Specified by:
isExpandablein interfacecom.jidesoft.grid.HierarchicalTableModel
-
getHeaderStyleAt
public com.jidesoft.grid.CellStyle getHeaderStyleAt(int rowIndex, int columnIndex) - Specified by:
getHeaderStyleAtin interfacecom.jidesoft.grid.HeaderStyleModel
-
isHeaderStyleOn
public boolean isHeaderStyleOn()- Specified by:
isHeaderStyleOnin interfacecom.jidesoft.grid.HeaderStyleModel
-
isCollapsed
public boolean isCollapsed()- Returns:
- the collapsed
-
setCollapsed
public void setCollapsed(boolean collapsed) - Parameters:
collapsed- the collapsed to set
-