bsys.propertyview
Class PropertyView.TableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by bsys.propertyview.PropertyView.TableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
PropertyView

private class PropertyView.TableModel
extends javax.swing.table.AbstractTableModel

Table model

Author:
Bernard Bou

Field Summary
private static long serialVersionUID
           
private  java.util.Vector<PropertyView.Attribute> theAttributes
          Its attributes
 PropertyView.Handler theHandler
          Its handler
private  java.lang.Object thePickedObject
          The picked object
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PropertyView.TableModel()
          Constructor
PropertyView.TableModel(java.lang.Object thisObject, PropertyView.Handler thisHandler)
          Constructor
 
Method Summary
 void get()
          Get all attribute values
 int getColumnCount()
           
 java.lang.String getColumnName(int x)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int y, int x)
           
 boolean isCellEditable(int y, int x)
           
 void set()
          Set all attribute values
 void setValueAt(java.lang.Object thisValue, int y, int x)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

thePickedObject

private java.lang.Object thePickedObject
The picked object


theHandler

public PropertyView.Handler theHandler
Its handler


theAttributes

private java.util.Vector<PropertyView.Attribute> theAttributes
Its attributes

Constructor Detail

PropertyView.TableModel

public PropertyView.TableModel()
Constructor


PropertyView.TableModel

public PropertyView.TableModel(java.lang.Object thisObject,
                               PropertyView.Handler thisHandler)
Constructor

Parameters:
thisObject - picked object
thisHandler - its handler
Method Detail

get

public void get()
Get all attribute values


set

public void set()
Set all attribute values


getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

isCellEditable

public boolean isCellEditable(int y,
                              int x)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int y,
                                   int x)

setValueAt

public void setValueAt(java.lang.Object thisValue,
                       int y,
                       int x)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

getColumnName

public java.lang.String getColumnName(int x)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel