org.globus.cog.gui.grapheditor.util.swing
Class ComponentAction

java.lang.Object
  extended byorg.globus.cog.gui.grapheditor.util.swing.ComponentAction
All Implemented Interfaces:
ActionListener, EventListener

public class ComponentAction
extends Object
implements ActionListener


Constructor Summary
ComponentAction(String name)
           
ComponentAction(String name, Icon icon)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addActionListener(ActionListener l)
           
 Component createComponent()
           
 String getName()
           
 void removeActionListener(ActionListener l)
           
 void setName(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentAction

public ComponentAction(String name,
                       Icon icon)

ComponentAction

public ComponentAction(String name)
Method Detail

addActionListener

public void addActionListener(ActionListener l)

removeActionListener

public void removeActionListener(ActionListener l)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

createComponent

public Component createComponent()

getName

public String getName()

setName

public void setName(String string)