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 voidapplyUndoableEdit(String presentation, org.jadice.util.base.Memento edit) protected org.jadice.util.base.CompositeMementoprotected voidcaptureStateThenEdit(org.jadice.util.base.Memento edit) voidcontribute(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 voidexecute()This method is called in order to execute the command.protected AnnotationToolprotected EffectIcongetIcon()protected EffectIcongetPage()protected RenderControlsprotected Set<ShapeBasedAnnotation> protected UndoManagervoidinit(Collection<? extends ShapeBasedAnnotation> selectedItems, PropertyProfile<?> profile, Page page, RenderControls renderControls, AnnotationTool annoTool, UndoManager undoManager) protected voidrepaint()Trigger a repaint of the annotation toolbarprotected voidreset()voidsetIconName(String iconName) Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, canExecute, clearInjections, execute, getKey, isSelected, isSelected, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:InjectedCommandThis 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:
executein 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