|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wirefusion.propertyeditor.WfPropertyEditor
public abstract class WfPropertyEditor
A WfPropertyEditor class provides support for Wobs that want to allow users to edit a property value of a given type. WfPropertyEditor supports a variety of different kinds of ways of displaying and updating property values. Most WfPropertyEditors will only need to support a subset of the different options available in this API.
| Field Summary | |
|---|---|
static int |
LEFT_POSITION
Indicates that the label should be to the left of the editor |
static int |
TOP_POSITION
Indicates that the label should be above the editor |
| Constructor Summary | |
|---|---|
WfPropertyEditor(java.lang.String propertyId,
java.lang.String label)
Constructs a WFPropertyEditor object. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
void |
firePropertyChange(java.lang.Object newValue)
This method should be called when the property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners. |
abstract javax.swing.JComponent |
getEditor()
Let this method return the property editor. |
java.lang.String |
getInfoString()
Subclasses should override this method if a short description of the values that this property can contain is desired. |
java.lang.String |
getPropertyId()
Returns the property ID |
boolean |
isEnabled()
Returns true if enabled, otherwise false. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
setEnabled(boolean enabled)
Enables or disables this component, depending on the value of the parameter enabled. |
void |
setLabelPosition(int labelPosition)
Specifies if label should be shown above or to the left of the editor. |
abstract void |
setValue(java.lang.Object newValue)
Subclasses should change the current property value to the new value sent as a parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEFT_POSITION
public static final int TOP_POSITION
| Constructor Detail |
|---|
public WfPropertyEditor(java.lang.String propertyId,
java.lang.String label)
propertyId - A unique string that is used to identidy the property.label - The property label, that will be shown to the left or above the
property value/editor.| Method Detail |
|---|
public java.lang.String getInfoString()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the PropertyChangeListener to be removedpublic void firePropertyChange(java.lang.Object newValue)
newValue - the property's new valuepublic java.lang.String getPropertyId()
public void setEnabled(boolean enabled)
enabled - If true, this editor is enabled; otherwise the editor is disabled.public boolean isEnabled()
public void setLabelPosition(int labelPosition)
labelPosition - the label position relative the editorpublic abstract void setValue(java.lang.Object newValue)
newValue - a new property valuepublic abstract javax.swing.JComponent getEditor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||