public final class SelectConvertedFileCmd extends SelectConvertedFile
extension, lastPreviewChoice, PREVIEWED_URL_PROP, previewToggle
dirMode, lastOpenDirectory, lastOpenDirectoryURL, lastOpenFile, lastOpenFileURL, lastSaveDirectory, lastSaveDirectoryURL, lastSaveFile, lastSaveFileURL, lastSelectedURLs, saveMode, template, title, urlMode
recordable, repeatable
Constructor and Description |
---|
SelectConvertedFileCmd() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
parseOption(DocumentView docView,
String option) |
boolean |
prepare(DocumentView docView,
String parameter,
int x,
int y)
Tests whether this command can be executed with specified parameter
and in specified context.
|
protected URL |
selectURL(DocumentView docView,
String title,
boolean dirMode,
boolean saveMode,
URL dir,
String name,
URL[] lastSelectedURLs) |
protected void |
setURLChooserAccessory(DocumentView docView,
URLChooserDialog urlChooser) |
checkWriteLock, createLastSelectedURLs, createMangledInfo, createPreviewToggle, doExecute, getDefaultTemplate, getPreviewedURL, parseAction, setDefaultTemplate, setPreviewedURL, setURLChooserAccessory2
addLastSelectedURL, getLastSelectedURLs, parseParameter
doExecuteByName, execute, executeCommand, isRecordable, isRepeatable, prepareCommand
public boolean prepare(DocumentView docView, String parameter, int x, int y)
CommandBase
If the command can be executed, this method returns
true
after having configured its internal state for
consumption by method CommandBase.execute(com.xmlmind.xmledit.view.DocumentView, java.lang.String, int, int)
which should be invoked
immediately after this one.
Returns false
if this command cannot be executed with
specified parameter and in specified context.
prepare
in class SelectConvertedFile
docView
- the target of this commandparameter
- parameterizes the command (that is, modifies the
behavior of the command in a command specific way)x
- X position relative to docView of the mouse event
having triggered this command; -1 if this command was triggered by a
keyboard inputy
- Y position relative to docView of the mouse event
having triggered this command; -1 if this command was triggered by a
keyboard inputprotected boolean parseOption(DocumentView docView, String option)
parseOption
in class SelectFile
protected URL selectURL(DocumentView docView, String title, boolean dirMode, boolean saveMode, URL dir, String name, URL[] lastSelectedURLs)
selectURL
in class SelectConvertedFile
protected void setURLChooserAccessory(DocumentView docView, URLChooserDialog urlChooser)
setURLChooserAccessory
in class SelectConvertedFile