com.swfm.mica.parts
Class MiConnectMenu

java.lang.Object
  extended bycom.swfm.mica.parts.MiEditorMenu
      extended bycom.swfm.mica.parts.MiConnectMenu
All Implemented Interfaces:
MiiCommandNames, MiiContextMenu, MiiDisplayNames, MiiGeneralCommandWidgetSpecificationProperties, MiiMessages

public class MiConnectMenu
extends MiEditorMenu
implements MiiCommandNames, MiiMessages

This class makes a 'connect' menu that is suitable for adding to a MiEditorMenuBar. Each menu item has status bar and balloon help and most have accelerators and mnemonics.

When a menu item is selected by the user one of the following commands are generated:

    Mi_CONNECT_COMMAND_NAME
    Mi_DISCONNECT_COMMAND_NAME
    Mi_COLLAPSE_COMMAND_NAME
    Mi_EXPAND_COMMAND_NAME
 

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
         
Constructor Summary
MiConnectMenu(MiiCommandHandler handler, MiiCommandManager manager)
          Constructs a new MiConnectMenu which will send commands generated by the menu to the given command handler.
MiConnectMenu(MiiCommandManager manager)
          Constructs a new MiConnectMenu, forwarding commands generated by this menu to an instance of MiConnectMenuCommands.
 
Methods inherited from class com.swfm.mica.parts.MiEditorMenu
appendBooleanMenuItem, appendBooleanMenuItem, appendCommandHandler, appendMenuItem, appendMenuItem, appendMenuItem, appendMenuItemCommand, appendSeparator, buildBooleanMenuItem, endRadioButtonSection, getCommandHandler, getCommandManager, getEditor, getIndexOfMenuItem, getMenu, getMenuContents, getMenuGraphics, getMenuItemWithCommand, getMenuItemWithLabel, getRadioStateEnforcer, getToSelectAttributedShape, insertBooleanMenuItem, insertMenuItem, insertMenuItem, insertSeparator, makeItem, popdown, popup, removeAllAdjacentSeparators, removeAllMenuItems, removeAllMenuItemsWithCommandsExcept, removeCommandHandlers, removeMenuItemWithCommand, setCommandHandler, setEditor, setHelpMessages, setMenuItemLabel, setName, setToSelectAttributedShape, startRadioButtonSection, startRadioButtonSection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiConnectMenu

public MiConnectMenu(MiiCommandManager manager)
Constructs a new MiConnectMenu, forwarding commands generated by this menu to an instance of MiConnectMenuCommands.

See Also:
MiConnectMenuCommands

MiConnectMenu

public MiConnectMenu(MiiCommandHandler handler,
                     MiiCommandManager manager)
Constructs a new MiConnectMenu which will send commands generated by the menu to the given command handler.

Parameters:
handler - the command handler
See Also:
MiConnectMenuCommands