elge.engine
Class ComboIntegerEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--elge.engine.ComboIntegerEditor
All Implemented Interfaces:
PropertyEditor

public class ComboIntegerEditor
extends PropertyEditorSupport

This class is the JavaBean editor for the ComboInteger. It makes all the standart methods that an PropertyEditor needs. It does not use custom editor.

Author:
Pavol Žibrita

Constructor Summary
ComboIntegerEditor()
          Creates new ComboIntegerEditor
 
Method Summary
 String getAsText()
          Returns the value as text
 String getJavaInitializationString()
          A string that can be used to initialize the object.
 String[] getTags()
          Returns the predefined values of the object.
 void setAsText(String value)
          Sets the value as text
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboIntegerEditor

public ComboIntegerEditor()
Creates new ComboIntegerEditor

Method Detail

getAsText

public String getAsText()
Returns the value as text

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
value as text

setAsText

public void setAsText(String value)
Sets the value as text

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
value - value to be parsed to set the object.

getTags

public String[] getTags()
Returns the predefined values of the object.

Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport
Returns:
The array of values to be displayed the user can choose from.

getJavaInitializationString

public String getJavaInitializationString()
A string that can be used to initialize the object.

Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport
Returns:
the initialization string.