com.sysord.mad.ui.swt.widget
Class SWTTextDslWidget
java.lang.Object
com.sysord.mad.widget.AbstractSpecificWidget
com.sysord.mad.ui.swt.widget.AbstractSWTWidget
com.sysord.mad.ui.swt.widget.SWTTextDslWidget
- All Implemented Interfaces:
- com.sysord.mad.widget.SpecificWidget
public class SWTTextDslWidget
- extends AbstractSWTWidget
Default SWT implementation of the TextDslWidget
.
- Author:
- Fabien Vignal
Method Summary |
protected void |
addControlDisposedListener(com.sysord.mad.widget.Widget<?> madWidget,
org.eclipse.swt.widgets.Control swtWidget)
Adds the disposed listeners to the MAD widget and its corresponding SWT widget. |
protected void |
addTextDslListeners(com.sysord.mad.widget.TextDslWidget widget,
com.sysord.xtext.tools.editor.XtextSimpleTextEmbeddedEditor editor,
org.eclipse.swt.widgets.Composite container)
Add the needed listeners to the XtextEmbeddedEditor widget and its
corresponding TextDslWidget . |
protected void |
checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
Checks the widget type and raises an exception if the type is not valid for this
specific widget. |
protected org.eclipse.swt.widgets.Control |
createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
Creates the SWT widget. |
Methods inherited from class com.sysord.mad.widget.AbstractSpecificWidget |
candidatesToElementList, createLabelColumn, createSelection, createSelection, getFormatExprEvaluationService, getId, getInjector, getLogger, getMao, getValidationService, getViewBuilder, setId, toCandidateElement, toCandidateList, validate, widgetValueEqualsCandidate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWTTextDslWidget
public SWTTextDslWidget()
checkMadWidget
protected void checkMadWidget(com.sysord.mad.widget.Widget<?> widget)
- Description copied from class:
AbstractSWTWidget
- Checks the widget type and raises an exception if the type is not valid for this
specific widget.
- Specified by:
checkMadWidget
in class AbstractSWTWidget
createSpecificWidget
protected org.eclipse.swt.widgets.Control createSpecificWidget(com.sysord.mad.widget.Widget<?> madWidget)
- Description copied from class:
AbstractSWTWidget
- Creates the SWT widget.
This method is called after #checkMadWidget()
, the widget can be casted
with
- Specified by:
createSpecificWidget
in class AbstractSWTWidget
- Returns:
- the created SWT widget.
addTextDslListeners
protected void addTextDslListeners(com.sysord.mad.widget.TextDslWidget widget,
com.sysord.xtext.tools.editor.XtextSimpleTextEmbeddedEditor editor,
org.eclipse.swt.widgets.Composite container)
- Add the needed listeners to the
XtextEmbeddedEditor
widget and its
corresponding TextDslWidget
.
- Parameters:
widget
- editor
- container
-
addControlDisposedListener
protected void addControlDisposedListener(com.sysord.mad.widget.Widget<?> madWidget,
org.eclipse.swt.widgets.Control swtWidget)
- Description copied from class:
AbstractSWTWidget
- Adds the disposed listeners to the MAD widget and its corresponding SWT widget.
- Overrides:
addControlDisposedListener
in class AbstractSWTWidget