public interface CommandFactory
UICommand objects from all registered CommandProvider instances.| Modifier and Type | Method and Description |
|---|---|
UICommand |
getCommandByName(UIContext context,
String name)
|
String |
getCommandName(UIContext context,
UICommand cmd)
|
Set<String> |
getCommandNames(UIContext context)
Get all command names enabled for the given
UIContext |
Iterable<UICommand> |
getCommands()
Get all
UICommand instances from all available CommandProvider services. |
Set<String> |
getEnabledCommandNames(UIContext context)
Get all enabled command names enabled for the given
UIContext |
UICommand |
getNewCommandByName(UIContext context,
String name)
|
Iterable<UICommand> getCommands()
UICommand instances from all available CommandProvider services.
The underlying collection of UICommands is very likely be cached, and thus invoking operations
directly on them is not recommended for safety.
Consecutive invocations may be performed on the same UICommand instance, instead of different instances.
It is recommended to create a new UICommand when required. This can be done through the
getNewCommandByName(UIContext, String) method.Set<String> getEnabledCommandNames(UIContext context)
UIContextSet<String> getCommandNames(UIContext context)
UIContextCopyright © 2016 JBoss by Red Hat. All rights reserved.