adams.gui.goe
Class SpreadSheetColumnRangeEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by adams.gui.goe.AbstractPropertyEditorSupport
          extended by adams.gui.goe.RangeEditor
              extended by adams.gui.goe.SpreadSheetColumnRangeEditor
All Implemented Interfaces:
CustomStringRepresentationHandler, InlineEditorSupport, MultiSelectionEditor, PropertyEditor

public class SpreadSheetColumnRangeEditor
extends RangeEditor

A PropertyEditor for SpreadSheetColumnRange objects.

Version:
$Revision: 6866 $
Author:
FracPete (fracpete at waikato dot ac dot nz)

Field Summary
 
Fields inherited from class adams.gui.goe.RangeEditor
m_DefaultBackground, m_PanelValue, m_TextValue
 
Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport
APPROVE_OPTION, CANCEL_OPTION, m_ChosenOption, m_CustomEditor, m_WindowAdapter
 
Constructor Summary
SpreadSheetColumnRangeEditor()
           
 
Method Summary
 Object fromCustomStringRepresentation(String str)
          Returns an object created from the custom string representation.
protected  SpreadSheetColumnRange parse(String s)
          Parses the given string and returns the generated object.
 String toCustomStringRepresentation(Object obj)
          Returns a custom string representation of the object.
static String toString(AbstractOption option, Object object)
          Returns the Compound as string.
static Object valueOf(AbstractOption option, String str)
          Returns a Compound generated from the string.
 
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, createWindowAdapter, getChosenOption, getCustomEditor, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadSheetColumnRangeEditor

public SpreadSheetColumnRangeEditor()
Method Detail

toString

public static String toString(AbstractOption option,
                              Object object)
Returns the Compound as string.

Parameters:
option - the current option
object - 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 option
str - the string to convert to a Compound
Returns:
the generated Compound

toCustomStringRepresentation

public String toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object.

Specified by:
toCustomStringRepresentation in interface CustomStringRepresentationHandler
Overrides:
toCustomStringRepresentation in class 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:
fromCustomStringRepresentation in interface CustomStringRepresentationHandler
Overrides:
fromCustomStringRepresentation in class RangeEditor
Parameters:
str - the string to turn into an object
Returns:
the object

parse

protected SpreadSheetColumnRange 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 RangeEditor
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.