| java.lang.Object org.netbeans.actions.spi.ActionProvider org.netbeans.actions.spi.ProxyActionProvider
ProxyActionProvider | abstract public class ProxyActionProvider extends ActionProvider (Code) | | ActionProvider impl which can proxy other action providers, such as
a legacy wrapper and some other implementation.
author: Tim Boudreau |
Method Summary | |
final protected ActionProvider | findProviderOf(String containerCtx, String action) Given a container context and an action, reverse-lookup which action
provider we are proxying is responsible for it. | final public String[] | getActionNames(String containerCtx) | final public int | getActionType(String actionName, String containerCtx) | final public String | getDescription(String actionName, String containerCtx) | final public String | getDisplayName(String actionName, String containerCtx) | final public Icon | getIcon(String actionName, String containerCtx, int type) | final public int | getMnemonic(String actionName, String containerCtx) | final public int | getMnemonicIndex(String actionName, String containerCtx) | abstract protected ActionProvider[] | getProviders() | final public int | getState(String actionName, String containerCtx, Map context) | protected void | providersChanged() | protected String[] | sort(ActionProvider[] providers, Object[] actions, int length) Sorts the actions that will be returned by getActionNames from the
set of providers. |
ProxyActionProvider | protected ProxyActionProvider()(Code) | | Creates a new instance of ProxyActionProvider
|
findProviderOf | final protected ActionProvider findProviderOf(String containerCtx, String action)(Code) | | Given a container context and an action, reverse-lookup which action
provider we are proxying is responsible for it.
|
getMnemonicIndex | final public int getMnemonicIndex(String actionName, String containerCtx)(Code) | | |
getProviders | abstract protected ActionProvider[] getProviders()(Code) | | Fetch the action providers being proxied
|
providersChanged | protected void providersChanged()(Code) | | Call this if the return value of getProviders has changed to dump any
cached mappings between providers, contexts and actions
|
sort | protected String[] sort(ActionProvider[] providers, Object[] actions, int length)(Code) | | Sorts the actions that will be returned by getActionNames from the
set of providers. The default implementation does nothing except
concatenate the arrays of actions.
Parameters: providers - the action providers Parameters: An - array of arrays of strings provided by the passed providers Parameters: length - The combined number of actions passed in in the actions array Parameters: A - sorted array containing all the strings passed in in the actionsparameter. The result array must contain the same numberof actions as the length parameter - this is enforced. Do not use sort() as a convenient place to filter out actions. |
|
|