@API(type=INTERNAL,
     src=PUBLIC)
public class ButtonGroupEditor
extends AbstractInplaceEditor
implements InplaceRenderer
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ButtonGroupEditor.ActionDisplayStyle
Display style for the action in the pop-up menu. 
 | 
| Constructor and Description | 
|---|
ButtonGroupEditor()
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelEditing()
Cancels the editing process. 
 | 
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 | 
getEditorComponent(AuthorInplaceContext context,
                  Rectangle allocation,
                  Point mouseInvocationLocation)
Prepare and return the editor component. 
 | 
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. 
 | 
Rectangle | 
getScrollRectangle()
Returns a rectangle that should be made visible after the editor is shown. 
 | 
java.lang.String | 
getTooltipText(AuthorInplaceContext context,
              int x,
              int y)
Gets a tooltip text to be presented when the cursor is over this renderer. 
 | 
java.lang.Object | 
getValue()
Gets the value that the user entered. 
 | 
static ButtonGroupEditor.ActionDisplayStyle | 
processActionDisplayStyle(java.lang.String actionDisplayStyle)
Processes the action display style. 
 | 
static java.util.List<IAuthorExtensionAction> | 
processActions(AuthorExtensionActionProvider actionProvider,
              java.lang.String actionIds)
Resolves the IDs of the actions to be displayed in the pop-up menus. 
 | 
void | 
requestFocus()
Requests focus inside the editing component. 
 | 
void | 
stopEditing()
Stops the editing and commits the current value. 
 | 
addEditingListener, fireCommitValue, fireEditingCanceled, fireEditingOccured, fireEditingStopped, fireNextEditLocationRequested, firePreviousEditLocationRequested, getBoolean, removeEditingListenerpublic java.lang.String getDescription()
getDescription in interface ExtensionExtension.getDescription()public java.lang.Object getEditorComponent(AuthorInplaceContext context, Rectangle allocation, Point mouseInvocationLocation)
InplaceEditorgetEditorComponent in interface InplaceEditorcontext - The context where the editor will be used.allocation - The bounds where the editor will be shown. This is normally
 the bounds of the box in which the value being edited is rendered. If the 
 editor requires to be presented in different bounds it should alter this parameter.
 The X,Y coordinates are relative to the parent in which the editor will be added.mouseInvocationLocation - if the editor was requested using the mouse this
 parameter represents the X,Y location where the event took place. It is relative to the parent
 in which the editor will be added. null if the editor wasn't requested through 
 mouse interaction.
 
 InplaceEditor.requestFocus() call).
 KeyListener for handling key events like: ENTER to stop editing 
  (by calling InplaceEditingListener.editingStopped(EditingEvent)) 
  and ESCAPE to cancel it (by calling InplaceEditingListener.editingCanceled()).FocusListener to stop editing when the focus is given to a component that is not 
  part of the editor (by calling InplaceEditingListener.editingStopped(EditingEvent)).DocumentListener to fire InplaceEditingListener.editingOccured() events (If the editor has a document).InplaceEditor.getEditorComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, ro.sync.exml.view.graphics.Rectangle, ro.sync.exml.view.graphics.Point)public Rectangle getScrollRectangle()
InplaceEditorgetScrollRectangle in interface InplaceEditornull to make the entire editor 
 visible.InplaceEditor.getScrollRectangle()public void requestFocus()
InplaceEditorrequestFocus in interface InplaceEditorInplaceEditor.requestFocus()public java.lang.Object getValue()
InplaceEditorgetValue in interface InplaceEditorInplaceEditor.getValue()public void stopEditing()
InplaceEditorInplaceEditingListener.editingStopped(EditingEvent).
 
 OBS: The current value will be committed only if at least one 
 InplaceEditingListener.editingOccured() event was issued before this moment.stopEditing in interface InplaceEditorInplaceEditor.stopEditing()public void cancelEditing()
InplaceEditorInplaceEditingListener.editingCanceled().cancelEditing in interface InplaceEditorInplaceEditor.cancelEditing()public java.lang.Object getRendererComponent(AuthorInplaceContext context)
InplaceRenderergetRendererComponent in interface InplaceRenderercontext - The editing context.InplaceRenderer.getRendererComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)public CursorType getCursorType(AuthorInplaceContext context, int x, int y)
InplaceRenderergetCursorType in interface InplaceRenderercontext - 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)
InplaceRendererInplaceRenderer.getCursorType(AuthorInplaceContext, int, int) as 
 you can use the provided context to get additional information.getCursorType in interface InplaceRendererx - 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 java.lang.String getTooltipText(AuthorInplaceContext context, int x, int y)
InplaceRenderergetTooltipText in interface InplaceRenderercontext - 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 static java.util.List<IAuthorExtensionAction> processActions(AuthorExtensionActionProvider actionProvider, java.lang.String actionIds)
actionProvider - action provider used to resolve the IDs of the actions.actionIds - the comma separated IDs of the actions.public static ButtonGroupEditor.ActionDisplayStyle processActionDisplayStyle(java.lang.String actionDisplayStyle)
actionDisplayStyle - the style specified in CSS.public RendererLayoutInfo getRenderingInfo(AuthorInplaceContext context)
InplaceRenderergetRenderingInfo in interface InplaceRenderercontext - The editing context.InplaceRenderer.getRenderingInfo(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext)© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.