public abstract class DiskAccessAction extends JosmAction
scchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
DiskAccessAction(String name,
String iconName,
String tooltip,
Shortcut shortcut)
Constructs a new
DiskAccessAction. |
DiskAccessAction(String name,
String iconName,
String tooltip,
Shortcut shortcut,
boolean register,
String toolbarId,
boolean installAdapters)
Constructs a new
DiskAccessAction. |
| Modifier and Type | Method and Description |
|---|---|
static JFileChooser |
createAndOpenFileChooser(boolean open,
boolean multiple,
String title)
Creates a new
JFileChooser and makes it visible. |
static JFileChooser |
createAndOpenFileChooser(boolean open,
boolean multiple,
String title,
Collection<? extends FileFilter> filters,
FileFilter defaultFilter,
int selectionMode,
String lastDirProperty)
Creates a new
JFileChooser for several FileFilters and makes it visible. |
static JFileChooser |
createAndOpenFileChooser(boolean open,
boolean multiple,
String title,
FileFilter filter,
int selectionMode,
String lastDirProperty)
Creates a new
JFileChooser for a single FileFilter and makes it visible. |
static JFileChooser |
createAndOpenFileChooser(boolean open,
boolean multiple,
String title,
String extension)
Creates a new
JFileChooser and makes it visible. |
static JFileChooser |
createAndOpenFileChooser(boolean open,
boolean multiple,
String title,
String extension,
int selectionMode,
boolean allTypes,
String lastDirProperty)
Creates a new
JFileChooser and makes it visible. |
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedpublic DiskAccessAction(String name, String iconName, String tooltip, Shortcut shortcut)
DiskAccessAction.name - The action's text as displayed on the menu (if it is added to a menu)iconName - The filename of the icon to usetooltip - A longer description of the action that will be displayed in the tooltipshortcut - A ready-created shortcut object or null if you don't want a shortcutpublic DiskAccessAction(String name, String iconName, String tooltip, Shortcut shortcut, boolean register, String toolbarId, boolean installAdapters)
DiskAccessAction.name - The action's text as displayed on the menu (if it is added to a menu)iconName - The filename of the icon to usetooltip - A longer description of the action that will be displayed in the tooltipshortcut - A ready-created shortcut object or null if you don't want a shortcutregister - Register this action for the toolbar preferences?toolbarId - Identifier for the toolbar preferences. The iconName is used, if this parameter is nullinstallAdapters - False, if you don't want to install layer changed and selection changed adapterspublic static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title)
JFileChooser and makes it visible.open - If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialogmultiple - If true, makes the dialog allow multiple file selectionstitle - The string that goes in the dialog window's title barJFileChooser.public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title, String extension)
JFileChooser and makes it visible.open - If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialogmultiple - If true, makes the dialog allow multiple file selectionstitle - The string that goes in the dialog window's title barextension - The file extension that will be selected as the default file filterJFileChooser.public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title, String extension, int selectionMode, boolean allTypes, String lastDirProperty)
JFileChooser and makes it visible.open - If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialogmultiple - If true, makes the dialog allow multiple file selectionstitle - The string that goes in the dialog window's title barextension - The file extension that will be selected as the default file filterselectionMode - The selection mode that allows the user to:JFileChooser.FILES_ONLY)JFileChooser.DIRECTORIES_ONLY)JFileChooser.FILES_AND_DIRECTORIES)allTypes - If true, all the files types known by JOSM will be proposed in the "file type" combobox.
If false, only the file filters that include extension will be proposedlastDirProperty - The name of the property used to setup the JFileChooser initial directory.
This property will then be updated to the new "last directory" chosen by the user. If null, the default property "lastDirectory" will be used.JFileChooser.public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title, FileFilter filter, int selectionMode, String lastDirProperty)
JFileChooser for a single FileFilter and makes it visible.open - If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialogmultiple - If true, makes the dialog allow multiple file selectionstitle - The string that goes in the dialog window's title barfilter - The only file filter that will be proposed by the dialogselectionMode - The selection mode that allows the user to:JFileChooser.FILES_ONLY)JFileChooser.DIRECTORIES_ONLY)JFileChooser.FILES_AND_DIRECTORIES)lastDirProperty - The name of the property used to setup the JFileChooser initial directory. This property will then be updated to the new "last directory" chosen by the userJFileChooser.public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title, Collection<? extends FileFilter> filters, FileFilter defaultFilter, int selectionMode, String lastDirProperty)
JFileChooser for several FileFilters and makes it visible.open - If true, pops up an "Open File" dialog. If false, pops up a "Save File" dialogmultiple - If true, makes the dialog allow multiple file selectionstitle - The string that goes in the dialog window's title barfilters - The file filters that will be proposed by the dialogdefaultFilter - The file filter that will be selected by defaultselectionMode - The selection mode that allows the user to:JFileChooser.FILES_ONLY)JFileChooser.DIRECTORIES_ONLY)JFileChooser.FILES_AND_DIRECTORIES)lastDirProperty - The name of the property used to setup the JFileChooser initial directory. This property will then be updated to the new "last directory" chosen by the userJFileChooser.