public class StringArrayEditor extends Object implements XMLPropertyEditor, StringArrayCustomizable, ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
Constructor and Description |
---|
StringArrayEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener) |
void |
attachEnv(PropertyEnv env) |
String |
getAsText() |
Component |
getCustomEditor() |
String |
getJavaInitializationString() |
String[] |
getStringArray()
Used to acquire the current value from the PropertyEditor
|
protected String |
getStrings(boolean quoted) |
String[] |
getTags() |
Object |
getValue() |
boolean |
isPaintable() |
void |
paintValue(Graphics g,
Rectangle rectangle) |
void |
readFromXML(Node element)
Called to load property value from specified XML subtree.
|
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener) |
void |
setAsText(String text) |
void |
setStringArray(String[] value)
Used to modify the current value in the PropertyEditor
|
void |
setValue(Object value) |
Node |
storeToXML(Document doc)
Called to store current property value into XML subtree.
|
boolean |
supportsCustomEditor() |
public Object getValue()
getValue
in interface PropertyEditor
public void setValue(Object value)
setValue
in interface PropertyEditor
public String[] getStringArray()
getStringArray
in interface StringArrayCustomizable
public void setStringArray(String[] value)
setStringArray
in interface StringArrayCustomizable
value
- the new value of the propertyprotected final String getStrings(boolean quoted)
public String getAsText()
getAsText
in interface PropertyEditor
public void setAsText(String text)
setAsText
in interface PropertyEditor
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
public String[] getTags()
getTags
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
public void paintValue(Graphics g, Rectangle rectangle)
paintValue
in interface PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener
in interface PropertyEditor
public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener
in interface PropertyEditor
public Node storeToXML(Document doc)
storeToXML
in interface XMLPropertyEditor
doc
- The XML document to store the XML in - should be used for
creating nodes onlypublic void readFromXML(Node element) throws IOException
readFromXML
in interface XMLPropertyEditor
element
- the XML DOM element representing a subtree of XML from
which the value should be loadedIOException
- thrown when the value cannot be restored from
the specified XML elementpublic void attachEnv(PropertyEnv env)
attachEnv
in interface ExPropertyEditor