Package org.esa.snap.rcp.actions.file
Class CloseProductAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.esa.snap.rcp.actions.file.CloseProductAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,org.openide.util.ContextAwareAction
,org.openide.util.LookupListener
public final class CloseProductAction extends AbstractAction implements org.openide.util.ContextAwareAction, org.openide.util.LookupListener
Action which closes a selected 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 CloseProductAction()
CloseProductAction(List<Product> products)
CloseProductAction(org.openide.util.Lookup actionContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
static Boolean
closeProducts(Set<Product> products)
Action
createContextAwareInstance(org.openide.util.Lookup actionContext)
Boolean
execute()
Executes the action command.void
resultChanged(org.openide.util.LookupEvent lookupEvent)
-
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
-
createContextAwareInstance
public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
- Specified by:
createContextAwareInstance
in interfaceorg.openide.util.ContextAwareAction
-
resultChanged
public void resultChanged(org.openide.util.LookupEvent lookupEvent)
- Specified by:
resultChanged
in interfaceorg.openide.util.LookupListener
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
execute
public Boolean execute()
Executes the action command.- Returns:
Boolean.TRUE
on success,Boolean.FALSE
on failure, ornull
on cancellation.
-
-