|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--org.ocd.dcf.property.PropertyTableModel
Field Summary | |
static int |
COL_NAME
|
static int |
COL_VALUE
|
static int |
VIEW_ALL
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
PropertyTableModel()
Create the Model for Editing a Beans Properties Call setObject to set the object to modify |
|
PropertyTableModel(java.lang.Object bean)
Create the Model for Editing a Beans Properties |
Method Summary | |
int |
getColumnCount()
Get column count (2: name, value) |
java.awt.Component |
getCustomizer()
Gets the customizer for the current object. |
java.lang.Object |
getObject()
Return the current object that is represented by this model. |
java.beans.PropertyDescriptor |
getPropertyDescriptor(int row)
Returns the PropertyDescriptor for the row. |
java.beans.PropertyEditor |
getPropertyEditor(int row)
Returns a new instance of the property editor for a given class. |
java.lang.Class |
getPropertyType(int row)
Returns the Java type info for the property at the given row. |
int |
getRowCount()
Get row count (total number of properties shown) |
java.lang.Object |
getValueAt(int row,
int col)
Get text value for cell of table |
boolean |
hasCustomizer()
Returns a flag indicating if the encapsulated object has a customizer. |
boolean |
isCellEditable(int row,
int col)
Check if given cell is editable |
void |
resetOriginalValues(java.util.Set propNames)
Reset the Values of the Bean to their originals |
void |
setObject(java.lang.Object bean)
Set the table model to represents the properties of the object. |
void |
setValueAt(java.lang.Object value,
int row,
int column)
Set the value of the Values column. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COL_NAME
public static final int COL_VALUE
public static final int VIEW_ALL
Constructor Detail |
public PropertyTableModel()
public PropertyTableModel(java.lang.Object bean)
bean
- to modifyMethod Detail |
public void setObject(java.lang.Object bean)
public void resetOriginalValues(java.util.Set propNames)
Set
- of property Names to revertpublic java.lang.Object getObject()
public int getRowCount()
getRowCount
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
getColumnCount
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- table rowcol
- table columnpublic java.lang.Object getValueAt(int row, int col)
getValueAt
in class javax.swing.table.AbstractTableModel
row
- table rowcol
- table columnpublic void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in class javax.swing.table.AbstractTableModel
public java.lang.Class getPropertyType(int row)
public java.beans.PropertyDescriptor getPropertyDescriptor(int row)
public java.beans.PropertyEditor getPropertyEditor(int row)
public boolean hasCustomizer()
public java.awt.Component getCustomizer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |