public class EEFHyperlinkController extends AbstractEEFOnClickController implements IEEFHyperlinkController
newHelpConsumer, newLabelConsumer
editingContextAdapter, 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.
|
onClick
computeHelp, getValidationRulesContainer, getValidationRulesReference, onNewHelp, onNewLabel, removeNewHelpConsumer, removeNewLabelConsumer
newEval, onValidation, removeValidationConsumer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onClick
computeHelp, 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 editingContextAdapter)
description
- The descriptionvariableManager
- The variable managerinterpreter
- The interpretereditingContextAdapter
- The editing context adapterpublic void refresh()
refresh
in interface IEEFController
refresh
in class AbstractEEFWidgetController
AbstractEEFWidgetController.refresh()
public java.lang.String computeDisplayValue(java.lang.Object value)
computeDisplayValue
in interface IEEFHyperlinkController
value
- Element associated to the hyperlinkIEEFHyperlinkController.computeDisplayValue(java.lang.Object)
public void onNewValue(java.util.function.Consumer<java.lang.Object> consumer)
onNewValue
in interface IEEFHyperlinkController
consumer
- The consumer of the new value of the hyperlinkIEEFTextController.onNewValue(java.util.function.Consumer)
public void removeNewValueConsumer()
removeNewValueConsumer
in interface IEEFHyperlinkController
IEEFTextController.removeNewValueConsumer()
protected EEFWidgetDescription getDescription()
getDescription
in class AbstractEEFWidgetController
AbstractEEFWidgetController.getDescription()
protected java.lang.String getOnClickExpression()
getOnClickExpression
in class AbstractEEFOnClickController
AbstractEEFOnClickController.getOnClickExpression()
public org.eclipse.core.runtime.IStatus action(EEFWidgetAction action)
action
in interface IEEFHyperlinkController
action
- Widget actionIEEFHyperlinkController.action(EEFWidgetAction)