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 voidadd(AnnotationProfile profile, List toolbar, TypeRef typeRef) protected voidadd(AnnotationProfile profile, List content, TypeSetElement t) protected voidaddCommandCreatedAnnoButton(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 voidaddTextAwareAnnoButton(AnnotationProfile profile, List toolbar, String text, String area) com.google.gwt.user.client.ui.WidgetasWidget()protected ToggleIconFontprotected ToggleIconFontprotected ToggleIconFontgetSubmenuIcon(String name) initCreateAnnotationCommand(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommandfor the passed factory and profile.voidonLoaded(AnnotationProfile profile) Invoked when theAnnotationProfiles.Requesthas been loaded.
-
Constructor Details
-
ListFormattedAnnoToolbar
-
-
Method Details
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
onLoaded
Description copied from interface:AnnotationProfiles.HandlerInvoked when theAnnotationProfiles.Requesthas been loaded.- Specified by:
onLoadedin interfaceAnnotationProfiles.Handler- Parameters:
profile- the requestedAnnotationProfileornullif 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 aCreateAnnotationCommandfor 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
-