|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--net.openai.ai.nn.gui.properties.PropertyTableModel
TableModel for the propertyeditor. Retrieves/sets values of/for a single object. This class is a wrapper that implements the TableModel-interface around a propertylist-object.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
PropertyTableModel()
Creates a new instance of PropertyTableModel |
Method Summary | |
int |
getColumnCount()
Returns the number of columns. |
java.lang.String |
getColumnName(int column)
Returns the name of a specific column. |
Property |
getPropertyAt(int row)
Returns a specific property out of the internal propertylist |
int |
getRowCount()
Returns the amount of propertys in the internal list. |
java.lang.Object |
getValueAt(int row,
int col)
Returns the value at a specific tableposition. |
boolean |
isCellEditable(int row,
int column)
Returns the read/write status of a property. |
void |
setClientObject(PropertyList propertylist,
java.lang.Object clientobject)
Sets the propertylist and the clientobject that holds the wanted values. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
|
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 |
Constructor Detail |
public PropertyTableModel()
Method Detail |
public int getColumnCount()
public Property getPropertyAt(int row)
row
- Indexnr of the property to be returned
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
row
- Rownumber of the propertycol
- Columnnumber. 0=name, 1=value
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- Columnnumber.
public void setClientObject(PropertyList propertylist, java.lang.Object clientobject)
propertylist
- List of propertys to be displayed and queriedclientobject
- Object that holds the values for the table.public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- Indexnumber in the propertylistcolumn
- Columnnumber.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |