Package org.esa.snap.rcp.actions.file
Class OpenProductAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.esa.snap.rcp.actions.file.OpenProductAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
public final class OpenProductAction extends AbstractAction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFERENCES_KEY_LAST_PRODUCT_DIR
static String
PREFERENCES_KEY_RECENTLY_OPENED_PRODUCTS
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description OpenProductAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
Boolean
execute()
Executes the action command.String
getFileFormat()
File[]
getFiles()
boolean
getUseAllFileFilter()
void
setFile(File file)
void
setFileFormat(String fileFormat)
void
setFiles(File... files)
void
setUseAllFileFilter(boolean useAllFileFilter)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
PREFERENCES_KEY_RECENTLY_OPENED_PRODUCTS
public static final String PREFERENCES_KEY_RECENTLY_OPENED_PRODUCTS
- See Also:
- Constant Field Values
-
PREFERENCES_KEY_LAST_PRODUCT_DIR
public static final String PREFERENCES_KEY_LAST_PRODUCT_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFiles
public File[] getFiles()
-
setFile
public void setFile(File file)
-
setFiles
public void setFiles(File... files)
-
getFileFormat
public String getFileFormat()
-
setFileFormat
public void setFileFormat(String fileFormat)
-
setUseAllFileFilter
public void setUseAllFileFilter(boolean useAllFileFilter)
-
getUseAllFileFilter
public boolean getUseAllFileFilter()
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
execute
public Boolean execute()
Executes the action command.- Returns:
Boolean.TRUE
on success,Boolean.FALSE
on failure, ornull
on cancellation.
-
-