public class TableEditor extends java.beans.PropertyEditorSupport implements java.awt.event.FocusListener, TestBeanPropertyEditor, javax.swing.event.TableModelListener, ClearGui
String
s, where there is a single header entryModifier 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, setSource
public 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.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public java.lang.Object getValue()
getValue
in interface java.beans.PropertyEditor
getValue
in class java.beans.PropertyEditorSupport
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
java.lang.IllegalArgumentException
public void setValue(java.lang.Object value)
setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public void setDescriptor(java.beans.PropertyDescriptor descriptor)
setDescriptor
in interface TestBeanPropertyEditor
public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged
in interface javax.swing.event.TableModelListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void clearGui()
ClearGui
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.