Package weka.gui
Class SelectedTagEditor
java.lang.Object
java.beans.PropertyEditorSupport
weka.gui.SelectedTagEditor
- All Implemented Interfaces:
PropertyEditor
A PropertyEditor that uses tags, where the tags are obtained from a
weka.core.SelectedTag object.
- Version:
- $Revision: 8034 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the current value as text.Returns a description of the property value as java source.String[]
getTags()
Gets the list of tags that can be selected from.static void
Tests out the selectedtag editor from the command line.void
Sets the current property value as text.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
SelectedTagEditor
public SelectedTagEditor()
-
-
Method Details
-
getJavaInitializationString
Returns a description of the property value as java source.- Specified by:
getJavaInitializationString
in interfacePropertyEditor
- Overrides:
getJavaInitializationString
in classPropertyEditorSupport
- Returns:
- a value of type 'String'
-
getAsText
Gets the current value as text.- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
- Returns:
- a value of type 'String'
-
setAsText
Sets the current property value as text.- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Parameters:
text
- the text of the selected tag.- Throws:
IllegalArgumentException
- if an error occurs
-
getTags
Gets the list of tags that can be selected from.- Specified by:
getTags
in interfacePropertyEditor
- Overrides:
getTags
in classPropertyEditorSupport
- Returns:
- an array of string tags.
-
main
Tests out the selectedtag editor from the command line.- Parameters:
args
- ignored
-