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 voidactionPerformed(ActionEvent e)voidaddPropertyChangeListener(PropertyChangeListener listener)ActiongetDelegate()StringgetPath()ObjectgetValue(String key)booleanisEnabled()voidputValue(String key, Object value)voidremovePropertyChangeListener(PropertyChangeListener listener)voidsetEnabled(boolean b)
-
-
-
Method Detail
-
getDelegate
public Action getDelegate()
-
getPath
public String getPath()
-
setEnabled
public void setEnabled(boolean b)
- Specified by:
setEnabledin interfaceAction
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListenerin interfaceAction
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListenerin interfaceAction
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformedin interfaceActionListener
-
-