@Dependent public class CanvasCommandManagerImpl<H extends AbstractCanvasHandler> extends Object implements CanvasCommandManager<H>, HasCommandListener<CommandListener<H,CanvasViolation>>
CanvasCommand and throw different context events.| Modifier | Constructor and Description |
|---|---|
protected |
CanvasCommandManagerImpl() |
|
CanvasCommandManagerImpl(ClientFactoryManager clientFactoryManager,
javax.enterprise.event.Event<CanvasCommandAllowedEvent> isCanvasCommandAllowedEvent,
javax.enterprise.event.Event<CanvasCommandExecutedEvent> canvasCommandExecutedEvent,
javax.enterprise.event.Event<CanvasCommandUndoneEvent> canvasUndoCommandExecutedEvent) |
| Modifier and Type | Method and Description |
|---|---|
CommandResult<CanvasViolation> |
allow(H context,
Command<H,CanvasViolation> command) |
CommandResult<CanvasViolation> |
execute(H context,
Command<H,CanvasViolation> command) |
void |
setCommandListener(CommandListener<H,CanvasViolation> listener) |
CommandResult<CanvasViolation> |
undo(H context,
Command<H,CanvasViolation> command) |
protected CanvasCommandManagerImpl()
@Inject public CanvasCommandManagerImpl(ClientFactoryManager clientFactoryManager, javax.enterprise.event.Event<CanvasCommandAllowedEvent> isCanvasCommandAllowedEvent, javax.enterprise.event.Event<CanvasCommandExecutedEvent> canvasCommandExecutedEvent, javax.enterprise.event.Event<CanvasCommandUndoneEvent> canvasUndoCommandExecutedEvent)
public CommandResult<CanvasViolation> allow(H context, Command<H,CanvasViolation> command)
allow in interface CommandManager<H extends AbstractCanvasHandler,CanvasViolation>public CommandResult<CanvasViolation> execute(H context, Command<H,CanvasViolation> command)
execute in interface CommandManager<H extends AbstractCanvasHandler,CanvasViolation>public CommandResult<CanvasViolation> undo(H context, Command<H,CanvasViolation> command)
undo in interface CommandManager<H extends AbstractCanvasHandler,CanvasViolation>public void setCommandListener(CommandListener<H,CanvasViolation> listener)
setCommandListener in interface HasCommandListener<CommandListener<H extends AbstractCanvasHandler,CanvasViolation>>Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.