|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.delegate.AbstractDelegateMediator
com.pietschy.command.delegate.DefaultDelegateMediator
public class DefaultDelegateMediator
Default implementation of DelegateMediator that allows you to set
the either a list of ActionCommandExecutors to use or a list of
DelegateProviders to use. When set all DelegatingCommands
associated with this mediator will update accordingly.
| Field Summary |
|---|
| Fields inherited from class com.pietschy.command.delegate.AbstractDelegateMediator |
|---|
EMPTY_PROVIDER_ARRAY |
| Constructor Summary | |
|---|---|
DefaultDelegateMediator()
|
|
| Method Summary | |
|---|---|
ActionCommandExecutor |
getExecutor(java.lang.String id)
Searches the provider hierarchy and gets the first executor it finds. |
void |
setDelegateProvider(DelegateProvider provider)
Sets the current DelegateProvider to be used by all DelegatingCommands associated
with this mediator. |
void |
setDelegateProviders(DelegateProvider[] providers)
Sets the current DelegateProvider to be used by all DelegatingCommands associated
with this mediator. |
void |
setDelegates(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
Sets the current list of delegates to those specified. |
void |
setDelegates(java.util.Collection<? extends ActionCommandExecutor> delegates)
Sets the current list of delegates to those specified. |
| Methods inherited from class com.pietschy.command.delegate.AbstractDelegateMediator |
|---|
addDelegateMediatorListener, fireDelegatesChanged, getExecutor, nullSafeArray, nullSafeArray, removeDelegateMediatorListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDelegateMediator()
| Method Detail |
|---|
public void setDelegateProviders(DelegateProvider[] providers)
DelegateProvider to be used by all DelegatingCommands associated
with this mediator.
providers - the providers to use, or null to clear all the providers.public void setDelegateProvider(DelegateProvider provider)
DelegateProvider to be used by all DelegatingCommands associated
with this mediator.
provider - the provider to use, or null to clear all the providers.
public void setDelegates(ActionCommandExecutor delegate,
ActionCommandExecutor... otherDelegates)
delegate - the first delegate.otherDelegates - any additional delegates.public void setDelegates(java.util.Collection<? extends ActionCommandExecutor> delegates)
delegates - the new delegates to use.public ActionCommandExecutor getExecutor(java.lang.String id)
id - the id to search for.
null if
non exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||