Class AnnotationPropertyEditor
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.internal.annotation.editor.AnnotationPropertyEditor
- All Implemented Interfaces:
MenuContributor
,Command
- Direct Known Subclasses:
HorizontalAlignmentEditor
,ToggleEditor
,TransparencyEditor
,WidgetBasedAnnotationPropertyEditor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyUndoableEdit
(String presentation, org.jadice.util.base.Memento edit) protected org.jadice.util.base.CompositeMemento
protected void
captureStateThenEdit
(org.jadice.util.base.Memento edit) void
contribute
(ContributionContext context, MenuBuilder menuBuilder) This method is called in order to give the menu contributor a chance to contribute context menu entries via the suppliedMenuBuilder
.protected void
execute()
This method is called in order to execute the command.protected AnnotationTool
protected EffectIcon
getIcon()
protected EffectIcon
getPage()
protected RenderControls
protected Set
<ShapeBasedAnnotation> protected UndoManager
void
init
(Collection<? extends ShapeBasedAnnotation> selectedItems, PropertyProfile<?> profile, Page page, RenderControls renderControls, AnnotationTool annoTool, UndoManager undoManager) protected void
repaint()
Trigger a repaint of the annotation toolbarprotected void
reset()
void
setIconName
(String iconName) Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, canExecute, clearInjections, execute, getKey, isSelected, isSelected, setKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.util.command.Command
getID, isAvailable, isAvailable
-
Constructor Details
-
AnnotationPropertyEditor
public AnnotationPropertyEditor()
-
-
Method Details
-
execute
protected void execute()Description copied from class:InjectedCommand
This method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only ifInjectedCommand.canExecute()
has returnedtrue
.- Specified by:
execute
in classInjectedCommand
-
setIconName
-
getIconName
-
getIcon
-
getIcon
-
getSelectedItems
-
getPage
-
getProfile
-
getRenderControls
-
repaint
protected void repaint()Trigger a repaint of the annotation toolbar -
getUndoManager
-
captureMemento
protected org.jadice.util.base.CompositeMemento captureMemento() -
applyUndoableEdit
-
captureStateThenEdit
protected void captureStateThenEdit(org.jadice.util.base.Memento edit) -
reset
protected void reset() -
getAnnoTool