Package weka.gui
Class RangeEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- weka.gui.RangeEditor
-
- All Implemented Interfaces:
PropertyEditor
public class RangeEditor extends PropertyEditorSupport
A PropertyEditor that can be used to edit Range objects (really, just appropriately formatted strings).- Version:
- $Revision: 8034 $
- Author:
- Eibe Frank (eibe@waikato.ac.nz)
-
-
Constructor Summary
Constructors Constructor Description RangeEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAsText()Gets the current value as text.StringgetJavaInitializationString()Returns a description of the property value as java source.voidsetAsText(String text)Sets the current property value as text.-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
-
-
-
Method Detail
-
getJavaInitializationString
public String getJavaInitializationString()
Returns a description of the property value as java source.- Specified by:
getJavaInitializationStringin interfacePropertyEditor- Overrides:
getJavaInitializationStringin classPropertyEditorSupport- Returns:
- a value of type 'String'
-
getAsText
public String getAsText()
Gets the current value as text.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport- Returns:
- a value of type 'String'
-
setAsText
public void setAsText(String text)
Sets the current property value as text.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Parameters:
text- the text of the selected tag.- Throws:
IllegalArgumentException- if an error occurs
-
-