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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMN_ASPECTstatic intCOLUMN_COUNTstatic intCOLUMN_POSITION-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description AspectTableModel(com.jgoodies.binding.list.IndirectListModel<StepControlAspect> listModel, String[] columnNames, StepControlModel stepControlModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.jidesoft.grid.CellStylegetCellStyleAt(int rowIndex, int columnIndex)ObjectgetChildValueAt(int row)intgetColumnCount()StringgetColumnName(int column)Returns the column name.com.jidesoft.grid.CellStylegetHeaderStyleAt(int rowIndex, int columnIndex)intgetRowCount()ObjectgetValueAt(int rowIndex, int columnIndex)booleanhasChild(int row)booleanisCellEditable(int rowIndex, int columnIndex)booleanisCellStyleOn()booleanisCollapsed()booleanisExpandable(int row)booleanisHeaderStyleOn()booleanisHierarchical(int row)voidremoveAllRows()voidsetCollapsed(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 Detail
-
COLUMN_ASPECT
public static final int COLUMN_ASPECT
- See Also:
- Constant Field Values
-
COLUMN_POSITION
public static final int COLUMN_POSITION
- See Also:
- Constant Field Values
-
COLUMN_COUNT
public static final int COLUMN_COUNT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AspectTableModel
public AspectTableModel(com.jgoodies.binding.list.IndirectListModel<StepControlAspect> listModel, String[] columnNames, StepControlModel stepControlModel)
-
-
Method Detail
-
removeAllRows
public void removeAllRows()
-
getColumnName
public String getColumnName(int column)
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
public Object getValueAt(int rowIndex, int columnIndex)
- 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
public Object getChildValueAt(int row)
- 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
-
-