Class ListFormattedAnnoToolbar
java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.ListFormattedAnnoToolbar
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
,AnnotationProfiles.Handler
public class ListFormattedAnnoToolbar
extends Object
implements com.google.gwt.user.client.ui.IsWidget, AnnotationProfiles.Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(AnnotationProfile profile, List toolbar, TypeRef typeRef) protected void
add
(AnnotationProfile profile, List content, TypeSetElement t) protected void
addCommandCreatedAnnoButton
(AnnotationProfile profile, List toolbar, String name) We need to add the text highlight annotations separately as its creation is not handled by a wrangler, but by the commands.protected void
addTextAwareAnnoButton
(AnnotationProfile profile, List toolbar, String text, String area) com.google.gwt.user.client.ui.Widget
asWidget()
protected ToggleIconFont
protected ToggleIconFont
protected ToggleIconFont
getSubmenuIcon
(String name) initCreateAnnotationCommand
(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommand
for the passed factory and profile.void
onLoaded
(AnnotationProfile profile) Invoked when theAnnotationProfiles.Request
has been loaded
.
-
Constructor Details
-
ListFormattedAnnoToolbar
-
-
Method Details
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()- Specified by:
asWidget
in interfacecom.google.gwt.user.client.ui.IsWidget
-
onLoaded
Description copied from interface:AnnotationProfiles.Handler
Invoked when theAnnotationProfiles.Request
has been loaded
.- Specified by:
onLoaded
in interfaceAnnotationProfiles.Handler
- Parameters:
profile
- the requestedAnnotationProfile
ornull
if the requested profile could not be found.
-
getIcon
-
add
-
addCommandCreatedAnnoButton
We need to add the text highlight annotations separately as its creation is not handled by a wrangler, but by the commands.- Parameters:
profile
- The profile containing the text highlight annotationtoolbar
- The ui element which wraps the creation button after the button's creationname
- The name of the annotation
-
addTextAwareAnnoButton
protected void addTextAwareAnnoButton(AnnotationProfile profile, List toolbar, String text, String area) -
initCreateAnnotationCommand
public CreateAnnotationCommand initCreateAnnotationCommand(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommand
for the passed factory and profile. Overwrite this method to set individual command-behaviour likeCreateAnnotationCommand.CreateMode
.- Parameters:
profile
- the profile defining the annotation types used herefactory
- needed to create annotations- Returns:
- the CreateAnnotationCommand
-
add
-
getIcon
-