Class ContainerTextGUIEditor
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.ContainerTextGUIEditor
-
-
Field Summary
Fields Modifier and Type Field Description private IGUITextHandlerhandlerprivate org.eclipse.swt.widgets.Texttext
-
Constructor Summary
Constructors Constructor Description ContainerTextGUIEditor(org.eclipse.swt.widgets.Text text)Creates an editor representation.ContainerTextGUIEditor(org.eclipse.swt.widgets.Text text, IGUITextHandler handler)Constructor for ContainerTextGUIEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.ControlgetControl()Returns the actual SWT control of the editor.java.lang.ObjectgetValue()Returns the value of the editor.booleanisPseudoEditor()Returns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.voidrefreshContents()Refreshes the contents of this editor.voidsetValue(java.lang.Object object)Changes the value of the editor.
-
-
-
Field Detail
-
text
private org.eclipse.swt.widgets.Text text
-
handler
private IGUITextHandler handler
-
-
Constructor Detail
-
ContainerTextGUIEditor
ContainerTextGUIEditor(org.eclipse.swt.widgets.Text text)
Creates an editor representation.- Parameters:
text- the text
-
ContainerTextGUIEditor
public ContainerTextGUIEditor(org.eclipse.swt.widgets.Text text, IGUITextHandler handler)Constructor for ContainerTextGUIEditor. Sets Text and IGUITextHandler.- Parameters:
text- the texthandler- handler for the text
-
-
Method Detail
-
getControl
public org.eclipse.swt.widgets.Control getControl()
Description copied from interface:GUIEditorReturns the actual SWT control of the editor.- Specified by:
getControlin interfaceGUIEditor- Returns:
- the control
-
getValue
public java.lang.Object getValue()
Description copied from interface:GUIEditorReturns the value of the editor.
-
setValue
public void setValue(java.lang.Object object)
Description copied from interface:GUIEditorChanges the value of the editor.
-
isPseudoEditor
public boolean isPseudoEditor()
Description copied from interface:GUIEditorReturns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.- Specified by:
isPseudoEditorin interfaceGUIEditor- Returns:
trueif it is a pseudo editor,falseelse
-
refreshContents
public void refreshContents()
Description copied from interface:GUIEditorRefreshes the contents of this editor.- Specified by:
refreshContentsin interfaceGUIEditor
-
-