public class EEFButtonController extends AbstractEEFWidgetController implements IEEFButtonController
newHelpConsumer, newLabelConsumer
editingContextAdapter, 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, removeNewLabelConsumer
newEval, onValidation, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
onValidation, removeValidationConsumer
public 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)
IEEFButtonController
onNewButtonLabel
in interface IEEFButtonController
consumer
- The consumer of the new value of the button's labelpublic void removeNewButtonLabelConsumer()
IEEFButtonController
removeNewButtonLabelConsumer
in interface IEEFButtonController
public void onNewButtonImage(java.util.function.Consumer<java.lang.Object> consumer)
IEEFButtonController
onNewButtonImage
in interface IEEFButtonController
consumer
- The consumer of the new value of the button's imagepublic void removeNewButtonImageConsumer()
IEEFButtonController
removeNewButtonImageConsumer
in interface IEEFButtonController
protected EEFWidgetDescription getDescription()
AbstractEEFWidgetController
getDescription
in class AbstractEEFWidgetController
public void refresh()
AbstractEEFWidgetController
refresh
in interface IEEFController
refresh
in class AbstractEEFWidgetController
AbstractEEFController.refresh()
public org.eclipse.core.runtime.IStatus pushed()
IEEFButtonController
pushed
in interface IEEFButtonController