Humboldt Alignment Editor 2.5.0

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

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

public class StringEditor
extends AbstractEditor<String>

Simple attribute editor for string 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
StringEditor(org.eclipse.swt.widgets.Composite parent)
          Create a string attribute editor.
 
Method Summary
 String getAsText()
          Get the editor value as text
 org.eclipse.swt.widgets.Control getControl()
          Get the editor control
 String 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(String 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

StringEditor

public StringEditor(org.eclipse.swt.widgets.Composite parent)
Create a string 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 String 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(String 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