| java.lang.Object org.netbeans.actions.spi.ContainerProvider
All known Subclasses: org.netbeans.actions.simple.SimpleContainerProvider, org.netbeans.actions.spi.ProxyContainerProvider,
ContainerProvider | abstract public class ContainerProvider (Code) | | Provides the names of available action containers in the system, such
as toolbars and menus. Uses a predefined context name for the context
menu context, of which there is only ever one.
author: Tim Boudreau |
CONTEXTMENU_CONTEXT | final public static String CONTEXTMENU_CONTEXT(Code) | | |
ContainerProvider | protected ContainerProvider()(Code) | | |
getContainerState | abstract public int getContainerState(Object containerType, String containerCtx, Map context)(Code) | | Get the enablement/visibility of the named container context.
Parameters: containerType - The type of container - either TYPE_MENU or TYPE_TOOLBAR,or some other object that the implementation and caller agree is a validcontext type. Parameters: containerCtx - The programmatic, unique name of the container. Parameters: context - The user context (selected object, active window, etc.,as agreed upon between the implementation and application). |
getContextMenuContainerContext | final public String getContextMenuContainerContext()(Code) | | returns the predefined name for the context menu container context
|
getMenuContainerContexts | abstract public String[] getMenuContainerContexts()(Code) | | Return the names of all the menu container contexts in the system.
|
getToolbarContainerContexts | abstract public String[] getToolbarContainerContexts()(Code) | | Return the names of all the menu container contexts in the system.
|
isDynamicContext | public boolean isDynamicContext(Object containerType, String containerCtx)(Code) | | Determine if the contents of the context can change over the life of
the application. Return true only if items which are
truly unknown at startup will be added. If there's a known set of items,
but some appear and disappear, simply return that the hidden items are
invisible from your ActionProvider's getState method
|
|
|