@API(type=INTERNAL, src=PUBLIC) public class PopupCheckBoxRenderer extends java.lang.Object implements InplaceRenderer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMPTY_LABEL
The text to render for empty labels.
|
protected static MessageBundle |
messages
The messages resource bundle.
|
Constructor and Description |
---|
PopupCheckBoxRenderer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(AuthorInplaceContext inplaceContext,
java.lang.StringBuilder builder) |
CursorType |
getCursorType(AuthorInplaceContext context,
int x,
int y)
Get a cursor to be used when the user hovers with the mouse over this renderer.
|
CursorType |
getCursorType(int x,
int y)
Get a cursor to be used when the user hovers with the mouse over this renderer.
|
java.lang.String |
getDescription() |
java.lang.Object |
getRendererComponent(AuthorInplaceContext context)
Initialize the renderer with the given context and returns the component.
|
RendererLayoutInfo |
getRenderingInfo(AuthorInplaceContext context)
Returns the rendering layout info.
|
java.lang.String |
getTooltipText(AuthorInplaceContext context,
int x,
int y)
Gets a tooltip text to be presented when the cursor is over this renderer.
|
protected static final MessageBundle messages
public static final java.lang.String EMPTY_LABEL
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public java.lang.Object getRendererComponent(AuthorInplaceContext context)
InplaceRenderer
getRendererComponent
in interface InplaceRenderer
context
- The editing context.InplaceRenderer.getRendererComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)
public RendererLayoutInfo getRenderingInfo(AuthorInplaceContext context)
InplaceRenderer
getRenderingInfo
in interface InplaceRenderer
context
- The editing context.InplaceRenderer.getRenderingInfo(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)
public java.lang.String getTooltipText(AuthorInplaceContext context, int x, int y)
InplaceRenderer
getTooltipText
in interface InplaceRenderer
context
- The editing context.x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
if no tooltip.InplaceRenderer.getTooltipText(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)
public CursorType getCursorType(AuthorInplaceContext context, int x, int y)
InplaceRenderer
getCursorType
in interface InplaceRenderer
context
- The editing context. Useful if the renderer is a more complex one,
like a text field with an associated button and wants to provide different
cursors when the cursor is over the textfield or over the button. In this case
the renderer will have to initialize itself with this context in order to
decide what the cursor is hovering.x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
to let the viewport decide.InplaceRenderer.getCursorType(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, int, int)
public CursorType getCursorType(int x, int y)
InplaceRenderer
InplaceRenderer.getCursorType(AuthorInplaceContext, int, int)
as
you can use the provided context to get additional information.getCursorType
in interface InplaceRenderer
x
- The x coordinate relative to the renderer bounds.y
- The y coordinate relative to the renderer bounds.null
to let the viewport decide.InplaceRenderer.getCursorType(int, int)
public void dump(AuthorInplaceContext inplaceContext, java.lang.StringBuilder builder)
ro.sync.ecss.component.editor.LoggableInplaceRenderer#dump(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, java.lang.StringBuilder)
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.