@ApplicationScoped public class DefaultTextPropertyProviderImpl extends Object implements TextPropertyProvider
| Constructor and Description |
|---|
DefaultTextPropertyProviderImpl() |
DefaultTextPropertyProviderImpl(DefinitionUtils definitionUtils,
CanvasCommandFactory<AbstractCanvasHandler> canvasCommandFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Returns the priority of the
TextPropertyProvider. |
String |
getText(Element<? extends Definition> element)
Gets the text on the initialised
Element. |
void |
setText(AbstractCanvasHandler canvasHandler,
CanvasCommandManager<AbstractCanvasHandler> commandManager,
Element<? extends Definition> element,
String text)
Sets the text on the initialised
Element. |
boolean |
supports(Element<? extends Definition> element)
Returns whether the
TextPropertyProvider supports a given Element. |
public DefaultTextPropertyProviderImpl()
@Inject public DefaultTextPropertyProviderImpl(DefinitionUtils definitionUtils, CanvasCommandFactory<AbstractCanvasHandler> canvasCommandFactory)
public int getPriority()
TextPropertyProviderTextPropertyProvider. Integer.MIN_VALUE is considered the
highest priority, whereas Integer.MAX_VALUE is considered the lowest priority and is used by
the default implementation as a "catch all".getPriority in interface TextPropertyProviderpublic boolean supports(Element<? extends Definition> element)
TextPropertyProviderTextPropertyProvider supports a given Element.supports in interface TextPropertyProviderelement - The element to check.public String getText(Element<? extends Definition> element)
TextPropertyProviderElement. TextPropertyProvider.initialiseForReading which should be called first.getText in interface TextPropertyProviderelement - The element for which to get the caption.public void setText(AbstractCanvasHandler canvasHandler, CanvasCommandManager<AbstractCanvasHandler> commandManager, Element<? extends Definition> element, String text)
TextPropertyProviderElement. TextPropertyProvider.initialiseForWriting which should be called first.setText in interface TextPropertyProvidercanvasHandler - Required by CommandManager when executing Command's to update the Element's property.commandManager - A CommandManager with which to execute update commands.element - The element for which to update the property represented by the caption.text - The text shown as the caption.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.