Package com.cosylab.vdct.inspector
Class InspectorTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- com.cosylab.vdct.inspector.InspectorTableModel
-
- All Implemented Interfaces:
PropertyTableModel
,Serializable
,TableModel
public class InspectorTableModel extends AbstractTableModel implements PropertyTableModel
Insert the type's description here. Creation date: (6.1.2001 23:29:20)- Author:
- Matej Sekoranja
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Fields inherited from interface com.cosylab.vdct.inspector.PropertyTableModel
DISP_NAME, DISP_NONE, DISP_VALUE, DISP_VISIBILITY, HEADERDISP_EYE, HEADERDISP_NONE, HEADERDISP_TEXT
-
-
Constructor Summary
Constructors Constructor Description InspectorTableModel(InspectorInterface inspector)
InspactorTableModel constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getColumnClass(int column)
Insert the method's description here.int
getColumnCount()
getColumnCount method comment.Inspectable
getDataObject()
Insert the method's description here.int
getHeaderDisplayType(int column)
Returns the header display type HEADERDISP_* at the given position.InspectableProperty
getPropertyAt(int row, int column)
Insert the method's description here.int
getPropertyDisplayTypeAt(int row, int column)
Returns the cell display type DISP_* at the given position.int
getRowCount()
getRowCount method comment.Object
getValueAt(int row, int column)
getValueAt method comment.boolean
isCellEditable(int rowIndex, int columnIndex)
Insert the method's description here.void
setDataObject(Inspectable object)
Insert the method's description here.void
setValueAt(Object aValue, int row, int column)
Sets the object value for the cell at column and row.void
updateProperty(InspectableProperty property)
Insert the method's description here.void
updateProperty(String propertyName)
Insert the method's description here.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
InspectorTableModel
public InspectorTableModel(InspectorInterface inspector)
InspactorTableModel constructor comment.- Parameters:
inspector
- inspector
-
-
Method Detail
-
getColumnClass
public Class getColumnClass(int column)
Insert the method's description here. Creation date: (14.11.1999 15:22:35)- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
column
- int- Returns:
- java.lang.Class
-
getColumnCount
public int getColumnCount()
getColumnCount method comment.- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- something
-
getDataObject
public Inspectable getDataObject()
Insert the method's description here. Creation date: (10.1.2001 17:12:58)- Returns:
- com.cosylab.vdct.inspector.Inspectable
-
getPropertyAt
public InspectableProperty getPropertyAt(int row, int column)
Insert the method's description here. Creation date: (11.1.2001 22:17:39)- Specified by:
getPropertyAt
in interfacePropertyTableModel
- Parameters:
column
- columnrow
- int- Returns:
- com.cosylab.vdct.inspector.InspectableProperty
-
getPropertyDisplayTypeAt
public int getPropertyDisplayTypeAt(int row, int column)
Description copied from interface:PropertyTableModel
Returns the cell display type DISP_* at the given position.- Specified by:
getPropertyDisplayTypeAt
in interfacePropertyTableModel
- Parameters:
row
- rowcolumn
- column- Returns:
- something
-
getHeaderDisplayType
public int getHeaderDisplayType(int column)
Description copied from interface:PropertyTableModel
Returns the header display type HEADERDISP_* at the given position.- Specified by:
getHeaderDisplayType
in interfacePropertyTableModel
- Parameters:
column
- column- Returns:
- something
-
getRowCount
public int getRowCount()
getRowCount method comment.- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- something
-
getValueAt
public Object getValueAt(int row, int column)
getValueAt method comment.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
row
- rowcolumn
- column- Returns:
- something
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
Insert the method's description here. Creation date: (6.1.2001 23:41:13)- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
- intcolumnIndex
- int- Returns:
- boolean
-
setDataObject
public void setDataObject(Inspectable object)
Insert the method's description here. Creation date: (10.1.2001 17:12:58)- Parameters:
object
- com.cosylab.vdct.inspector.Inspectable
-
setValueAt
public void setValueAt(Object aValue, int row, int column)
Sets the object value for the cell at column and row. aValue is the new value. This method will generate a tableChanged() notification.- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
- Parameters:
aValue
- the new value. This can be null.row
- the row whose value is to be looked upcolumn
- the column whose value is to be looked up
-
updateProperty
public void updateProperty(InspectableProperty property)
Insert the method's description here. Creation date: (5.5.2001 15:12:05)- Parameters:
property
- com.cosylab.vdct.inspector.InspectableProperty
-
updateProperty
public void updateProperty(String propertyName)
Insert the method's description here. Creation date: (5.5.2001 15:06:07)- Parameters:
propertyName
- java.lang.String
-
-