com.wirefusion.propertyeditor
Class StringPropertyEditor

java.lang.Object
  extended by com.wirefusion.propertyeditor.WfPropertyEditor
      extended by com.wirefusion.propertyeditor.StringPropertyEditor

public class StringPropertyEditor
extends WfPropertyEditor

This editor is intended for use with String properties.


Field Summary
 
Fields inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
LEFT_POSITION, TOP_POSITION
 
Constructor Summary
StringPropertyEditor(java.lang.String propertyId, java.lang.String label, java.lang.String initialString)
          Constructs a ColorPropertyEditor object.
StringPropertyEditor(java.lang.String propertyId, java.lang.String label, java.lang.String initialString, java.lang.String[] predefinedStrings)
          Constructs a ColorPropertyEditor object.
 
Method Summary
 void setEnabled(boolean enabled)
          Enables or disables this component, depending on the value of the parameter enabled.
 
Methods inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
addPropertyChangeListener, firePropertyChange, getEditor, getInfoString, getPropertyId, isEnabled, removePropertyChangeListener, setLabelPosition, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPropertyEditor

public StringPropertyEditor(java.lang.String propertyId,
                            java.lang.String label,
                            java.lang.String initialString)
Constructs a ColorPropertyEditor object.

Parameters:
propertyId - the property ID
label - the label
initialString - the string value

StringPropertyEditor

public StringPropertyEditor(java.lang.String propertyId,
                            java.lang.String label,
                            java.lang.String initialString,
                            java.lang.String[] predefinedStrings)
Constructs a ColorPropertyEditor object.

Parameters:
propertyId - the property ID
label - the label
initialString - the string value
predefinedStrings - an array of predefined string. The user can type a custom string or choose from the predefined strings.
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Description copied from class: WfPropertyEditor
Enables or disables this component, depending on the value of the parameter enabled. If disabled, the ditor does not respond to user input. All subclasses of this class may not support being disabled.

Overrides:
setEnabled in class WfPropertyEditor
Parameters:
enabled - If true, this editor is enabled; otherwise the editor is disabled.