Class SaveAnnotationsServerOperationCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
com.levigo.jadice.web.client.commands.AbstractPageViewCommand
com.levigo.jadice.web.client.commands.AbstractMouseCommand
com.levigo.jadice.web.client.commands.AbstractDocumentCommand
com.levigo.jadice.web.client.commands.AbstractMessagingCapableDocumentCommand
com.levigo.jadice.web.demo.common.client.annotation.SaveAnnotationsServerOperationCommand
- All Implemented Interfaces:
Command
A client side command that propagates annotation changes to the server and lets the server handle
these changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classA simple popup panel to show a text area with a title lable.Nested classes/interfaces inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
AbstractDocumentCommand.Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if this command can be executed.protected voidexecute()Start a new ServerOperation with initial state.booleanvoidsetAnnoFileName(String fileName) voidsetAnnoFormat(AnnotationFormat annotationFormat) voidvoidsetShowPopup(boolean showPopup) protected voidshowResultPopup(String result, com.levigo.jadice.web.shared.model.internal.SelectedArea area, PageView pageView) Methods inherited from class com.levigo.jadice.web.client.commands.AbstractMessagingCapableDocumentCommand
getDocument, getTransferableDocumentMethods inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
getID, getRenderControls, getScope, setScopeMethods inherited from class com.levigo.jadice.web.client.commands.AbstractMouseCommand
clearInjections, isDoubleClicked, setMouseEventMethods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageViewMethods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContextMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, 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
isAvailable, isAvailable
-
Constructor Details
-
SaveAnnotationsServerOperationCommand
public SaveAnnotationsServerOperationCommand()
-
-
Method Details
-
setLoadedHandler
-
setAnnoFileName
-
execute
protected void execute()Start a new ServerOperation with initial state.The answers from the server will be processed by the supplied observer.
- Specified by:
executein classInjectedCommand
-
canExecute
protected boolean canExecute()Description copied from class:AbstractDocumentCommandChecks if this command can be executed.- Overrides:
canExecutein classAbstractDocumentCommand- Returns:
- true, if
InjectedCommand.execute(java.util.Collection<java.lang.Object>)can be called, false else
-
isShowPopup
public boolean isShowPopup() -
setShowPopup
public void setShowPopup(boolean showPopup)
-