verinec.adaptation.gui
Class AdaptationModule.TransAction
java.lang.Object
javax.swing.AbstractAction
verinec.adaptation.gui.AdaptationModule.TransAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses:
- AdaptationModule.DistributeAction, AdaptationModule.ExportAction
- Enclosing class:
- AdaptationModule
abstract class AdaptationModule.TransAction
- extends AbstractAction
Base class for export and distribute actions.
- Author:
- david.buchmann at unifr.ch
|
Field Summary |
protected PCNode |
node
The PC node of this action or null if general action. |
|
Method Summary |
void |
actionPerformed(ActionEvent e)
Execute export action, calling exportConfig for all PCNodes if
node is null, otherwise for that node. |
protected abstract void |
processNode(PCNode n)
Process a node in the action, overwrite to perform the desired action. |
node
protected PCNode node
- The PC node of this action or null if general action.
AdaptationModule.TransAction
public AdaptationModule.TransAction(String name,
Icon icon,
PCNode n)
- Instantiate the action. If the node is null, operates on all nodes.
- Parameters:
name - Display nameicon - Image icon for the actionn - The node this action is bound to or null.
actionPerformed
public void actionPerformed(ActionEvent e)
- Execute export action, calling exportConfig for all PCNodes if
node is null, otherwise for that node.
- Parameters:
e - unused
processNode
protected abstract void processNode(PCNode n)
throws Throwable
- Process a node in the action, overwrite to perform the desired action.
- Parameters:
n - The node to process.
- Throws:
Throwable - Exceptions are not caught.