public class TableEditor extends PropertyEditorSupport implements FocusListener, TestBeanPropertyEditor, TableModelListener, ClearGui
Strings, where there is a single header entry| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME
attribute name for class name of a table row;
value must be java.lang.String, or a class which supports set and get/is methods for the property name.
|
static String |
HEADERS
attribute name for table headers, value must be a String array.
|
static String |
OBJECT_PROPERTIES
attribute name for property names within the
CLASSNAME, value must be String array |
| Constructor and Description |
|---|
TableEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearGui()
Clear the gui and return it to initial default values.
|
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
String |
getAsText() |
Component |
getCustomEditor() |
Object |
getValue() |
void |
setAsText(String text) |
void |
setDescriptor(PropertyDescriptor descriptor)
For the table editor, the CLASSNAME attribute must simply be the name of the class of object it will hold
where each row holds one object.
|
void |
setValue(Object value) |
boolean |
supportsCustomEditor() |
void |
tableChanged(TableModelEvent e) |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListenerpublic static final String CLASSNAME
public static final String HEADERS
CLASSNAME is java.lang.String, there must be only a single entry.public static final String OBJECT_PROPERTIES
CLASSNAME, value must be String arraypublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorgetCustomEditor in class PropertyEditorSupportpublic Object getValue()
getValue in interface PropertyEditorgetValue in class PropertyEditorSupportpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorsupportsCustomEditor in class PropertyEditorSupportpublic void setDescriptor(PropertyDescriptor descriptor)
setDescriptor in interface TestBeanPropertyEditorpublic void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void clearGui()
ClearGuiCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.