public class UnstashMergeCommand extends AbstractDocumentCommand
FilePageStashReader
with a default stash directory and the default serialized
marshalling. When executed, this command will open a dialog with a list of stashes from which the
user may select one or more stashes. Those stashes will subsequently be added to the current
document.
Expected Context
elements:
PageView
(mandatory)
TableFormat
with a type of PageStash
. This
table format is responsible for the conversion of PageStash instances into table cells for the
presentation in the stash list. Default: SimpleStashTableFormat
.
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
UnstashMergeCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeImportDocument(Document document) |
protected void |
execute()
This method is called in order to execute the command.
|
String |
getFormatClassName() |
PageStashReader |
getStashReader()
Return the
PageStashReader to be used to read stashes. |
boolean |
isAvailable()
Returns an indicator whether the command is available and therefore integrable.
|
void |
setFormatClassName(String formatClassName) |
void |
setStashReader(PageStashReader stashReader)
Set the
PageStashReader to be used to read stashes. |
canExecute, getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isSelected, isSelected, setKey
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected void beforeImportDocument(Document document)
public void setFormatClassName(String formatClassName)
public String getFormatClassName()
public boolean isAvailable()
Command
isAvailable
in interface Command
isAvailable
in class InjectedCommand
true
- available false
- not availableCommand.isAvailable()
public PageStashReader getStashReader()
PageStashReader
to be used to read stashes. By default this class uses a
FilePageStashReader
in default configuration.public void setStashReader(PageStashReader stashReader)
PageStashReader
to be used to read stashes.Copyright © 2024 levigo holding gmbh. All rights reserved.