Class SWTDataElementIdHelper
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.core.SWTDataElementIdHelper
-
public final class SWTDataElementIdHelper extends java.lang.Object
Use this helper to ease setting theelement
as theSWT data
.- Since:
- 1.9
- Author:
- Johannes Faltermeier
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT_ID_KEY
Default key constant for the element id.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setElementIdDataForVControl(org.eclipse.swt.widgets.Widget widget, VControl element, ViewModelContext context)
Sets the element id with the control sub id on the given widget.static void
setElementIdDataWithSubId(org.eclipse.swt.widgets.Widget widget, VElement element, java.lang.String subId, ViewModelContext context)
Sets the element id with the given sub id on the given widget.
-
-
-
Field Detail
-
ELEMENT_ID_KEY
public static final java.lang.String ELEMENT_ID_KEY
Default key constant for the element id.- See Also:
- Constant Field Values
-
-
Method Detail
-
setElementIdDataForVControl
public static void setElementIdDataForVControl(org.eclipse.swt.widgets.Widget widget, VControl element, ViewModelContext context)
Sets the element id with the control sub id on the given widget.- Parameters:
widget
- the widget to set the data onelement
- the element including the idcontext
- theViewModelContext
-
setElementIdDataWithSubId
public static void setElementIdDataWithSubId(org.eclipse.swt.widgets.Widget widget, VElement element, java.lang.String subId, ViewModelContext context)
Sets the element id with the given sub id on the given widget.- Parameters:
widget
- the widget to set the data onelement
- the element including the idsubId
- the sub idcontext
- theViewModelContext
-
-