IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class DataValueInContextEditor

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

public class DataValueInContextEditor
extends java.beans.PropertyEditorSupport

The DataValueInContextEditor class is an editor for the valueInContext property defined in SpComboBox and SpList.


Field Summary
static java.lang.String ID_VALUE_IN_CONTEXT
          An ID_VALUE_IN_CONTEXT value means the context is updated width 'id' value from IndexedCollection in SpComboBox or SpList
static java.lang.String VALUE_VALUE_IN_CONTEXT
          An VALUE_VALUE_IN_CONTEXT value means the context is updated width 'value' value from IndexedCollection in SpComboBox or SpList
 
Constructor Summary
DataValueInContextEditor()
          This constructor creates a DataValueInContextEditor object.
DataValueInContextEditor(java.lang.Object source)
          This constructor creates a DataValueInContextEditor 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
 

Field Detail

ID_VALUE_IN_CONTEXT

public static final java.lang.String ID_VALUE_IN_CONTEXT
An ID_VALUE_IN_CONTEXT value means the context is updated width 'id' value from IndexedCollection in SpComboBox or SpList

See Also:
Constant Field Values

VALUE_VALUE_IN_CONTEXT

public static final java.lang.String VALUE_VALUE_IN_CONTEXT
An VALUE_VALUE_IN_CONTEXT value means the context is updated width 'value' value from IndexedCollection in SpComboBox or SpList

See Also:
Constant Field Values
Constructor Detail

DataValueInContextEditor

public DataValueInContextEditor()
This constructor creates a DataValueInContextEditor object.


DataValueInContextEditor

public DataValueInContextEditor(java.lang.Object source)
This constructor creates a DataValueInContextEditor 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