Package adams.gui.goe
Class WekaAttributeRangeEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- adams.gui.goe.AbstractPropertyEditorSupport
-
- adams.gui.goe.RangeEditor
-
- adams.gui.goe.WekaAttributeRangeEditor
-
- All Implemented Interfaces:
adams.core.HelpProvider,adams.gui.goe.CustomStringRepresentationHandler,adams.gui.goe.InlineEditorSupport,adams.gui.goe.MultiSelectionEditor,PropertyEditor
public class WekaAttributeRangeEditor extends adams.gui.goe.RangeEditorA PropertyEditor forWekaAttributeRangeobjects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description WekaAttributeRangeEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectfromCustomStringRepresentation(String str)Returns an object created from the custom string representation.protected WekaAttributeRangeparse(String s)Parses the given string and returns the generated object.StringtoCustomStringRepresentation(Object obj)Returns a custom string representation of the object.-
Methods inherited from class adams.gui.goe.RangeEditor
acceptInput, createCustomEditor, discardInput, getInlineValue, getJavaInitializationString, getSelectedObjects, getStringToPaint, indicateValidity, initForDisplay, isInlineEditingAvailable, isInlineValueValid, isUnchanged, isValid, paintValue, setInlineValue
-
Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport
addWindowAdapter, cleanUp, closeDialog, createPopup, createTipText, createWindowAdapter, getChosenOption, getCustomEditor, getHelpDescription, getHelpIcon, getHelpTitle, getHelpURL, getParentDialog, getParentFrame, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource
-
-
-
-
Method Detail
-
toCustomStringRepresentation
public String toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object.- Specified by:
toCustomStringRepresentationin interfaceadams.gui.goe.CustomStringRepresentationHandler- Overrides:
toCustomStringRepresentationin classadams.gui.goe.RangeEditor- Parameters:
obj- the object to turn into a string- Returns:
- the string representation
-
fromCustomStringRepresentation
public Object fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation.- Specified by:
fromCustomStringRepresentationin interfaceadams.gui.goe.CustomStringRepresentationHandler- Overrides:
fromCustomStringRepresentationin classadams.gui.goe.RangeEditor- Parameters:
str- the string to turn into an object- Returns:
- the object
-
parse
protected WekaAttributeRange parse(String s)
Parses the given string and returns the generated object. The string has to be a valid one, i.e., the isValid(String) check has been performed already and succeeded.- Overrides:
parsein classadams.gui.goe.RangeEditor- Parameters:
s- the string to parse- Returns:
- the generated object, or null in case of an error
-
-