public class EEFListController extends AbstractEEFWidgetController implements IEEFListController
newHelpConsumer, newLabelConsumerinterpreter, 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, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumeronValidation, removeValidationConsumerpublic 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 IEEFControllerrefresh in class AbstractEEFWidgetControllerorg.eclipse.eef.core.internal.controllers.AbstractEEFCustomWidgetController#refresh()public void onNewValue(IConsumer<java.lang.Object> consumer)
onNewValue in interface IEEFListControllerconsumer - The consumer of the new value of the textIEEFListController.onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFListControllerIEEFListController.removeNewValueConsumer()public void onClick(java.lang.Object element,
java.lang.String onClickEventKind)
onClick in interface IEEFListControllerelement - 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 AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action, java.util.List<java.lang.Object> elements)
action in interface IEEFListControlleraction - Widget actionelements - The selected elementsIEEFListController.action(org.eclipse.eef.EEFWidgetAction,
java.util.List)