public class TableEditor extends java.beans.PropertyEditorSupport implements java.awt.event.FocusListener, TestBeanPropertyEditor, javax.swing.event.TableModelListener, ClearGui
Strings, where there is a single header entry| Modifier and Type | Field and Description |
|---|---|
static java.lang.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 java.lang.String |
HEADERS
attribute name for table headers, value must be a String array.
|
static java.lang.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(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
java.lang.String |
getAsText() |
java.awt.Component |
getCustomEditor() |
java.lang.Object |
getValue() |
void |
setAsText(java.lang.String text) |
void |
setDescriptor(java.beans.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(java.lang.Object value) |
boolean |
supportsCustomEditor() |
void |
tableChanged(javax.swing.event.TableModelEvent e) |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSourcepublic static final java.lang.String CLASSNAME
public static final java.lang.String HEADERS
CLASSNAME is java.lang.String, there must be only a single entry.public static final java.lang.String OBJECT_PROPERTIES
CLASSNAME, value must be String arraypublic java.lang.String getAsText()
getAsText in interface java.beans.PropertyEditorgetAsText in class java.beans.PropertyEditorSupportpublic java.awt.Component getCustomEditor()
getCustomEditor in interface java.beans.PropertyEditorgetCustomEditor in class java.beans.PropertyEditorSupportpublic java.lang.Object getValue()
getValue in interface java.beans.PropertyEditorgetValue in class java.beans.PropertyEditorSupportpublic void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
setAsText in interface java.beans.PropertyEditorsetAsText in class java.beans.PropertyEditorSupportjava.lang.IllegalArgumentExceptionpublic void setValue(java.lang.Object value)
setValue in interface java.beans.PropertyEditorsetValue in class java.beans.PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface java.beans.PropertyEditorsupportsCustomEditor in class java.beans.PropertyEditorSupportpublic void setDescriptor(java.beans.PropertyDescriptor descriptor)
setDescriptor in interface TestBeanPropertyEditorpublic void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenerpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic void clearGui()
ClearGuiCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.