Class TextEditorPopupExecutor
java.lang.Object
com.levigo.jadice.web.client.internal.annotation.wrangler.TextEditorPopupExecutor
A popup executor for the
TextEditor
to ensure text can be applied to the anno when the
popup is closed by clicking outside the popup and to configure whether the popup should be closed
when clicking outside the popup..-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(com.levigo.jadice.web.client.viewer.internal.BasicPageView pageView, TextEditor editor, Collection<Object> context, Rectangle editorBounds, com.levigo.jadice.web.client.page.internal.PageContainer pageContainer) static TextEditorPopupExecutor
get()
void
hide
(boolean autoHide) Hides the open text editor.init
(TextAnnotationWrangler.EditorBehaviorOnOutsideClick behavior, boolean calculateEditorHeightOnEditorOpen)
-
Method Details
-
get
-
init
public TextEditorPopupExecutor init(TextAnnotationWrangler.EditorBehaviorOnOutsideClick behavior, boolean calculateEditorHeightOnEditorOpen) -
execute
public void execute(com.levigo.jadice.web.client.viewer.internal.BasicPageView pageView, TextEditor editor, Collection<Object> context, Rectangle editorBounds, com.levigo.jadice.web.client.page.internal.PageContainer pageContainer) -
hide
public void hide(boolean autoHide) Hides the open text editor. This should be called before dispatching a server operation that uses the annotation data in some way (e.g. export).- Parameters:
autoHide
- Whether this hide was triggered automatically. Required to be true if the changes should be applied.
-