org.pietschy.command
Interface GroupFactory
public interface GroupFactory
createGroup
public CommandGroup createGroup(CommandManager commandManager)
Creates a new anonymous group that uses the specified container.
- a new GroupCommand instance.
createGroup
public CommandGroup createGroup(CommandManager commandManager,
String commandId)
Creates a new group with the specified Id that uses the specified container.
commandManager
- the CommandManager
the group is to use.commandId
- the Id of the group
- a new GroupCommand instance.
createToggleGroup
public ToggleCommandGroup createToggleGroup(CommandManager commandManager,
String commandId)
Creates a new
exclusive group
with the specified Id that uses
the specified container.
commandManager
- the CommandManager
the group is to use.commandId
- the Id of the group
- a new ToggleGroupCommand instance.