Modifier and Type | Class and Description |
---|---|
class |
AbstractCommand<T,V>
Base type for commands
|
Modifier and Type | Method and Description |
---|---|
CommandRegistry<Command<T,V>> |
HasCommandRegistry.getRegistry()
Returns the command registry instance.
|
Modifier and Type | Method and Description |
---|---|
CommandResult<V> |
DelegateCommandManager.allow(C context,
Command<C,V> command) |
CommandResult<V> |
CommandManager.allow(T context,
Command<T,V> command)
Check whether the given command can be executed.
|
CommandResult<V> |
DelegateCommandManager.execute(C context,
Command<C,V> command) |
CommandResult<V> |
CommandManager.execute(T context,
Command<T,V> command)
Execute the given command.
|
void |
CommandListener.onAllow(T context,
Command<T,V> command,
CommandResult<V> result) |
void |
CommandListener.onExecute(T context,
Command<T,V> command,
CommandResult<V> result) |
void |
CommandListener.onUndo(T context,
Command<T,V> command,
CommandResult<V> result) |
protected void |
DelegateCommandManager.postAllow(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
DelegateCommandManager.postExecute(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
DelegateCommandManager.postUndo(C context,
Command<C,V> command,
CommandResult<V> result) |
protected void |
DelegateCommandManager.preAllow(C context,
Command<C,V> command) |
protected void |
DelegateCommandManager.preExecute(C context,
Command<C,V> command) |
protected void |
DelegateCommandManager.preUndo(C context,
Command<C,V> command) |
CommandResult<V> |
DelegateCommandManager.undo(C context,
Command<C,V> command) |
CommandResult<V> |
CommandManager.undo(T context,
Command<T,V> command)
Undo an executed command.
|
Modifier and Type | Method and Description |
---|---|
Command<C,V> |
AbstractCommandEvent.getCommand() |
Constructor and Description |
---|
AbstractCommandEvent(Command<C,V> command,
CommandResult<V> result) |
Constructor and Description |
---|
BadCommandArgumentsException(Command<?,?> command,
Object argument,
String message) |
CommandException(Command<?,?> command) |
CommandException(String message,
Command<?,?> command) |
Modifier and Type | Method and Description |
---|---|
CommandResult<V> |
CommandManagerImpl.allow(C context,
Command<C,V> command) |
CommandResult<V> |
CommandManagerImpl.execute(C context,
Command<C,V> command) |
CommandResult<V> |
CommandManagerImpl.undo(C context,
Command<C,V> command) |
Modifier and Type | Method and Description |
---|---|
default <C extends Command> |
CommandRegistryFactory.newCommandRegistry()
Creates a new registry instance for commands.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CommandRegistry<C extends Command>
Base registry type for Commands.
|
class |
CommandRegistryImpl<C extends Command>
The default generic implementation for the CommandRegistry type.
|
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.