public class EEFHyperlinkController extends AbstractEEFWidgetController implements IEEFHyperlinkController
newHelpConsumer, newLabelConsumerinterpreter, variableManager| Constructor and Description |
|---|
EEFHyperlinkController(EEFHyperlinkDescription description,
org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
EditingContextAdapter contextAdapter)
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.
|
org.eclipse.core.runtime.IStatus |
onClick(java.lang.Object element)
Invoked when the user clicks on an hyperlink.
|
void |
onNewValue(IConsumer<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.
|
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumernewEval, onValidation, removeValidationConsumerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeHelp, 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 contextAdapter)
description - The descriptionvariableManager - The variable managerinterpreter - The interpretercontextAdapter - 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 org.eclipse.core.runtime.IStatus onClick(java.lang.Object element)
onClick in interface IEEFHyperlinkControllerelement - Semantic elementIEEFHyperlinkController.onClick(java.lang.Object)public void onNewValue(IConsumer<java.lang.Object> consumer)
onNewValue in interface IEEFHyperlinkControllerconsumer - The consumer of the new value of the hyperlinkIEEFTextController.onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)public void removeNewValueConsumer()
removeNewValueConsumer in interface IEEFHyperlinkControllerIEEFTextController.removeNewValueConsumer()protected EEFWidgetDescription getDescription()
getDescription in class AbstractEEFWidgetControllerAbstractEEFWidgetController.getDescription()public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action)
action in interface IEEFHyperlinkControlleraction - Widget actionIEEFHyperlinkController.action(EEFWidgetAction)