Package com.levigo.jadice.web.client.ui
Interface AnnotationToolbarInitializer
- All Superinterfaces:
AnnotationProfiles.Handler
- All Known Implementing Classes:
AbstractAnnotationToolbarInitializer
,DefaultAnnotationToolbarInitializer
,IconFontAnnotationToolbarInitializer
An implementation of
AnnotationToolbarInitializer
can be used to create a toolbar for an
AnnotationProfile
. To do this you have to add it as a AnnotationProfiles.Handler
to the
AnnotationProfile
.
Instantiate an AnnotationProfileAwareToolbar
with your own implementation to achieve
special behaviour. The default implementation is DefaultAnnotationToolbarInitializer
. The
easiest way to change CreateAnnotationCommand
behaviour is, to extend the default
implementation and overwrite its initCreateAnnotationCommand(AnnotationProfile, AnnotationFactory)
-method.
An example can be found in the showcase .
-
Method Summary
Modifier and TypeMethodDescriptionReturns the host component for the annotation editor.initCreateAnnotationCommand
(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommand
for the passed factory and profile.Methods inherited from interface com.levigo.jadice.web.client.annotation.AnnotationProfiles.Handler
onLoaded
-
Method Details
-
initCreateAnnotationCommand
CreateAnnotationCommand initCreateAnnotationCommand(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommand
for the passed factory and profile.- Parameters:
profile
- The given annotation profile.factory
- The given annotation factory.- Returns:
- The preconfigured
CreateAnnotationCommand
.
-
getEditorHost
AbstractBar getEditorHost()Returns the host component for the annotation editor.- Returns:
- The host component.
-