IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class SpButtonTypeEditor

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

public class SpButtonTypeEditor
extends java.beans.PropertyEditorSupport

The SpButtonTypeEditor class provides an editor for the type property, which is defined in the SpButton bean.


Constructor Summary
SpButtonTypeEditor()
          This constructor creates a SpButtonTypeEditor object.
SpButtonTypeEditor(java.lang.Object source)
          Constructor for use when a PropertyEditor is delegating to us.
 
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 tag values.
 
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

SpButtonTypeEditor

public SpButtonTypeEditor()
This constructor creates a SpButtonTypeEditor object.


SpButtonTypeEditor

public SpButtonTypeEditor(java.lang.Object source)
Constructor for use when a PropertyEditor is delegating to us.

Parameters:
source - The source to use for any events we fire.
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 tag values. 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.

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