|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sysord.mad.widget.AbstractSpecificWidget
public abstract class AbstractSpecificWidget
Abstract implementation of a SpecificWidget for SWT.
| Field Summary | |
|---|---|
protected java.lang.String |
ID
|
| Constructor Summary | |
|---|---|
AbstractSpecificWidget()
|
|
| Method Summary | |
|---|---|
protected java.util.Collection<java.lang.Object> |
candidatesToElementList(java.util.Collection<java.lang.Object> candidates)
Extract the elements from the candidate collection. |
protected static org.eclipse.swt.widgets.Label |
createLabelColumn(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite container,
com.sysord.mad.widget.Widget<?> widget)
Create a label and set its GridData. |
protected org.eclipse.jface.viewers.IStructuredSelection |
createSelection(java.util.Collection<java.lang.Object> values)
Create a IStructuredSelection for the given values. |
protected org.eclipse.jface.viewers.IStructuredSelection |
createSelection(java.lang.Object value)
Create a IStructuredSelection for the given value. |
protected com.sysord.mad.evaluator.FormatExpressionEvaluationService |
getFormatExprEvaluationService()
retrieves and returns the FormatExpressionEvaluationService using injector |
java.lang.String |
getId()
|
protected com.google.inject.Injector |
getInjector()
|
protected com.sysord.eclipse.tools.runtime.ConsoleLogger |
getLogger()
|
protected com.sysord.mad.mao.ModelAccessObject |
getMao()
|
protected com.sysord.mad.validator.WidgetValueValidationService |
getValidationService()
Returns the value validation service. |
protected com.sysord.mad.emitter.ViewBuilder |
getViewBuilder()
|
void |
setId(java.lang.String ID)
|
protected com.sysord.mad.widget.Candidate |
toCandidateElement(java.util.List<com.sysord.mad.widget.Candidate> candidates,
java.lang.Object selected)
Return the corresponding candidate of the specified selected Object with the candidates list. |
protected java.util.Collection<com.sysord.mad.widget.Candidate> |
toCandidateList(java.util.List<com.sysord.mad.widget.Candidate> candidates,
java.util.Collection<java.lang.Object> selected)
Create a list of Candidates with the specified objects collection contained
by the candidates collection. |
protected java.lang.String |
validate(com.sysord.mad.widget.InputWidget<?> widget,
java.lang.Object value)
Validates the value to put on the given widget. |
protected boolean |
widgetValueEqualsCandidate(com.sysord.mad.widget.OutputWidget<?> widget,
java.lang.Object candidateOrValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sysord.mad.widget.SpecificWidget |
|---|
createWidget |
| Field Detail |
|---|
protected java.lang.String ID
| Constructor Detail |
|---|
public AbstractSpecificWidget()
| Method Detail |
|---|
public java.lang.String getId()
getId in interface com.sysord.mad.widget.SpecificWidgetpublic void setId(java.lang.String ID)
setId in interface com.sysord.mad.widget.SpecificWidget
protected java.util.Collection<com.sysord.mad.widget.Candidate> toCandidateList(java.util.List<com.sysord.mad.widget.Candidate> candidates,
java.util.Collection<java.lang.Object> selected)
Candidates with the specified objects collection contained
by the candidates collection.
selected -
Candidates.
protected com.sysord.mad.widget.Candidate toCandidateElement(java.util.List<com.sysord.mad.widget.Candidate> candidates,
java.lang.Object selected)
selected -
Candidates.protected java.util.Collection<java.lang.Object> candidatesToElementList(java.util.Collection<java.lang.Object> candidates)
candidates -
protected org.eclipse.jface.viewers.IStructuredSelection createSelection(java.util.Collection<java.lang.Object> values)
IStructuredSelection for the given values.
If a value is null it will be transformed in a Candidate with a
null value.
values -
IStructuredSelection corresponding to the given values.protected org.eclipse.jface.viewers.IStructuredSelection createSelection(java.lang.Object value)
IStructuredSelection for the given value.
If the value is null it will be transformed in a Candidate with a
null value.
value -
IStructuredSelection corresponding to the given value.
protected boolean widgetValueEqualsCandidate(com.sysord.mad.widget.OutputWidget<?> widget,
java.lang.Object candidateOrValue)
protected java.lang.String validate(com.sysord.mad.widget.InputWidget<?> widget,
java.lang.Object value)
widget - value -
null otherwise.
protected static org.eclipse.swt.widgets.Label createLabelColumn(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite container,
com.sysord.mad.widget.Widget<?> widget)
toolkit - container - widget -
protected com.sysord.mad.validator.WidgetValueValidationService getValidationService()
value validation service.
value validation service.protected com.sysord.mad.evaluator.FormatExpressionEvaluationService getFormatExprEvaluationService()
FormatExpressionEvaluationService using injector
protected com.sysord.mad.mao.ModelAccessObject getMao()
protected com.sysord.mad.emitter.ViewBuilder getViewBuilder()
protected com.sysord.eclipse.tools.runtime.ConsoleLogger getLogger()
protected com.google.inject.Injector getInjector()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||