Package com.levigo.jadice.web.client.ui
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a vertical annotation toolbar from the default jadice webtoolkit profileAnnotationProfileAwareToolbar
(AbstractBar editorToolbar) Creates a vertical annotation toolbar from the default jadice webtoolkit profileAnnotationProfileAwareToolbar
(String profileName) Creates a vertical annotation toolbar from the passed in profileAnnotationProfileAwareToolbar
(String profileName, AbstractBar editorToolbar) Creates a vertical annotation toolbar from the passed in profileAnnotationProfileAwareToolbar
(String profileName, AnnotationProfileAwareToolbar.Orientation orientation) Creates a vertical or horizontal annotation toolbar from the passed in profileAnnotationProfileAwareToolbar
(String profileName, AnnotationProfileAwareToolbar.Orientation orientation, AbstractBar editorToolbar) Creates a vertical or horizontal annotation toolbar from the passed in profileAnnotationProfileAwareToolbar
(String profileName, AnnotationToolbarInitializer annoToolbarInitializer) Creates a toolbar for the annotationprofile of the passed profileName using the annoToolbarInitializer. -
Method Summary
-
Constructor Details
-
AnnotationProfileAwareToolbar
public AnnotationProfileAwareToolbar()Creates a vertical annotation toolbar from the default jadice webtoolkit profile -
AnnotationProfileAwareToolbar
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
Creates a vertical annotation toolbar from the passed in profile- Parameters:
profileName
- the profile name as defined in the xml proifle file.
-
AnnotationProfileAwareToolbar
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
- theAnnotationProfileAwareToolbar.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
- theAnnotationProfileAwareToolbar.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 interfacecom.google.gwt.user.client.ui.IsWidget
-
getSize
public int getSize()
-