public interface TextPropertyProvider
String property displayed as the caption for all Shape's handled
by the BaseCanvasHandler and edited "in-place" by the CanvasInPlaceTextEditorControl| 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. |
int getPriority()
TextPropertyProvider. 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".boolean supports(Element<? extends Definition> element)
TextPropertyProvider supports a given Element.element - The element to check.String getText(Element<? extends Definition> element)
Element. TextPropertyProvider.initialiseForReading which should be called first.element - The element for which to get the caption.void setText(AbstractCanvasHandler canvasHandler, CanvasCommandManager<AbstractCanvasHandler> commandManager, Element<? extends Definition> element, String text)
Element. TextPropertyProvider.initialiseForWriting which should be called first.canvasHandler - 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.