adams.gui.goe
Class SpreadSheetColumnIndexEditor
java.lang.Object
java.beans.PropertyEditorSupport
adams.gui.goe.AbstractPropertyEditorSupport
adams.gui.goe.IndexEditor
adams.gui.goe.SpreadSheetColumnIndexEditor
- All Implemented Interfaces:
- CustomStringRepresentationHandler, InlineEditorSupport, MultiSelectionEditor, PropertyEditor
public class SpreadSheetColumnIndexEditor
- extends IndexEditor
Editor for SpreadSheetColumnIndex objects.
- Version:
- $Revision: 6866 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
| Methods inherited from class adams.gui.goe.IndexEditor |
acceptInput, createCustomEditor, discardInput, getInlineValue, getJavaInitializationString, getSelectedObjects, getStringToPaint, indicateValidity, initForDisplay, isInlineEditingAvailable, isInlineValueValid, isUnchanged, isValid, paintValue, setInlineValue, toCustomStringRepresentation |
| Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
addWindowAdapter, cleanUp, closeDialog, createPopup, createWindowAdapter, getChosenOption, getCustomEditor, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpreadSheetColumnIndexEditor
public SpreadSheetColumnIndexEditor()
toString
public static String toString(AbstractOption option,
Object object)
- Returns the Compound as string.
- Parameters:
option - the current optionobject - the Compound object to convert
- Returns:
- the generated string
valueOf
public static Object valueOf(AbstractOption option,
String str)
- Returns a Compound generated from the string.
- Parameters:
option - the current optionstr - the string to convert to a Compound
- Returns:
- the generated Compound
fromCustomStringRepresentation
public Object fromCustomStringRepresentation(String str)
- Returns an object created from the custom string representation.
- Specified by:
fromCustomStringRepresentation in interface CustomStringRepresentationHandler- Overrides:
fromCustomStringRepresentation in class IndexEditor
- Parameters:
str - the string to turn into an object
- Returns:
- the object
parse
protected SpreadSheetColumnIndex 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:
parse in class IndexEditor
- Parameters:
s - the string to parse
- Returns:
- the generated object, or null in case of an error
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.