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, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onValidation, removeValidationConsumer
protected 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 AbstractEEFController
AbstractEEFController.getValidationRulesContainer()
protected org.eclipse.emf.ecore.EReference getValidationRulesReference()
getValidationRulesReference
in class AbstractEEFController
AbstractEEFController.getValidationRulesReference()
public void onNewLabel(java.util.function.Consumer<java.lang.String> consumer)
onNewLabel
in interface IEEFWidgetController
consumer
- The consumer of the new value of the labelIEEFWidgetController.onNewLabel(java.util.function.Consumer)
public void removeNewLabelConsumer()
removeNewLabelConsumer
in interface IEEFWidgetController
IEEFWidgetController.removeNewLabelConsumer()
public void onNewHelp(java.util.function.Consumer<java.lang.String> consumer)
onNewHelp
in interface IEEFWidgetController
consumer
- The consumer of the new value of the helpIEEFWidgetController.onNewHelp(java.util.function.Consumer)
public void removeNewHelpConsumer()
removeNewHelpConsumer
in interface IEEFWidgetController
IEEFWidgetController.removeNewHelpConsumer()
public void refresh()
refresh
in interface IEEFController
refresh
in class AbstractEEFController
AbstractEEFController.refresh()
public void computeHelp()
computeHelp
in interface IEEFWidgetController
IEEFWidgetController.computeHelp()