com.virtualweaver.xotics.datamodel.editor
Class XoBooleanPropertyEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor
          extended bycom.virtualweaver.xotics.datamodel.editor.XoBooleanPropertyEditor
All Implemented Interfaces:
java.beans.PropertyEditor, XoPropertyEditor

public class XoBooleanPropertyEditor
extends XoAbstractPropertyEditor

A generic PropertyEditor for boolean objects.

Version:
4.1

Field Summary
 
Fields inherited from class com.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor
customEditor, value
 
Constructor Summary
XoBooleanPropertyEditor()
          Creates a new instance of XoBooleanEditor
 
Method Summary
protected  void createCustomEditor()
          This method informs this to create the graphical UI to edit the value.
protected  java.lang.Object createValue(java.lang.String str)
          Creates an instance of value object by converting string param str.
protected  void initCustomEditor()
          This method informs this to init or reinit the graphical UI previously created by createCustomEditor().
 void setCustomEditorValue()
          This method informs this to setup the graphical UI with current value.
 
Methods inherited from class com.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor
getAsText, getCustomEditor, getValue, isPaintable, setAsText, setProperty, setValue, supportsCustomEditor
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, paintValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getJavaInitializationString, getTags, paintValue, removePropertyChangeListener
 

Constructor Detail

XoBooleanPropertyEditor

public XoBooleanPropertyEditor()
Creates a new instance of XoBooleanEditor

Method Detail

createCustomEditor

protected void createCustomEditor()
Description copied from class: XoAbstractPropertyEditor
This method informs this to create the graphical UI to edit the value. The result must be stored in customEditor field. If a customEditor instance already exists, it must be released cleanly (i.e. remove any listener on it) before creating new instance.

Specified by:
createCustomEditor in class XoAbstractPropertyEditor

initCustomEditor

protected void initCustomEditor()
Description copied from class: XoAbstractPropertyEditor
This method informs this to init or reinit the graphical UI previously created by createCustomEditor().

Specified by:
initCustomEditor in class XoAbstractPropertyEditor

setCustomEditorValue

public void setCustomEditorValue()
Description copied from class: XoAbstractPropertyEditor
This method informs this to setup the graphical UI with current value.

Specified by:
setCustomEditorValue in class XoAbstractPropertyEditor

createValue

protected java.lang.Object createValue(java.lang.String str)
                                throws java.lang.IllegalArgumentException
Description copied from class: XoAbstractPropertyEditor
Creates an instance of value object by converting string param str.

Specified by:
createValue in class XoAbstractPropertyEditor
Parameters:
str - the string to convert into value
Returns:
an object created with str
Throws:
java.lang.IllegalArgumentException - if str is not convertible