|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.delegate.DelegateProviderSupport
class DelegateProviderSupport
A simple implementation of DelegateProvider. This class is useful in cases
where a CommandContainer isn't required.
| Constructor Summary | |
|---|---|
DelegateProviderSupport()
|
|
| Method Summary | |
|---|---|
void |
add(ActionCommandExecutor delegate)
Adds the specified delegate to the container. |
void |
add(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
Adds the specified delegate list to the container. |
void |
addAll(java.util.Collection<? extends ActionCommandExecutor> delegates)
Adds all the specified delegates to the container. |
void |
clear()
Clears the container of all delegates. |
ActionCommandExecutor |
getActionCommandExecutor(java.lang.String commandId)
Gets the delegate with the specified id. |
java.util.Collection<ActionCommandExecutor> |
getDelegates()
Gets the delegates contained by this container. |
void |
remove(ActionCommandExecutor delegate)
Removes the specified delegate from the container. |
void |
remove(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
Removes the specified delegates from the container. |
void |
removeAll(java.util.Collection<? extends ActionCommandExecutor> delegates)
Removes all the specified delegates from the container. |
int |
size()
Gets the number of executors in the container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DelegateProviderSupport()
| Method Detail |
|---|
public void addAll(java.util.Collection<? extends ActionCommandExecutor> delegates)
delegates - the delegates to add.public void add(ActionCommandExecutor delegate)
delegate - the delegate to add.
public void add(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
delegate - the first delegate to add.otherDelegates - the remaining delegates to add.public void remove(ActionCommandExecutor delegate)
delegate - the delegate to remove.public void removeAll(java.util.Collection<? extends ActionCommandExecutor> delegates)
delegates - the delegates to remove.
public void remove(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
delegate - the first delegate to remove.otherDelegates - the remaining delegates to remove.public void clear()
public int size()
public java.util.Collection<ActionCommandExecutor> getDelegates()
public ActionCommandExecutor getActionCommandExecutor(java.lang.String commandId)
DelegateProvider
getActionCommandExecutor in interface DelegateProvidercommandId - the commands id.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||