verinec.gui.configurator
Class ConfigAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by verinec.gui.configurator.ConfigAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
Configurator.AddBindingAction, Configurator.ChangeSideAction, Configurator.DeconnectAction, Configurator.DeleteAction, Configurator.PCNodeAction, Configurator.PropertiesAction, ImporterModule.ParserAction, ImporterModule.PortscanAction

public abstract class ConfigAction
extends AbstractAction

Base class for actions in the context menue of a network component. Contains a reference to the component it is for.

Author:
david.buchmann at unifr.ch
See Also:
Serialized Form

Field Summary
protected  NwComponent component
          Context component for action to operate on.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ConfigAction(String name, Icon icon, NwComponent c)
          Create a config action attached to the component c.
 
Method Summary
 
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 java.awt.event.ActionListener
actionPerformed
 

Field Detail

component

protected NwComponent component
Context component for action to operate on.

Constructor Detail

ConfigAction

public ConfigAction(String name,
                    Icon icon,
                    NwComponent c)
Create a config action attached to the component c.

Parameters:
name - The action name.
icon - Icon for the action.
c - The context for this action.

Copyright © 2005 Verinec, DIUF