syn3d.ui
Class PropertyBooleanTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by syn3d.ui.SceneGraphDataTableModel
          extended by syn3d.ui.PropertyBooleanTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class PropertyBooleanTableModel
extends SceneGraphDataTableModel

Special kind of table dedicated to manage boolean attributes (ex visibility...)

Author:
ogor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class syn3d.ui.SceneGraphDataTableModel
dataCopy, resources
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PropertyBooleanTableModel(SourceTree sourceTree, PropertyData dcopy)
           
 
Method Summary
 java.lang.Object getBooleanValue(int index)
          A default implementation to handle SceneGraphFloatData
 java.lang.Class getColumnClass(int columnIndex)
           
 java.lang.String getName(int index)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 void setValue(int index, java.lang.Object aValue)
          A default implementation to handle SceneGraphFloatData
 
Methods inherited from class syn3d.ui.SceneGraphDataTableModel
getColumnCount, getColumnName, getRowCount, getValue, isCellEditable, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyBooleanTableModel

public PropertyBooleanTableModel(SourceTree sourceTree,
                                 PropertyData dcopy)
Method Detail

getName

public java.lang.String getName(int index)
Specified by:
getName in class SceneGraphDataTableModel

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class SceneGraphDataTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class SceneGraphDataTableModel

setValue

public void setValue(int index,
                     java.lang.Object aValue)
A default implementation to handle SceneGraphFloatData

Overrides:
setValue in class SceneGraphDataTableModel
Parameters:
index=rowIndex -
aValue=object - displayed in the table

getBooleanValue

public java.lang.Object getBooleanValue(int index)
A default implementation to handle SceneGraphFloatData

Parameters:
index=rowIndex -
Returns:
object to be displayed in the table