public class EEFListController extends AbstractEEFOnClickController implements IEEFListController
newHelpConsumer, newLabelConsumer
editingContextAdapter, 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 editingContextAdapter)
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.
|
protected java.lang.String |
getOnClickExpression()
Returns the on click expression.
|
void |
onNewValue(java.util.function.Consumer<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.
|
onClick
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
newEval, onValidation, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onClick
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 editingContextAdapter)
description
- The descriptionvariableManager
- The variable managerinterpreter
- The interpretereditingContextAdapter
- 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(java.util.function.Consumer<java.lang.Object> consumer)
onNewValue
in interface IEEFListController
consumer
- The consumer of the new value of the textorg.eclipse.eef.core.api.controllers.IEEFListController#onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)
public void removeNewValueConsumer()
removeNewValueConsumer
in interface IEEFListController
IEEFListController.removeNewValueConsumer()
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)
protected java.lang.String getOnClickExpression()
getOnClickExpression
in class AbstractEEFOnClickController
AbstractEEFOnClickController.getOnClickExpression()