org.pietschy.command.delegate
Class DelegateManager
java.lang.Object
org.pietschy.command.delegate.DelegateManager
public class DelegateManager
extends java.lang.Object
getMediatorFor(java.awt.Window)
, DelegatingCommand.trackDelegateIn(String, java.awt.Window)
getMediatorFor
public static DelegateMediator getMediatorFor(Component component)
This is a convenience method that gets the
DelegateMediator
based on the specified
components window ancestor.
getMediatorFor
public static DelegateMediator getMediatorFor(Window window)
Gets the DelegateMediator for the specified window. If the mediator doesn't exist it will
be created using the current
DelegateMediatorFactory
.
window
- the window of interest.
- the DelegateMediator for the specified window.
setDelegateMediatorFactory
public static void setDelegateMediatorFactory(DelegateMediatorFactory delegateMediatorFactory)
delegateMediatorFactory
- the new factory to use.