public class EEFButtonController extends AbstractEEFWidgetController implements IEEFButtonController
newHelpConsumer, newLabelConsumereditingContextAdapter, interpreter, variableManager| Constructor and Description |
|---|
EEFButtonController(EEFButtonDescription description,
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 |
|---|---|
protected EEFWidgetDescription |
getDescription()
Returns the widget description.
|
void |
onNewButtonImage(java.util.function.Consumer<java.lang.Object> consumer)
Register a consumer which will be called with the new value of the button's image when it will change.
|
void |
onNewButtonLabel(java.util.function.Consumer<java.lang.String> consumer)
Register a consumer which will be called with the new value of the button's label when it will change.
|
org.eclipse.core.runtime.IStatus |
pushed()
Invoked when the user pushes the button.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewButtonImageConsumer()
Remove the consumer of the new value of the button's image.
|
void |
removeNewButtonLabelConsumer()
Remove the consumer of the new value of the button's 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 EEFButtonController(EEFButtonDescription description, org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager, org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter, EditingContextAdapter editingContextAdapter)
description - The descriptionvariableManager - The variable managerinterpreter - The interpretereditingContextAdapter - The editing context adapterpublic void onNewButtonLabel(java.util.function.Consumer<java.lang.String> consumer)
IEEFButtonControlleronNewButtonLabel in interface IEEFButtonControllerconsumer - The consumer of the new value of the button's labelpublic void removeNewButtonLabelConsumer()
IEEFButtonControllerremoveNewButtonLabelConsumer in interface IEEFButtonControllerpublic void onNewButtonImage(java.util.function.Consumer<java.lang.Object> consumer)
IEEFButtonControlleronNewButtonImage in interface IEEFButtonControllerconsumer - The consumer of the new value of the button's imagepublic void removeNewButtonImageConsumer()
IEEFButtonControllerremoveNewButtonImageConsumer in interface IEEFButtonControllerprotected EEFWidgetDescription getDescription()
AbstractEEFWidgetControllergetDescription in class AbstractEEFWidgetControllerpublic void refresh()
AbstractEEFWidgetControllerrefresh in interface IEEFControllerrefresh in class AbstractEEFWidgetControllerAbstractEEFController.refresh()public org.eclipse.core.runtime.IStatus pushed()
IEEFButtonControllerpushed in interface IEEFButtonController