Class AnnotationEditor
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.AnnotationEditor
A toolbar providing annotation editing functions such as buttons for editing colors, line widths,
text formatting, font sizes, font faces etc.
The editing options depend on the currently selected annotation(s).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all selected annotations.voidensureDebugId(String baseID) Returns a all selected annotationsvoidinit(ToolManager manager) booleanvoidsetLastVisible(boolean lastVisible) voidsetSelectedItems(AnnotationSelection selection, EditEvent e) Configures this toolbar instance with the selected annotations.voidsetToolbar(AbstractBar toolbar) voidsetVisible(boolean visible) protected voidupdateButtons(AnnotationSelection selection, EditEvent e) voidupdatePosition(Rectangle selectionRect)
-
Constructor Details
-
AnnotationEditor
Constructor.- Parameters:
tool- TheAnnotationToolthat performs the actual operations on the selected annotation(s).
-
-
Method Details
-
setToolbar
-
init
-
setLastVisible
public void setLastVisible(boolean lastVisible) -
setVisible
public void setVisible(boolean visible) -
setSelectedItems
Configures this toolbar instance with the selected annotations.Updates the displayed buttons in the toolbar. Dependent on the possible actions on the selected annotation(s) some buttons are displayed, others not. For instance a button to delete the selected annotations is only displayed when the user is allowed to delete all annotations contained in the selection.
- Parameters:
selection- The selected annotations.e- The underlying edit event.
-
getSelectedItems
Returns a all selected annotations- Returns:
- A set containing all selected annotations.
-
clearSelection
public void clearSelection()Removes all selected annotations. -
updatePosition
-
isVisible
public boolean isVisible() -
ensureDebugId
-
updateButtons
-