Class ExportCommand
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.AbstractServerOperationCommand
com.levigo.jadice.web.demo.common.client.export.ExportCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
DownloadExportCommand
,PrintExportCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
AbstractDocumentCommand.Scope
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DownloadPurpose
protected final NotificationEventBus
protected ExportType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks if this command can be executed.protected void
execute()
This method is called in order to execute the command.getID()
The ID of the command.void
setDownloadPurpose
(DownloadPurpose downloadPurpose) void
setType
(ExportType type) void
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractServerOperationCommand
getDocument, invoke, invoke
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
getRenderControls, getScope, setScope
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractMouseCommand
clearInjections, isDoubleClicked, setMouseEvent
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageView
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContext
Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, 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
isAvailable, isAvailable
-
Field Details
-
eventBus
-
type
-
downloadPurpose
-
-
Constructor Details
-
ExportCommand
public ExportCommand()
-
-
Method Details
-
setType
-
canExecute
protected boolean canExecute()Description copied from class:AbstractDocumentCommand
Checks if this command can be executed.- Overrides:
canExecute
in classAbstractServerOperationCommand
- Returns:
- true, if
InjectedCommand.execute(java.util.Collection<java.lang.Object>)
can be called, false else
-
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
-
getID
Description copied from interface:Command
The ID of the command. This is typically the command class name. If the Command is parameterized the ID should comprise the class name + parameter information.- Specified by:
getID
in interfaceCommand
- Overrides:
getID
in classAbstractDocumentCommand
- Returns:
- the ID of the command
-