public class EEFHyperlinkController extends AbstractEEFOnClickController implements IEEFHyperlinkController
newHelpConsumer, newLabelConsumereditingContextAdapter, interpreter, variableManager| Constructor and Description |
|---|
EEFHyperlinkController(EEFHyperlinkDescription 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 |
|---|---|
org.eclipse.core.runtime.IStatus |
action(EEFWidgetAction action)
Invoked when the user clicks on an action button.
|
java.lang.String |
computeDisplayValue(java.lang.Object value)
Compute the display value.
|
protected EEFWidgetDescription |
getDescription()
Returns the widget description.
|
protected java.lang.String |
getOnClickExpression()
Returns the on click expression.
|
void |
onNewValue(java.util.function.Consumer<java.lang.Object> consumer)
Register a consumer which will be called with the new value of the hyperlink when it will change.
|
void |
refresh()
Refresh the controller.
|
void |
removeNewValueConsumer()
Remove the consumer of the new value of the hyperlink.
|
onClickcomputeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonClickcomputeHelp, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumeronValidation, removeValidationConsumerpublic EEFHyperlinkController(EEFHyperlinkDescription 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 refresh()
refresh in interface IEEFControllerrefresh in class AbstractEEFWidgetControllerAbstractEEFWidgetController.refresh()public java.lang.String computeDisplayValue(java.lang.Object value)
computeDisplayValue in interface IEEFHyperlinkControllervalue - Element associated to the hyperlinkIEEFHyperlinkController.computeDisplayValue(java.lang.Object)public void onNewValue(java.util.function.Consumer<java.lang.Object> consumer)
onNewValue in interface IEEFHyperlinkControllerconsumer - The consumer of the new value of the hyperlinkIEEFTextController.onNewValue(java.util.function.Consumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFHyperlinkControllerIEEFTextController.removeNewValueConsumer()protected EEFWidgetDescription getDescription()
getDescription in class AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()protected java.lang.String getOnClickExpression()
getOnClickExpression in class AbstractEEFOnClickControllerAbstractEEFOnClickController.getOnClickExpression()public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action)
action in interface IEEFHyperlinkControlleraction - Widget actionIEEFHyperlinkController.action(EEFWidgetAction)