|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
VT
- Type of value.public interface WidgetConfiguration<VT>
Configuration of a Widget
as it is defined in a MAD configuration.
A WidgetConfiguration
will be used by the WidgetFactory
to create its
corresponding Widget
.
Nested Class Summary | |
---|---|
static class |
WidgetConfiguration.WIDGET_CATEGORY
Categories of widgets. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_UI_TAB_ID
Default UI Tab ID provided when no tab is defined for the widget |
static java.lang.String |
DEFAULT_UI_TAB_LABEL
Default UI Tab Label provided when no tab is defined for the widget |
Method Summary | |
---|---|
QueryDefinition<java.util.Collection<?>> |
getCandidatesQuery()
Returns the query used for selecting candidate elements. |
java.lang.Class<?> |
getCandidatesType()
Returns the candidates value type as a java Class . |
QueryDefinition<java.lang.Boolean> |
getEditableQuery()
Returns the query used for the evaluation of the widget editability. |
TypeConfiguration |
getFlexibleTemplate()
Returns the TypeConfiguration to replicate by the flexible widget. |
java.lang.String |
getFormat()
Returns the format expression to apply on the value of an output widget. |
java.lang.String |
getId()
Returns the widget id. |
QueryDefinition<org.eclipse.emf.ecore.EObject> |
getIncludeQuery()
Returns the include query for an included widget if widget is not an included widget then return null . |
java.lang.String |
getItemLabelExpression()
Returns the format expression used for generating elements's labels. |
java.lang.String |
getLabel()
Returns the widget label. |
java.util.List<Layer> |
getLayers()
Returns the layers for which the widget must be visible. |
java.lang.String |
getName()
Returns the widget name. |
java.lang.String |
getTabId()
Returns the widget UI tab ID. |
java.lang.String |
getTabLabel()
Returns the widget UI tab label. |
java.util.List<ValidatorDefinition> |
getValidators()
Returns the validators defined on the widget. |
ValueConverterConfiguration |
getValueConverterConfiguration()
Returns the value converter configuration , or
null if not defined. |
QueryDefinition<?> |
getValueQuery()
Returns the query used for getting the element value. |
QueryDefinition<java.lang.Boolean> |
getVisibilityQuery()
Returns the query used for the evaluation of the widget visibility. |
WidgetConfiguration.WIDGET_CATEGORY |
getWidgCategory()
Returns the widget's category . |
CommandDefinition |
getWidgetCommand(java.lang.String commandId)
Returns the command with the given commandId used
on the widget. |
java.util.Collection<CommandDefinition> |
getWidgetCommands()
Returns all the defined commands of the widget. |
java.lang.String |
getWidgetType()
Returns the widget concrete type ID. |
java.lang.Class<VT> |
getWidgetValueType()
Returns the widget value type as a java Class . |
XtextLanguageDescription |
getXtextWidgetLanguageDescriptor()
Returns the XtextLanguageDescriptor if the widget uses an Xtext editor. |
boolean |
isFlexibleWidget()
Indicates if the widget is a FLEXIBLE_WIDGET . |
boolean |
isIncludedWidget()
Returns true if the widget has been included. |
Field Detail |
---|
static final java.lang.String DEFAULT_UI_TAB_ID
static final java.lang.String DEFAULT_UI_TAB_LABEL
Method Detail |
---|
java.lang.String getId()
java.lang.String getName()
java.lang.String getLabel()
java.lang.String getTabId()
If no UI tab was defined, "_MAIN" is returned.
java.lang.String getTabLabel()
If no UI tab was defined, "Main" is returned.
java.util.List<Layer> getLayers()
layers
for which the widget must be visible.
layers
for which the widget must be visible.java.lang.Class<VT> getWidgetValueType()
Class
.
java.lang.Class<?> getCandidatesType()
Class
.
WidgetConfiguration.WIDGET_CATEGORY getWidgCategory()
category
.
category
.java.lang.String getWidgetType()
QueryDefinition<java.lang.Boolean> getVisibilityQuery()
QueryDefinition<java.lang.Boolean> getEditableQuery()
QueryDefinition<?> getValueQuery()
java.util.List<ValidatorDefinition> getValidators()
validators
defined on the widget.
validators
defined on the widget.ValueConverterConfiguration getValueConverterConfiguration()
configuration
, or
null
if not defined.
configuration
, or
null
java.lang.String getFormat()
A format expression is a string expression usable for any label in the MAD
configuration (see FormatExpressionEvaluationService
for more details).
QueryDefinition<java.util.Collection<?>> getCandidatesQuery()
Used for :
java.lang.String getItemLabelExpression()
Used for :
A format expression is a string expression usable for any label in the MAD
configuration (see FormatExpressionEvaluationService
for more details).
boolean isFlexibleWidget()
FLEXIBLE_WIDGET
.
It means, the configuration will be replicated for 1 to N elements of the same type
(=> with an identical configuration
).
true
if the widget is a FLEXIBLE_WIDGET
;false
otherwise.TypeConfiguration getFlexibleTemplate()
TypeConfiguration
to replicate by the flexible widget.
TypeConfiguration
to replicate by the flexible widget.java.util.Collection<CommandDefinition> getWidgetCommands()
commands
of the widget.
commands
of the widget.CommandDefinition getWidgetCommand(java.lang.String commandId)
command
with the given commandId
used
on the widget.
commandId
- The ID of the command
to retrieve on the
widget.
command
with the given commandId
used
on the widget.XtextLanguageDescription getXtextWidgetLanguageDescriptor()
XtextLanguageDescriptor
if the widget uses an Xtext editor.
XtextLanguageDescriptor
.boolean isIncludedWidget()
QueryDefinition<org.eclipse.emf.ecore.EObject> getIncludeQuery()
null
.
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |