Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.menu.spi
Class MenuModel  view MenuModel download MenuModel.java

java.lang.Object
  extended byjavax.ide.menu.spi.MenuModel

public final class MenuModel
extends java.lang.Object

The menu model retrieved from extension manifests.


Field Summary
private  java.util.Map _actionControllers
           
private  java.util.Map _actions
           
private  java.util.Map _popupMenus
           
private  java.util.Map _pullDownMenus
           
private  java.util.Map _toolbars
           
 
Constructor Summary
MenuModel()
           
 
Method Summary
(package private)  void addAction(javax.ide.menu.IDEAction action)
           
(package private)  void addController(java.lang.String actionId, javax.ide.command.Controller controller)
           
(package private)  PopupMenu findOrCreatePopupMenu(java.lang.String id)
           
(package private)  MenuBar findOrCreatePullDownMenu(java.lang.String id)
           
(package private)  Toolbar findOrCreateToolbar(java.lang.String id)
           
 java.util.Map getActions()
          Get all actions in the model.
 java.util.Set getActionsWithControllers()
          Get a set of ids of all actions that have registered controllers.
 java.util.List getControllers(java.lang.String actionId)
          Get all declaratively registered controllers for the specified action id.
 java.util.Map getMenuBars()
          Get all menu bars in the model
 java.util.Map getPopupMenus()
          Get all pull down menus in the model.
 java.util.Map getToolbars()
          Get all toolbars in the model.
(package private)  boolean isUniqueActionId(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_actions

private final java.util.Map _actions

_pullDownMenus

private final java.util.Map _pullDownMenus

_popupMenus

private final java.util.Map _popupMenus

_toolbars

private final java.util.Map _toolbars

_actionControllers

private final java.util.Map _actionControllers
Constructor Detail

MenuModel

public MenuModel()
Method Detail

addAction

void addAction(javax.ide.menu.IDEAction action)

isUniqueActionId

boolean isUniqueActionId(java.lang.String id)

findOrCreateToolbar

Toolbar findOrCreateToolbar(java.lang.String id)

findOrCreatePullDownMenu

MenuBar findOrCreatePullDownMenu(java.lang.String id)

findOrCreatePopupMenu

PopupMenu findOrCreatePopupMenu(java.lang.String id)

getActionsWithControllers

public java.util.Set getActionsWithControllers()
Get a set of ids of all actions that have registered controllers. The action ids in this collection may be a superset of the set of all registered action ids.


getControllers

public java.util.List getControllers(java.lang.String actionId)
Get all declaratively registered controllers for the specified action id.


addController

void addController(java.lang.String actionId,
                   javax.ide.command.Controller controller)

getActions

public java.util.Map getActions()
Get all actions in the model.


getMenuBars

public java.util.Map getMenuBars()
Get all menu bars in the model


getPopupMenus

public java.util.Map getPopupMenus()
Get all pull down menus in the model.


getToolbars

public java.util.Map getToolbars()
Get all toolbars in the model.