public class EEFHyperlinkController extends AbstractEEFWidgetController implements IEEFHyperlinkController
newHelpConsumer, newLabelConsumer
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 contextAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected EEFWidgetDescription |
getDescription()
Returns the widget description.
|
void |
onClick(java.lang.Object element)
Invoked when the user clicks on an hyperlink.
|
void |
onNewValue(IConsumer<java.lang.String> 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.
|
getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
newEval, onValidation, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
onValidation, removeValidationConsumer
public 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 IEEFController
refresh
in class AbstractEEFWidgetController
AbstractEEFWidgetController.refresh()
public void onClick(java.lang.Object element)
onClick
in interface IEEFHyperlinkController
element
- Semantic elementIEEFHyperlinkController.onClick(java.lang.Object)
public void onNewValue(IConsumer<java.lang.String> consumer)
onNewValue
in interface IEEFHyperlinkController
consumer
- The consumer of the new value of the hyperlinkIEEFTextController.onNewValue(org.eclipse.eef.core.api.controllers.IConsumer)
public void removeNewValueConsumer()
removeNewValueConsumer
in interface IEEFHyperlinkController
IEEFTextController.removeNewValueConsumer()
protected EEFWidgetDescription getDescription()
getDescription
in class AbstractEEFWidgetController
AbstractEEFWidgetController.getDescription()