Class FeatureTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.bidib.wizard.mvc.features.view.panel.FeatureTableModel
-
- All Implemented Interfaces:
com.jidesoft.grid.StyleModel,Serializable,TableModel
public class FeatureTableModel extends AbstractTableModel implements com.jidesoft.grid.StyleModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMN_FEATURE_IDstatic intCOLUMN_FEATURE_NAMEstatic intCOLUMN_FEATURE_UNITstatic intCOLUMN_FEATURE_VALUE-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description FeatureTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()com.jidesoft.grid.CellStylegetCellStyleAt(int rowIndex, int columnIndex)Class<?>getColumnClass(int columnIndex)intgetColumnCount()StringgetColumnName(int column)List<org.bidib.jbidibc.messages.Feature>getFeatures()org.bidib.jbidibc.messages.FeaturegetRowAt(int rowIndex)intgetRowCount()ObjectgetValueAt(int rowIndex, int columnIndex)booleanisCellEditable(int row, int column)booleanisCellStyleOn()voidsetValueAt(Object value, int rowIndex, int columnIndex)voidupdateRow(org.bidib.jbidibc.messages.Feature feature)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COLUMN_FEATURE_NAME
public static final int COLUMN_FEATURE_NAME
- See Also:
- Constant Field Values
-
COLUMN_FEATURE_ID
public static final int COLUMN_FEATURE_ID
- See Also:
- Constant Field Values
-
COLUMN_FEATURE_VALUE
public static final int COLUMN_FEATURE_VALUE
- See Also:
- Constant Field Values
-
COLUMN_FEATURE_UNIT
public static final int COLUMN_FEATURE_UNIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCellEditable
public boolean isCellEditable(int row, int column)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
updateRow
public void updateRow(org.bidib.jbidibc.messages.Feature feature)
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
public void setValueAt(Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getRowAt
public org.bidib.jbidibc.messages.Feature getRowAt(int rowIndex)
-
clear
public void clear()
-
getFeatures
public List<org.bidib.jbidibc.messages.Feature> getFeatures()
-
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
-
-