public abstract class AbstractEEFWidgetController extends AbstractEEFController implements IEEFWidgetController
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Consumer<java.lang.String> |
newHelpConsumer
The consumer of the new value of the help.
|
protected java.util.function.Consumer<java.lang.String> |
newLabelConsumer
The consumer of a new value of the label.
|
editingContextAdapter, interpreter, variableManager| Constructor and Description |
|---|
AbstractEEFWidgetController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
EditingContextAdapter editingContextAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeHelp()
Compute the help message.
|
protected abstract EEFWidgetDescription |
getDescription()
Returns the widget description.
|
protected org.eclipse.emf.ecore.EObject |
getValidationRulesContainer()
Returns the EObject containing the validation rules.
|
protected org.eclipse.emf.ecore.EReference |
getValidationRulesReference()
Returns the EReference containing the validation rules.
|
void |
onNewHelp(java.util.function.Consumer<java.lang.String> consumer)
Registers a consumer which will be called with the new value of the help.
|
void |
onNewLabel(java.util.function.Consumer<java.lang.String> consumer)
Register a consumer which will be called with the new value of the label when it will change.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewHelpConsumer()
Removes the consumer of the new value of the help.
|
void |
removeNewLabelConsumer()
Remove the consumer of the new value of the label.
|
newEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonValidation, removeValidationConsumerprotected java.util.function.Consumer<java.lang.String> newLabelConsumer
protected java.util.function.Consumer<java.lang.String> newHelpConsumer
public AbstractEEFWidgetController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
EditingContextAdapter editingContextAdapter)
variableManager - The variable managerinterpreter - The interpretereditingContextAdapter - The editing context adapterprotected abstract EEFWidgetDescription getDescription()
protected org.eclipse.emf.ecore.EObject getValidationRulesContainer()
getValidationRulesContainer in class AbstractEEFControllerAbstractEEFController.getValidationRulesContainer()protected org.eclipse.emf.ecore.EReference getValidationRulesReference()
getValidationRulesReference in class AbstractEEFControllerAbstractEEFController.getValidationRulesReference()public void onNewLabel(java.util.function.Consumer<java.lang.String> consumer)
onNewLabel in interface IEEFWidgetControllerconsumer - The consumer of the new value of the labelIEEFWidgetController.onNewLabel(java.util.function.Consumer)public void removeNewLabelConsumer()
removeNewLabelConsumer in interface IEEFWidgetControllerIEEFWidgetController.removeNewLabelConsumer()public void onNewHelp(java.util.function.Consumer<java.lang.String> consumer)
onNewHelp in interface IEEFWidgetControllerconsumer - The consumer of the new value of the helpIEEFWidgetController.onNewHelp(java.util.function.Consumer)public void removeNewHelpConsumer()
removeNewHelpConsumer in interface IEEFWidgetControllerIEEFWidgetController.removeNewHelpConsumer()public void refresh()
refresh in interface IEEFControllerrefresh in class AbstractEEFControllerAbstractEEFController.refresh()public void computeHelp()
computeHelp in interface IEEFWidgetControllerIEEFWidgetController.computeHelp()