workspace
Class ContextMenu

java.lang.Object
  extended by java.awt.MenuComponent
      extended by java.awt.MenuItem
          extended by java.awt.Menu
              extended by java.awt.PopupMenu
                  extended by workspace.ContextMenu
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class ContextMenu
extends java.awt.PopupMenu
implements java.awt.event.ActionListener

ContextMenu handles all the right-click menus within the Workspace. TODO ria enable customization of what menu items appear, fire events depending on what items are clicked (if we enabled the first feature) TODO ria still haven't enabled the right click menu for blocks

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.PopupMenu
java.awt.PopupMenu.AccessibleAWTPopupMenu
 
Nested classes/interfaces inherited from class java.awt.Menu
java.awt.Menu.AccessibleAWTMenu
 
Nested classes/interfaces inherited from class java.awt.MenuItem
java.awt.MenuItem.AccessibleAWTMenuItem
 
Nested classes/interfaces inherited from class java.awt.MenuComponent
java.awt.MenuComponent.AccessibleAWTMenuComponent
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent a)
           
static java.awt.PopupMenu getContextMenuFor(java.lang.Object o)
          Returns the right click context menu for the specified JComponent.
 
Methods inherited from class java.awt.PopupMenu
addNotify, getAccessibleContext, getParent, show
 
Methods inherited from class java.awt.Menu
add, add, addSeparator, countItems, getItem, getItemCount, insert, insert, insertSeparator, isTearOff, paramString, remove, remove, removeAll, removeNotify
 
Methods inherited from class java.awt.MenuItem
addActionListener, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcut
 
Methods inherited from class java.awt.MenuComponent
dispatchEvent, getFont, getName, getPeer, getTreeLock, postEvent, setFont, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Method Detail

getContextMenuFor

public static java.awt.PopupMenu getContextMenuFor(java.lang.Object o)
Returns the right click context menu for the specified JComponent. If there is none, returns null.

Parameters:
o - JComponent object seeking context menu
Returns:
the right click context menu for the specified JComponent. If there is none, returns null.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent a)
Specified by:
actionPerformed in interface java.awt.event.ActionListener