FocusListener, PropertyEditor, EventListener, TableModelListener, TestBeanPropertyEditorpublic class TableEditor extends PropertyEditorSupport implements FocusListener, TestBeanPropertyEditor, TableModelListener
Strings, where there is a single header entry| Modifier and Type | Field | 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 | Description |
|---|---|
TableEditor() |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListeneraddPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSourcepublic 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 FocusListenerCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.