public class EEFTextController extends AbstractEEFWidgetController implements IEEFTextController
newHelpConsumer, newLabelConsumereditingContextAdapter, interpreter, variableManager| Constructor and Description |
|---|
EEFTextController(EEFTextDescription 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.Object> consumer)
Register a consumer which will be called with the new value of the text when it will change.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewValueConsumer()
Remove the consumer of the new value of the text.
|
org.eclipse.core.runtime.IStatus |
updateValue(java.lang.String text)
Update the value of the text.
|
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumeronValidation, removeValidationConsumerpublic EEFTextController(EEFTextDescription 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(java.lang.String text)
IEEFTextControllerupdateValue in interface IEEFTextControllertext - The new value of the textpublic void refresh()
refresh in interface IEEFControllerrefresh in class AbstractEEFWidgetControllerAbstractEEFWidgetController.refresh()public void onNewValue(java.util.function.Consumer<java.lang.Object> consumer)
onNewValue in interface IEEFTextControllerconsumer - The consumer of the new value of the textIEEFTextController.onNewValue(java.util.function.Consumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFTextControllerIEEFTextController.removeNewValueConsumer()protected EEFWidgetDescription getDescription()
getDescription in class AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()