FocusListener
, PropertyEditor
, EventListener
, TableModelListener
, TestBeanPropertyEditor
public class TableEditor extends PropertyEditorSupport implements FocusListener, TestBeanPropertyEditor, TableModelListener
String
s, where there is a single header entryModifier 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, wait
addPropertyChangeListener, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
public 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 PropertyEditor
getAsText
in class PropertyEditorSupport
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
getCustomEditor
in class PropertyEditorSupport
public Object getValue()
getValue
in interface PropertyEditor
getValue
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
supportsCustomEditor
in class PropertyEditorSupport
public void setDescriptor(PropertyDescriptor descriptor)
setDescriptor
in interface TestBeanPropertyEditor
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.