|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pietschy.command.delegate.DelegateManager
public class DelegateManager
DelegateManager class acts as a singleton factory for all DelegateMediator instances.
DelegateMediators are created using the currently installed DelegateMediatorFactory.
getMediatorFor(java.awt.Window),
DelegatingCommand.trackDelegateIn(String, java.awt.Window)| Constructor Summary | |
|---|---|
DelegateManager()
|
|
| Method Summary | |
|---|---|
static DelegateMediator |
getMediatorFor(java.awt.Component component)
This is a convenience method that gets the DelegateMediator based on the specified
components window ancestor. |
static DelegateMediator |
getMediatorFor(java.awt.Window window)
Gets the DelegateMediator for the specified window. |
static void |
setDelegateMediatorFactory(DelegateMediatorFactory delegateMediatorFactory)
Sets the factory to use to create DelegateMediator instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegateManager()
| Method Detail |
|---|
public static DelegateMediator getMediatorFor(java.awt.Window window)
DelegateMediatorFactory.
window - the window of interest.
getMediatorFor(java.awt.Component),
setDelegateMediatorFactory(DelegateMediatorFactory)public static DelegateMediator getMediatorFor(java.awt.Component component)
DelegateMediator based on the specified
components window ancestor.
component -
DelegateMediator for the specified component.
java.lang.IllegalStateException - if the component is not contained within a window ancestor.public static void setDelegateMediatorFactory(DelegateMediatorFactory delegateMediatorFactory)
DelegateMediator instances.
delegateMediatorFactory - the new factory to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||