| java.lang.Object javax.swing.table.AbstractTableModel com.jeta.swingbuilder.gui.properties.PropertyTableModel
PropertyTableModel | public class PropertyTableModel extends AbstractTableModel (Code) | | TableModel for managing properties for a given bean.
author: Jeff Tassin |
COL_NAME | final public static int COL_NAME(Code) | | |
COL_VALUE | final public static int COL_VALUE(Code) | | |
VIEW_ALL | final public static int VIEW_ALL(Code) | | |
VIEW_PREFERRED | final public static int VIEW_PREFERRED(Code) | | |
PropertyTableModel | public PropertyTableModel()(Code) | | |
filterTable | public void filterTable(int view)(Code) | | Filters the table to display only properties with specific attributes.
Will sort the table after the data has been filtered.
Parameters: view - The properties to display. |
getBean | public JETABean getBean()(Code) | | Return the current object that is represented by this model.
|
getColumnCount | public int getColumnCount()(Code) | | Get column count (2: name, value)
|
getCustomizer | public Component getCustomizer()(Code) | | Gets the customizer for the current object.
New instance of the customizer or null if there isn't acustomizer. |
getFilter | public int getFilter()(Code) | | Returns the current filter type
|
getPropertyEditor | public PropertyEditor getPropertyEditor(int row)(Code) | | Returns a new instance of the property editor for a given class. If an
editor is not specified in the property descriptor then it is looked up
in the PropertyEditorManager.
|
getPropertyType | public Class getPropertyType(int row)(Code) | | Returns the Java type info for the property at the given row.
|
getRowCount | public int getRowCount()(Code) | | Get row count (total number of properties shown)
|
getValueAt | public Object getValueAt(int row, int col)(Code) | | Get text value for cell of table
Parameters: row - table row Parameters: col - table column |
hasCustomizer | public boolean hasCustomizer()(Code) | | Returns a flag indicating if the encapsulated object has a customizer.
|
isCellEditable | public boolean isCellEditable(int row, int col)(Code) | | Check if given cell is editable
Parameters: row - table row Parameters: col - table column |
setBean | public void setBean(JETABean bean)(Code) | | Set the table model to represents the properties of the object.
|
setFilter | public void setFilter(int filter)(Code) | | Sets the current filter of the Properties.
Parameters: filter - one of VIEW_ constants |
setValueAt | public void setValueAt(Object value, int row, int column)(Code) | | Set the value of the Values column.
|
|
|