Class AnnotationProfileAwareToolbar

java.lang.Object
com.levigo.jadice.web.client.ui.AnnotationProfileAwareToolbar
All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget

public class AnnotationProfileAwareToolbar extends Object implements com.google.gwt.user.client.ui.IsWidget
A toolbar providing annotation creation behaviour.

Shows buttons for creating annotations defined in the annotation profile.

Can be placed vertically or horizontally.

  • Constructor Details

    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar()
      Creates a vertical annotation toolbar from the default jadice webtoolkit profile
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(AbstractBar editorToolbar)
      Creates a vertical annotation toolbar from the default jadice webtoolkit profile
      Parameters:
      editorToolbar - a dynamic toolbar to which the editors are added. If it is null the default popup toolbar will be used
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(String profileName)
      Creates a vertical annotation toolbar from the passed in profile
      Parameters:
      profileName - the profile name as defined in the xml proifle file.
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(String profileName, AbstractBar editorToolbar)
      Creates a vertical annotation toolbar from the passed in profile
      Parameters:
      profileName - the profile name as defined in the xml proifle file.
      editorToolbar - a dynamic toolbar to which the editors are added. If it is null the default popup toolbar will be used
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(String profileName, AnnotationProfileAwareToolbar.Orientation orientation)
      Creates a vertical or horizontal annotation toolbar from the passed in profile
      Parameters:
      profileName - the profile name as defined in the xml profile file.
      orientation - the AnnotationProfileAwareToolbar.Orientation
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(String profileName, AnnotationProfileAwareToolbar.Orientation orientation, AbstractBar editorToolbar)
      Creates a vertical or horizontal annotation toolbar from the passed in profile
      Parameters:
      profileName - the profile name as defined in the xml profile file.
      orientation - the AnnotationProfileAwareToolbar.Orientation
      editorToolbar - a dynamic toolbar to which the editors are added. If it is null the default popup toolbar will be used
    • AnnotationProfileAwareToolbar

      public AnnotationProfileAwareToolbar(String profileName, AnnotationToolbarInitializer annoToolbarInitializer)
      Creates a toolbar for the annotationprofile of the passed profileName using the annoToolbarInitializer.
      Parameters:
      profileName - the profile name as defined in the xml profile file.
      annoToolbarInitializer - the initializor for the toolbar
  • Method Details

    • asWidget

      public com.google.gwt.user.client.ui.Widget asWidget()
      Specified by:
      asWidget in interface com.google.gwt.user.client.ui.IsWidget
    • getSize

      public int getSize()