org.xwiki.gwt.user.client.ui.rta.cmd
Class CommandListenerCollection
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<CommandListener>
org.xwiki.gwt.user.client.ui.rta.cmd.CommandListenerCollection
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<CommandListener>, Collection<CommandListener>, List<CommandListener>, RandomAccess
public class CommandListenerCollection
- extends ArrayList<CommandListener>
A collection of CommandListener. It provides an easy way of notifying all the listeners when a
Command is executed.
- Version:
- $Id$
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
CommandListenerCollection
public CommandListenerCollection()
fireBeforeCommand
public boolean fireBeforeCommand(CommandManager sender,
Command command,
String param)
- Notifies all the listeners in this collection that the specified command is about to be executed.
- Parameters:
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.
- Returns:
- true if one of the listeners wants to prevent the command from being executed.
fireCommand
public void fireCommand(CommandManager sender,
Command command,
String param)
- Notifies all the listeners in this collection that the specified command was executed.
- Parameters:
sender - The command manager that executed the command.command - The command executed.param - The parameter used when the command was executed.
Copyright © 2004-2011 XWiki. All Rights Reserved.