com.cosylab.vdct.inspector
Class InspectorTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.cosylab.vdct.inspector.InspectorTableModel
All Implemented Interfaces:
PropertyTableModel, java.io.Serializable, javax.swing.table.TableModel

public class InspectorTableModel
extends javax.swing.table.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
InspectorTableModel(InspectorInterface inspector)
          InspactorTableModel constructor comment.
 
Method Summary
 java.lang.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.
 java.lang.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(java.lang.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(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectorTableModel

public InspectorTableModel(InspectorInterface inspector)
InspactorTableModel constructor comment.

Method Detail

getColumnClass

public java.lang.Class getColumnClass(int column)
Insert the method's description here. Creation date: (14.11.1999 15:22:35)

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
column - int
Returns:
java.lang.Class

getColumnCount

public int getColumnCount()
getColumnCount method comment.

Specified by:
getColumnCount in interface javax.swing.table.TableModel

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 interface PropertyTableModel
Parameters:
row - 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 interface PropertyTableModel

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 interface PropertyTableModel

getRowCount

public int getRowCount()
getRowCount method comment.

Specified by:
getRowCount in interface javax.swing.table.TableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
getValueAt method comment.

Specified by:
getValueAt in interface javax.swing.table.TableModel

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 interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
rowIndex - int
columnIndex - 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(java.lang.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 interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
aValue - the new value. This can be null.
row - the row whose value is to be looked up
column - 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(java.lang.String propertyName)
Insert the method's description here. Creation date: (5.5.2001 15:06:07)

Parameters:
propertyName - java.lang.String