de.steeringbehaviors.creator.editor
Class SteeringMenuManager

java.lang.Object
  extended by de.steeringbehaviors.creator.editor.SteeringMenuManager

public class SteeringMenuManager
extends java.lang.Object

This class creates all menu entries and manages the status of the buttons. It creates context menues for each type of node which is selected


Constructor Summary
SteeringMenuManager(java.lang.Object listener)
          Constructor
 
Method Summary
 javax.swing.JMenuBar getMainMenu()
          Returns the main menu
 javax.swing.JToolBar getToolbar()
          Returns the toolbar
 javax.swing.JPopupMenu getTreeContextMenu(java.lang.String type)
          Returns a context menu, depending on the node type
 void updateToolbarButtons(java.lang.String type)
          Enables and disables the buttons depending on the selected type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SteeringMenuManager

public SteeringMenuManager(java.lang.Object listener)
Constructor

Parameters:
listener - The ActionListener to use
Method Detail

getMainMenu

public javax.swing.JMenuBar getMainMenu()
Returns the main menu

Returns:
Main menu

getToolbar

public javax.swing.JToolBar getToolbar()
Returns the toolbar

Returns:
Toolbar

getTreeContextMenu

public javax.swing.JPopupMenu getTreeContextMenu(java.lang.String type)
Returns a context menu, depending on the node type

Parameters:
type - Type of the context menu
Returns:
Context menu

updateToolbarButtons

public void updateToolbarButtons(java.lang.String type)
Enables and disables the buttons depending on the selected type

Parameters:
type - The type of the menu