Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.common.editors
Class BooleanEditor

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.common.editors.AbstractEditor<Boolean>
      extended by eu.esdihumboldt.hale.ui.common.editors.BooleanEditor
All Implemented Interfaces:
Editor<Boolean>

public class BooleanEditor
extends AbstractEditor<Boolean>

Attribute editor for boolean values

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.common.Editor
IS_VALID, VALUE
 
Constructor Summary
BooleanEditor(org.eclipse.swt.widgets.Composite parent)
          Create a boolean attribute editor
 
Method Summary
 String getAsText()
          Get the editor value as text
 org.eclipse.swt.widgets.Control getControl()
          Get the editor control
 Boolean getValue()
          Get the editor value
 boolean isValid()
          Determines if the user has entered a valid value
 void setAsText(String text)
          Set the editor value as text
 void setValue(Boolean value)
          Set the editor value
 
Methods inherited from class eu.esdihumboldt.hale.ui.common.editors.AbstractEditor
fireStateChanged, fireValueChanged, setPropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanEditor

public BooleanEditor(org.eclipse.swt.widgets.Composite parent)
Create a boolean attribute editor

Parameters:
parent - the parent composite
Method Detail

getAsText

public String getAsText()
Description copied from interface: Editor
Get the editor value as text

Returns:
the text representation of the editor value
See Also:
Editor.getAsText()

getControl

public org.eclipse.swt.widgets.Control getControl()
Description copied from interface: Editor
Get the editor control

Returns:
the editor control
See Also:
Editor.getControl()

getValue

public Boolean getValue()
Description copied from interface: Editor
Get the editor value

Returns:
the editor value
See Also:
Editor.getValue()

setAsText

public void setAsText(String text)
Description copied from interface: Editor
Set the editor value as text

Parameters:
text - the value to set as text
See Also:
Editor.setAsText(String)

setValue

public void setValue(Boolean value)
Description copied from interface: Editor
Set the editor value

Parameters:
value - the value
See Also:
Editor.setValue(Object)

isValid

public boolean isValid()
Description copied from interface: Editor
Determines if the user has entered a valid value

Returns:
if the value is valid
See Also:
Editor.isValid()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d