public class ExportProductAction extends AbstractAction implements org.openide.util.HelpCtx.Provider, org.openide.util.ContextAwareAction
changeSupport, enabled
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 and Description |
---|
ExportProductAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
static ExportProductAction |
create(Map<String,Object> configuration)
Action factory method used in NetBeans
layer.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) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static ExportProductAction create(Map<String,Object> configuration)
layer.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>
configuration
- Configuration attributes from layer.xml.public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
createContextAwareInstance
in interface org.openide.util.ContextAwareAction
public org.openide.util.HelpCtx getHelpCtx()
getHelpCtx
in interface org.openide.util.HelpCtx.Provider
public void setHelpCtx(String helpId)
public String getDisplayName()
public void setFormatName(String formatName)
public void setUseAllFileFilter(Boolean useAllFileFilter)
public void setProduct(Product p)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public Boolean execute()
Boolean.TRUE
on success, Boolean.FALSE
on failure, or null
on cancellation.Copyright © 2014–2019 European Space Agency (ESA). All rights reserved.