public class SelectedTagEditor extends PropertyEditorSupport
Constructor and Description |
---|
SelectedTagEditor() |
Modifier and Type | Method and Description |
---|---|
String |
getAsText()
Gets the current value as text.
|
String |
getJavaInitializationString()
Returns a description of the property value as java source.
|
String[] |
getTags()
Gets the list of tags that can be selected from.
|
static void |
main(String[] args)
Tests out the selectedtag editor from the command line.
|
void |
setAsText(String text)
Sets the current property value as text.
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- the text of the selected tag.IllegalArgumentException
- if an error occurspublic String[] getTags()
getTags
in interface PropertyEditor
getTags
in class PropertyEditorSupport
public static void main(String[] args)
args
- ignoredCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.