public class EEFListController extends AbstractEEFWidgetController implements IEEFListController
newHelpConsumer, newLabelConsumer
interpreter, variableManager
Constructor and Description |
---|
EEFListController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
EEFListDescription description,
EditingContextAdapter contextAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
action(EEFWidgetAction action,
java.util.List<java.lang.Object> elements)
Invoked when the user clicks on an action button.
|
protected EEFWidgetDescription |
getDescription()
Returns the widget description.
|
void |
onClick(java.lang.Object element,
java.lang.String onClickEventKind)
Invoked when the user clicks on an object.
|
void |
onNewValue(IConsumer<java.lang.Object> consumer)
Register a consumer which will be called with the new value of the text when it will change.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewValueConsumer()
Remove the consumer of the new value of the text.
|
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
newEval, onValidation, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
onValidation, removeValidationConsumer
public EEFListController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager, org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter, EEFListDescription description, EditingContextAdapter contextAdapter)
description
- The descriptionvariableManager
- The variable managerinterpreter
- The interpretercontextAdapter
- The editing context adapterpublic void refresh()
refresh
in interface IEEFController
refresh
in class AbstractEEFWidgetController
org.eclipse.eef.core.internal.controllers.AbstractEEFCustomWidgetController#refresh()
public void onNewValue(IConsumer<java.lang.Object> consumer)
onNewValue
in interface IEEFListController
consumer
- The consumer of the new value of the textIEEFListController.onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)
public void removeNewValueConsumer()
removeNewValueConsumer
in interface IEEFListController
IEEFListController.removeNewValueConsumer()
public void onClick(java.lang.Object element, java.lang.String onClickEventKind)
onClick
in interface IEEFListController
element
- Semantic elementonClickEventKind
- The kind of event (single click or double click)IEEFListController.onClick(java.lang.Object, java.lang.String)
protected EEFWidgetDescription getDescription()
getDescription
in class AbstractEEFWidgetController
AbstractEEFWidgetController.getDescription()
public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action, java.util.List<java.lang.Object> elements)
action
in interface IEEFListController
action
- Widget actionelements
- The selected elementsIEEFListController.action(org.eclipse.eef.EEFWidgetAction,
java.util.List)