com.isti.util.propertyeditor
Class RegionPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by com.isti.util.propertyeditor.AbstractPropertyEditor
          extended by com.isti.util.propertyeditor.RegionPropertyEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class RegionPropertyEditor
extends AbstractPropertyEditor

A PropertyEditor for a region.


Constructor Summary
RegionPropertyEditor()
          Creates A PropertyEditor for a region.
RegionPropertyEditor(java.lang.Object valueObj)
          Creates A PropertyEditor for a region.
RegionPropertyEditor(java.lang.String text)
          Creates A PropertyEditor for a region.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an ActionListener to this editor.
 java.lang.String getAsText()
          Returns value as a String.
 java.awt.Component getCustomEditor()
          Returns the editor GUI.
 java.lang.Object getValue()
          Returns value.
 void removeActionListener(java.awt.event.ActionListener l)
          Removes an ActionListener from this editor.
 void setAsText(java.lang.String text)
          Sets value as text.
 void setValue(java.lang.Object someObj)
          Sets value.
 boolean supportsCustomEditor()
          Determines whether the propertyeditor can provide a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegionPropertyEditor

public RegionPropertyEditor()
Creates A PropertyEditor for a region.


RegionPropertyEditor

public RegionPropertyEditor(java.lang.Object valueObj)
Creates A PropertyEditor for a region.

Parameters:
valueObj - the value of the item.

RegionPropertyEditor

public RegionPropertyEditor(java.lang.String text)
Creates A PropertyEditor for a region.

Parameters:
text - the value of the item.
Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener to this editor.

Specified by:
addActionListener in class AbstractPropertyEditor
Parameters:
l - the ActionListener to be added

getAsText

public java.lang.String getAsText()
Returns value as a String.

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport
Returns:
the value as a string

getCustomEditor

public java.awt.Component getCustomEditor()
Returns the editor GUI.

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport
Returns:
component for editor.

getValue

public java.lang.Object getValue()
Returns value.

Specified by:
getValue in interface java.beans.PropertyEditor
Overrides:
getValue in class java.beans.PropertyEditorSupport
Returns:
the value

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener from this editor. If the listener is the currently set Action for the button, then the Action is set to null.

Specified by:
removeActionListener in class AbstractPropertyEditor
Parameters:
l - the listener to be removed

setAsText

public void setAsText(java.lang.String text)
Sets value as text.

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Parameters:
text - value

setValue

public void setValue(java.lang.Object someObj)
Sets value.

Specified by:
setValue in interface java.beans.PropertyEditor
Overrides:
setValue in class java.beans.PropertyEditorSupport
Parameters:
someObj - value

supportsCustomEditor

public boolean supportsCustomEditor()
Determines whether the propertyeditor can provide a custom editor.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport
Returns:
true