net.sf.doolin.util.unit
Class ValueUnitEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by net.sf.doolin.util.unit.ValueUnitEditor
All Implemented Interfaces:
PropertyEditor

public class ValueUnitEditor
extends PropertyEditorSupport

Bean editor for the ValueUnit.

Author:
Damien Coraboeuf
See Also:
ValueUnit

Constructor Summary
ValueUnitEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueUnitEditor

public ValueUnitEditor()
Method Detail

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
See Also:
ValueUnit.toString(), PropertyEditorSupport.getAsText()

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException
See Also:
ValueUnit.valueOf(String), PropertyEditorSupport.setAsText(java.lang.String)


Copyright © 2011. All Rights Reserved.