public class CommandListenerCollection extends ArrayList<CommandListener>
CommandListener. It provides an easy way of notifying all the listeners when a
Command is executed.modCount| Constructor and Description |
|---|
CommandListenerCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fireBeforeCommand(CommandManager sender,
Command command,
String param)
Notifies all the listeners in this collection that the specified command is about to be executed.
|
void |
fireCommand(CommandManager sender,
Command command,
String param)
Notifies all the listeners in this collection that the specified command was executed.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic boolean fireBeforeCommand(CommandManager sender, Command command, String param)
sender - The command manager that will execute the command.command - The command that is about to be executed.param - The parameter that will be used to execute the command.public void fireCommand(CommandManager sender, Command command, String param)
sender - The command manager that executed the command.command - The command executed.param - The parameter used when the command was executed.Copyright © 2004–2016 XWiki. All rights reserved.