Package org.esa.snap.rcp.actions.file
Class ExportProductAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.esa.snap.rcp.actions.file.ExportProductAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,org.openide.util.ContextAwareAction
,org.openide.util.HelpCtx.Provider
public class ExportProductAction extends AbstractAction implements org.openide.util.HelpCtx.Provider, org.openide.util.ContextAwareAction
Action for exporting a product.- See Also:
- Serialized Form
-
-
Field Summary
-
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 ExportProductAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
static ExportProductAction
create(Map<String,Object> configuration)
Action factory method used in NetBeanslayer.xml
file, e.g.Action
createContextAwareInstance(org.openide.util.Lookup actionContext)
Boolean
execute()
String
getDisplayName()
org.openide.util.HelpCtx
getHelpCtx()
void
setFormatName(String formatName)
void
setHelpCtx(String helpId)
void
setProduct(Product p)
void
setUseAllFileFilter(Boolean useAllFileFilter)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
create
public static ExportProductAction create(Map<String,Object> configuration)
Action factory method used in NetBeanslayer.xml
file, e.g.<file name="org-esa-snap-csv-dataio-ExportCSVProduct.instance"> <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.context"/> <attr name="type" stringvalue="ProductNode"/> <attr name="delegate" methodvalue="ExportProductAction.create"/> <attr name="selectionType" stringvalue="EXACTLY_ONE"/> <attr name="displayName" stringvalue="CSV Product"/> <attr name="formatName" stringvalue="CSV"/> <attr name="useAllFileFilter" boolvalue="true"/> <attr name="helpId" stringvalue="exportCsvProduct"/> <attr name="ShortDescription" stringvalue="Writes a product in CSV format."/> </file>
- Parameters:
configuration
- Configuration attributes from layer.xml.- Returns:
- The action.
- Since:
- SNAP 2
-
createContextAwareInstance
public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
- Specified by:
createContextAwareInstance
in interfaceorg.openide.util.ContextAwareAction
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
- Specified by:
getHelpCtx
in interfaceorg.openide.util.HelpCtx.Provider
-
setHelpCtx
public void setHelpCtx(String helpId)
-
getDisplayName
public String getDisplayName()
-
setFormatName
public void setFormatName(String formatName)
-
setUseAllFileFilter
public void setUseAllFileFilter(Boolean useAllFileFilter)
-
setProduct
public void setProduct(Product p)
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
execute
public Boolean execute()
- Returns:
Boolean.TRUE
on success,Boolean.FALSE
on failure, ornull
on cancellation.
-
-