|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InlineToolbar
Toolbar that renders inside the editor, attaching itself to elements. Created using ToolbarFactory.createInlineToolbar(EphoxAction,boolean)
.
Method Summary | |
---|---|
void |
hideToolbar()
Hides the toolbar. |
boolean |
isVisible()
|
void |
repositionAtCurrentPoint()
Updates the toolbar position using the element bounds cache. |
void |
showToolbar()
Shows the toolbar and calls repositionAtCurrentPoint() . |
void |
updateBounds(Element elem)
Updates the element bounds cache stored by the toolbar. |
Method Detail |
---|
void updateBounds(Element elem)
elem
- element the toolbar will be displayed next tovoid repositionAtCurrentPoint()
Horizontally, the toolbar position is left aligned to the element bounds. If left aligning would cause the toolbar to render partially off the right side of the editor, it becomes right aligned 5px from the right side of the editor.
Vertically, the position behaviour depends on the value of the stickToTop
parameter passed
to ToolbarFactory.createInlineToolbar(EphoxAction,boolean)
:
stickToTop
false (eg Inline Image Toolbar):
stickToTop
true (eg Inline Table Toolbar):
Automatically called when a button on the toolbar is clicked.
void hideToolbar()
void showToolbar()
repositionAtCurrentPoint()
.
boolean isVisible()
|
Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |