org.globus.cog.gui.grapheditor.targets.swing
Interface SwingComponentRenderer

All Superinterfaces:
ComponentRenderer
All Known Implementing Classes:
AbstractSwingRenderer

public interface SwingComponentRenderer
extends ComponentRenderer


Method Summary
 void addAction(ComponentAction a)
          Adds an action to this component.
 ComponentAction getAction(String name)
          Returns an action with the name specified by the name parameter
 List getActions()
          Returns a list of actions that were added to this component.
 Component getVisualComponent()
           
 void removeAction(ComponentAction action)
          Removes an action
 void setVisualComponent(Component component)
           
 
Methods inherited from interface org.globus.cog.gui.grapheditor.ComponentRenderer
dispose, getComponent, setComponent
 

Method Detail

getVisualComponent

public Component getVisualComponent()

setVisualComponent

public void setVisualComponent(Component component)

addAction

public void addAction(ComponentAction a)
Adds an action to this component. An action represents something that can be performed on this component. In the swing target actions are rendered in a pop-up menu.


getActions

public List getActions()
Returns a list of actions that were added to this component.


getAction

public ComponentAction getAction(String name)
Returns an action with the name specified by the name parameter


removeAction

public void removeAction(ComponentAction action)
Removes an action