com.wirefusion.propertyeditor
Class NumberPropertyEditor

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

public class NumberPropertyEditor
extends WfPropertyEditor

This editor is intended for use with number properties.


Field Summary
 
Fields inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
LEFT_POSITION, TOP_POSITION
 
Constructor Summary
NumberPropertyEditor(java.lang.String propertyId, java.lang.String label, java.lang.Number value)
          Constructs a NumberPropertyEditor object.
 
Method Summary
 java.lang.String getInfoString()
          Returns a short description of the number values allowed.
 void setMax(java.lang.Number max)
          Sets the maximum number value allowed
 void setMin(java.lang.Number min)
          Sets the minimum number value allowed
 
Methods inherited from class com.wirefusion.propertyeditor.WfPropertyEditor
addPropertyChangeListener, firePropertyChange, getEditor, getPropertyId, isEnabled, removePropertyChangeListener, setEnabled, setLabelPosition, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberPropertyEditor

public NumberPropertyEditor(java.lang.String propertyId,
                            java.lang.String label,
                            java.lang.Number value)
Constructs a NumberPropertyEditor object.

Parameters:
propertyId - the property ID
label - the label
value - the number value
Method Detail

setMin

public void setMin(java.lang.Number min)
Sets the minimum number value allowed

Parameters:
min - the minimum number value allowed

setMax

public void setMax(java.lang.Number max)
Sets the maximum number value allowed

Parameters:
max - the maximum number value allowed

getInfoString

public java.lang.String getInfoString()
Returns a short description of the number values allowed.

Overrides:
getInfoString in class WfPropertyEditor
Returns:
a short description of the number values allowed.