public class EEFCheckboxController extends AbstractEEFWidgetController implements IEEFCheckboxController
newHelpConsumer, newLabelConsumereditingContextAdapter, interpreter, variableManager| Constructor and Description |
|---|
EEFCheckboxController(EEFCheckboxDescription 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 |
onNewValue(java.util.function.Consumer<java.lang.Boolean> consumer)
Register a consumer which will be called with the new value of the checkbox when it will change.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewValueConsumer()
Remove the consumer of the new value of the checkbox.
|
org.eclipse.core.runtime.IStatus |
updateValue(boolean checkbox)
Update the value of the checkbox.
|
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumeronValidation, removeValidationConsumerpublic EEFCheckboxController(EEFCheckboxDescription 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 org.eclipse.core.runtime.IStatus updateValue(boolean checkbox)
IEEFCheckboxControllerupdateValue in interface IEEFCheckboxControllercheckbox - The new value of the checkboxpublic void refresh()
refresh in interface IEEFControllerrefresh in class AbstractEEFWidgetControllerAbstractEEFWidgetController.refresh()public void onNewValue(java.util.function.Consumer<java.lang.Boolean> consumer)
onNewValue in interface IEEFCheckboxControllerconsumer - The consumer of the new value of the checkboxIEEFTextController.onNewValue(java.util.function.Consumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFCheckboxControllerIEEFTextController.removeNewValueConsumer()protected EEFWidgetDescription getDescription()
getDescription in class AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()