IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class DataDirectionEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.ibm.dse.gui.DataDirectionEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class DataDirectionEditor
extends java.beans.PropertyEditorSupport

The DataDirectionEditor class is an editor for the dataDirection properties defined in the SpCheckBox, SpButtonGroup, SpTextField, SpList, SpComboBox and Sptable.


Constructor Summary
DataDirectionEditor()
          This constructor creates a DataDirectionEditor object.
DataDirectionEditor(java.lang.Object source)
          This constructor creates a DataDirectionEditor object.
 
Method Summary
 java.lang.String getJavaInitializationString()
          This method is intended for use when generating Java code to set the value of the property.
 java.lang.String[] getTags()
          If the property value must be one of a set of known tagged values, then this method should return an array of the tags.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDirectionEditor

public DataDirectionEditor()
This constructor creates a DataDirectionEditor object.


DataDirectionEditor

public DataDirectionEditor(java.lang.Object source)
This constructor creates a DataDirectionEditor object.

Parameters:
source - java.lang.Object
Method Detail

getTags

public java.lang.String[] getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. This can be used to represent (for example) enum values. If a PropertyEditor supports tags, then it should support the use of setAsText with a tag value as a way of setting the value and the use of getAsText to identify the current value.

Returns:
The tag values for this property. May be null if this property cannot be represented as a tagged value.

getJavaInitializationString

public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.

Example results are "2", "new Color(127,127,34)", "Color.orange", etc.

Returns:
A fragment of Java code representing an initializer for the current value.

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005