Package com.levigo.jadice.web.client.ui
Class AbstractAnnotationToolbarInitializer<T extends StateIcon>
java.lang.Object
com.levigo.jadice.web.client.ui.AbstractAnnotationToolbarInitializer<T>
- All Implemented Interfaces:
AnnotationProfiles.Handler,AnnotationToolbarInitializer
- Direct Known Subclasses:
DefaultAnnotationToolbarInitializer,IconFontAnnotationToolbarInitializer
public abstract class AbstractAnnotationToolbarInitializer<T extends StateIcon>
extends Object
implements AnnotationToolbarInitializer
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnnotationToolbarInitializer(AnnotationProfileAwareToolbar.Orientation orientation, AbstractBar dynamicToolbar) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(AnnotationProfile profile, Bar toolbar, TypeRef typeRef) protected voidadd(AnnotationProfile profile, Bar toolbar, TypeSetElement t) protected abstract JadiceSubmenuButtoncreateSubmenuButtonWithIcon(T icon) Returns the host component for the annotation editor.protected Tprotected abstract Tprotected abstract TgetSubmenuIcon(String name) initCreateAnnotationCommand(AnnotationProfile profile, AnnotationFactory factory) Returns aCreateAnnotationCommandfor the passed factory and profile.voidonLoaded(AnnotationProfile result) Invoked when theAnnotationProfiles.Requesthas been loaded.
-
Constructor Details
-
AbstractAnnotationToolbarInitializer
public AbstractAnnotationToolbarInitializer(AnnotationProfileAwareToolbar.Orientation orientation, AbstractBar dynamicToolbar)
-
-
Method Details
-
onLoaded
Description copied from interface:AnnotationProfiles.HandlerInvoked when theAnnotationProfiles.Requesthas been loaded.- Specified by:
onLoadedin interfaceAnnotationProfiles.Handler- Parameters:
result- the requestedAnnotationProfileornullif the requested profile could not be found.
-
getIcon
-
add
-
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.- Specified by:
initCreateAnnotationCommandin interfaceAnnotationToolbarInitializer- Parameters:
profile-factory-- Returns:
- the CreateAnnotationCommand
-
getEditorHost
Description copied from interface:AnnotationToolbarInitializerReturns the host component for the annotation editor.- Specified by:
getEditorHostin interfaceAnnotationToolbarInitializer- Returns:
- The host component.
-
add
-
getIcon
-