public class EEFLabelController extends AbstractEEFWidgetController implements IEEFLabelController
newHelpConsumer, newLabelConsumerinterpreter, variableManager| Constructor and Description |
|---|
EEFLabelController(EEFLabelDescription description,
org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
EditingContextAdapter contextAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
action(EEFWidgetAction action)
Invoked when the user clicks on an action button.
|
protected EEFWidgetDescription |
getDescription()
Returns the widget description.
|
void |
onNewValue(IConsumer<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 |
removeNewValueConsumer()
Remove the consumer of the new value of the label.
|
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumeronValidation, removeValidationConsumerpublic EEFLabelController(EEFLabelDescription description, org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager, org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter, EditingContextAdapter contextAdapter)
description - The descriptionvariableManager - The variable managerinterpreter - The interpretercontextAdapter - The editing context adapterpublic void refresh()
refresh in interface IEEFControllerrefresh in class AbstractEEFWidgetControllerAbstractEEFWidgetController.refresh()protected EEFWidgetDescription getDescription()
getDescription in class AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()public void onNewValue(IConsumer<java.lang.String> consumer)
onNewValue in interface IEEFLabelControllerconsumer - The consumer of the new value of the labelIEEFLabelController.onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFLabelControllerIEEFLabelController.removeNewValueConsumer()public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action)
action in interface IEEFLabelControlleraction - Widget actionIEEFLabelController.action(EEFWidgetAction)