|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sysord.mad.ui.swt.SWTSpecificWidgetContext
public class SWTSpecificWidgetContext
SpecificWidgetContext
for SWT widgets.
Field Summary | |
---|---|
protected com.sysord.emf.tools.misc.ActivatableAdapter[] |
adapters
|
protected org.eclipse.swt.custom.ScrolledComposite |
currentContainer
Deprecated. It was used with the old emitter and the creation of a ScrolledComposite for each tab.
Now, you should use |
protected org.eclipse.emf.ecore.EObject |
currentElement
|
protected org.eclipse.swt.widgets.TabItem |
currentTab
|
protected org.eclipse.swt.widgets.TabFolder |
currentTabbedContainer
|
protected org.eclipse.emf.ecore.EObject |
element
|
protected java.util.Map<com.sysord.mad.widget.InputWidget<?>,java.lang.String> |
errorMessages
|
protected org.eclipse.swt.widgets.Composite |
formBody
Obtained with ScrolledForm.getBody() on scrolledForm . |
protected java.lang.Object |
id
|
protected com.sysord.mad.emitter.ModelElementView |
modelElementView
|
protected org.eclipse.swt.widgets.Composite |
parent
|
protected org.eclipse.ui.forms.widgets.ScrolledForm |
scrolledForm
|
protected org.eclipse.swt.widgets.Composite |
sectionDescriptionContainer
|
protected org.eclipse.swt.widgets.Label |
sectionErrorLabel
|
protected org.eclipse.ui.forms.widgets.FormToolkit |
toolkit
|
protected com.sysord.mad.emitter.ViewHolder |
viewHolder
|
protected com.sysord.mad.widget.WidgetBuilder |
widgetBuilder
|
protected org.eclipse.swt.widgets.Composite |
widgetContainer
|
Constructor Summary | |
---|---|
SWTSpecificWidgetContext()
|
Method Summary | |
---|---|
SWTSpecificWidgetContext |
clone()
|
com.sysord.emf.tools.misc.ActivatableAdapter[] |
getAdapters()
Return the value of adapters. |
org.eclipse.swt.custom.ScrolledComposite |
getCurrentContainer()
Deprecated. Use getFormBody() instead. |
org.eclipse.emf.ecore.EObject |
getCurrentElement()
|
org.eclipse.swt.widgets.TabItem |
getCurrentTab()
Return the value of currentTab. |
org.eclipse.swt.widgets.TabFolder |
getCurrentTabbedContainer()
Return the value of currentTabbedContainer. |
org.eclipse.emf.ecore.EObject |
getElement()
|
java.util.Map<com.sysord.mad.widget.InputWidget<?>,java.lang.String> |
getErrorMessages()
Return the value of errorMessages. |
org.eclipse.ui.forms.widgets.ScrolledForm |
getForm()
Return the value of currentForm. |
org.eclipse.swt.widgets.Composite |
getFormBody()
Return the value of formBody. |
java.lang.Object |
getId()
|
com.sysord.mad.emitter.ModelElementView |
getModelElementView()
|
org.eclipse.swt.widgets.Composite |
getParentComposite()
|
org.eclipse.swt.widgets.Composite |
getSectionDescriptionContainer()
Return the value of sectionDescriptionContainer. |
org.eclipse.swt.widgets.Label |
getSectionErrorLabel()
Return the value of sectionErrorLabel. |
org.eclipse.ui.forms.widgets.FormToolkit |
getToolkit()
Return the value of toolkit. |
com.sysord.mad.emitter.ViewHolder |
getViewHolder()
|
com.sysord.mad.widget.WidgetBuilder |
getWidgetBuilder()
Return the value of widgetBuilder. |
org.eclipse.swt.widgets.Composite |
getWidgetContainer()
Return the value of widgetContainer. |
void |
putErrorMessage(com.sysord.mad.widget.InputWidget<?> widget,
java.lang.String message)
Put the given error message into this context. |
void |
setAdapters(com.sysord.emf.tools.misc.ActivatableAdapter... adapters)
Set the specified value adapters for adapters. |
void |
setCurrentContainer(org.eclipse.swt.custom.ScrolledComposite currentContainer)
Deprecated. Use setFormBody(Composite) instead. |
void |
setCurrentElement(org.eclipse.emf.ecore.EObject element)
|
void |
setCurrentTab(org.eclipse.swt.widgets.TabItem currentTab)
Set the specified value currentTab for currentTab. |
void |
setCurrentTabbedContainer(org.eclipse.swt.widgets.TabFolder currentTabbedContainer)
Set the specified value currentTabbedContainer for currentTabbedContainer. |
void |
setElement(org.eclipse.emf.ecore.EObject element)
|
void |
setForm(org.eclipse.ui.forms.widgets.ScrolledForm currentForm)
Set the specified value currentForm for currentForm. |
void |
setFormBody(org.eclipse.swt.widgets.Composite formBody)
Set the specified value formBody for formBody. |
void |
setId(java.lang.Object id)
|
void |
setModelElementView(com.sysord.mad.emitter.ModelElementView modelElementView)
|
void |
setParentComposite(org.eclipse.swt.widgets.Composite parent)
|
void |
setSectionDescriptionContainer(org.eclipse.swt.widgets.Composite sectionDescriptionContainer)
Set the specified value sectionDescriptionContainer for sectionDescriptionContainer. |
void |
setSectionErrorLabel(org.eclipse.swt.widgets.Label sectionErrorLabel)
Set the specified value sectionErrorLabel for sectionErrorLabel. |
void |
setToolkit(org.eclipse.ui.forms.widgets.FormToolkit toolkit)
Set the specified value toolkit for toolkit. |
void |
setViewHolder(com.sysord.mad.emitter.ViewHolder viewHolder)
|
void |
setWidgetBuilder(com.sysord.mad.widget.WidgetBuilder widgetBuilder)
Set the specified value widgetBuilder for widgetBuilder. |
void |
setWidgetContainer(org.eclipse.swt.widgets.Composite widgetContainer)
Set the specified value widgetContainer for widgetContainer. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object id
protected org.eclipse.swt.widgets.Composite parent
protected com.sysord.mad.emitter.ViewHolder viewHolder
protected org.eclipse.ui.forms.widgets.FormToolkit toolkit
protected org.eclipse.ui.forms.widgets.ScrolledForm scrolledForm
protected org.eclipse.swt.widgets.Composite sectionDescriptionContainer
protected org.eclipse.swt.widgets.Label sectionErrorLabel
protected org.eclipse.emf.ecore.EObject element
protected org.eclipse.emf.ecore.EObject currentElement
protected com.sysord.mad.emitter.ModelElementView modelElementView
protected com.sysord.mad.widget.WidgetBuilder widgetBuilder
protected com.sysord.emf.tools.misc.ActivatableAdapter[] adapters
protected org.eclipse.swt.widgets.TabFolder currentTabbedContainer
protected org.eclipse.swt.widgets.TabItem currentTab
protected java.util.Map<com.sysord.mad.widget.InputWidget<?>,java.lang.String> errorMessages
@Deprecated protected org.eclipse.swt.custom.ScrolledComposite currentContainer
ScrolledComposite
for each tab.
Now, you should use formBody
and the corresponding
getters/setters.
This is due to the SWTViewBuilder
using FormToolkit
.
protected org.eclipse.swt.widgets.Composite formBody
ScrolledForm.getBody()
on scrolledForm
.
The ScrolledForm
being created with FormToolkit
.
protected org.eclipse.swt.widgets.Composite widgetContainer
Constructor Detail |
---|
public SWTSpecificWidgetContext()
Method Detail |
---|
public java.lang.Object getId()
getId
in interface com.sysord.mad.widget.SpecificWidgetContext
public void setId(java.lang.Object id)
setId
in interface com.sysord.mad.widget.SpecificWidgetContext
public com.sysord.mad.emitter.ViewHolder getViewHolder()
getViewHolder
in interface com.sysord.mad.widget.SpecificWidgetContext
public void setViewHolder(com.sysord.mad.emitter.ViewHolder viewHolder)
setViewHolder
in interface com.sysord.mad.widget.SpecificWidgetContext
public org.eclipse.emf.ecore.EObject getElement()
getElement
in interface com.sysord.mad.widget.SpecificWidgetContext
public void setElement(org.eclipse.emf.ecore.EObject element)
setElement
in interface com.sysord.mad.widget.SpecificWidgetContext
public org.eclipse.emf.ecore.EObject getCurrentElement()
getCurrentElement
in interface com.sysord.mad.widget.SpecificWidgetContext
public void setCurrentElement(org.eclipse.emf.ecore.EObject element)
setCurrentElement
in interface com.sysord.mad.widget.SpecificWidgetContext
public com.sysord.mad.emitter.ModelElementView getModelElementView()
getModelElementView
in interface com.sysord.mad.widget.SpecificWidgetContext
public void setModelElementView(com.sysord.mad.emitter.ModelElementView modelElementView)
setModelElementView
in interface com.sysord.mad.widget.SpecificWidgetContext
public org.eclipse.swt.widgets.Composite getParentComposite()
public void setParentComposite(org.eclipse.swt.widgets.Composite parent)
public org.eclipse.ui.forms.widgets.FormToolkit getToolkit()
public void setToolkit(org.eclipse.ui.forms.widgets.FormToolkit toolkit)
toolkit
- the value to set to toolkit.public com.sysord.emf.tools.misc.ActivatableAdapter[] getAdapters()
public void setAdapters(com.sysord.emf.tools.misc.ActivatableAdapter... adapters)
adapters
- the value to set to adapters.public com.sysord.mad.widget.WidgetBuilder getWidgetBuilder()
public void setWidgetBuilder(com.sysord.mad.widget.WidgetBuilder widgetBuilder)
widgetBuilder
- the value to set to widgetBuilder.public org.eclipse.swt.widgets.TabFolder getCurrentTabbedContainer()
public void setCurrentTabbedContainer(org.eclipse.swt.widgets.TabFolder currentTabbedContainer)
currentTabbedContainer
- the value to set to currentTabbedContainer.public org.eclipse.swt.widgets.TabItem getCurrentTab()
public void setCurrentTab(org.eclipse.swt.widgets.TabItem currentTab)
currentTab
- the value to set to currentTab.@Deprecated public org.eclipse.swt.custom.ScrolledComposite getCurrentContainer()
getFormBody()
instead.
@Deprecated public void setCurrentContainer(org.eclipse.swt.custom.ScrolledComposite currentContainer)
setFormBody(Composite)
instead.
currentContainer
- the value to set to currentContainer.public org.eclipse.swt.widgets.Composite getFormBody()
public void setFormBody(org.eclipse.swt.widgets.Composite formBody)
formBody
- the value to set to formBody.public org.eclipse.ui.forms.widgets.ScrolledForm getForm()
public void setForm(org.eclipse.ui.forms.widgets.ScrolledForm currentForm)
currentForm
- the value to set to currentForm.public org.eclipse.swt.widgets.Composite getSectionDescriptionContainer()
public void setSectionDescriptionContainer(org.eclipse.swt.widgets.Composite sectionDescriptionContainer)
sectionDescriptionContainer
- the value to set to sectionDescriptionContainer.public org.eclipse.swt.widgets.Label getSectionErrorLabel()
public void setSectionErrorLabel(org.eclipse.swt.widgets.Label sectionErrorLabel)
sectionErrorLabel
- the value to set to sectionErrorLabel.public org.eclipse.swt.widgets.Composite getWidgetContainer()
public void setWidgetContainer(org.eclipse.swt.widgets.Composite widgetContainer)
widgetContainer
- the value to set to widgetContainer.public java.util.Map<com.sysord.mad.widget.InputWidget<?>,java.lang.String> getErrorMessages()
public void putErrorMessage(com.sysord.mad.widget.InputWidget<?> widget, java.lang.String message)
widget
- message
- public SWTSpecificWidgetContext clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |