IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class SpPanelEMUEditor

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

public class SpPanelEMUEditor
extends java.beans.PropertyEditorSupport

The SpPanelEMUEditor class provides an editor for the EMUCurrency property, which is defined in the OperationPanel bean.


Constructor Summary
SpPanelEMUEditor()
          This constructor creates a SpPanelEMUEditor object.
SpPanelEMUEditor(java.lang.Object source)
          This constructor creates a SpPanelEMUEditor 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 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

SpPanelEMUEditor

public SpPanelEMUEditor()
This constructor creates a SpPanelEMUEditor object.


SpPanelEMUEditor

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