org.tentackle.ui
Class FormTableCellTraversalEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.tentackle.ui.FormTableCellTraversalEditor
All Implemented Interfaces:
PropertyEditor

public class FormTableCellTraversalEditor
extends PropertyEditorSupport

PropertyEditor for cell traversal.

Author:
harald

Constructor Summary
FormTableCellTraversalEditor()
           
 
Method Summary
 void firePropertyChange()
          Report that we have been modified to any interested listeners.
 Component getCustomEditor()
          A PropertyEditor may chose to make available a full custom Component that edits its property value.
 void setAsText(String text)
          Sets the property value by parsing a given String.
 void setValue(Object value)
          Set (or change) the object that is to be edited.
 boolean supportsCustomEditor()
          Determines whether the propertyEditor can provide a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, getAsText, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormTableCellTraversalEditor

public FormTableCellTraversalEditor()
Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()
Description copied from class: java.beans.PropertyEditorSupport
Determines whether the propertyEditor can provide a custom editor.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport
Returns:
True if the propertyEditor can provide a custom editor.

getCustomEditor

public Component getCustomEditor()
Description copied from class: java.beans.PropertyEditorSupport
A PropertyEditor may chose to make available a full custom Component that edits its property value. It is the responsibility of the PropertyEditor to hook itself up to its editor Component itself and to report property value changes by firing a PropertyChange event.

The higher-level code that calls getCustomEditor may either embed the Component in some larger property sheet, or it may put it in its own individual dialog, or ...

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport
Returns:
A java.awt.Component that will allow a human to directly edit the current property value. May be null if this is not supported.

firePropertyChange

public void firePropertyChange()
Description copied from class: java.beans.PropertyEditorSupport
Report that we have been modified to any interested listeners.

Overrides:
firePropertyChange in class PropertyEditorSupport

setValue

public void setValue(Object value)
Description copied from class: java.beans.PropertyEditorSupport
Set (or change) the object that is to be edited.

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport
Parameters:
value - The new target object to be edited. Note that this object should not be modified by the PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Description copied from class: java.beans.PropertyEditorSupport
Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
text - The string to be parsed.
Throws:
IllegalArgumentException


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de