Package org.esa.snap.rcp.scripting
Class TransientAction
- java.lang.Object
-
- org.esa.snap.rcp.scripting.TransientAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,EventListener
,Action
public class TransientAction extends Object implements Action, Serializable
A proxy action which can be used to programmatically register delegate actions which will *not* be serialized into the NetBeans filesystem. The proxy protects the delegate action from being serialized/deserialized by the NetBeans Platform by putting the delegate into a static hash table. On serialisation request only the file system path is serialized and used to look up the delegate action later on deserialisation request.- See Also:
- Serialized Form
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
void
addPropertyChangeListener(PropertyChangeListener listener)
Action
getDelegate()
String
getPath()
Object
getValue(String key)
boolean
isEnabled()
void
putValue(String key, Object value)
void
removePropertyChangeListener(PropertyChangeListener listener)
void
setEnabled(boolean b)
-
-
-
Method Detail
-
getDelegate
public Action getDelegate()
-
getPath
public String getPath()
-
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabled
in interfaceAction
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfaceAction
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfaceAction
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
-