com.pietschy.command.delegate
Interface RelatedWindowDiscriminator
- All Known Implementing Classes:
- DefaultRelatedWindowDiscriminator
public interface RelatedWindowDiscriminator
Interface that allows the FocusTrackingDelegateMediator to determine which windows
should be considered for command container discovery during focus events.
- See Also:
FocusTrackingDelegateMediator.setRelatedWindowDiscriminator(RelatedWindowDiscriminator)
|
Method Summary |
boolean |
isRelated(java.awt.Window parent,
java.awt.Window other)
Check if the the other window is a child or is related to the parent. |
isRelated
boolean isRelated(java.awt.Window parent,
java.awt.Window other)
- Check if the the other window is a child or is related to the parent.
- Parameters:
parent - the window to which the mediator is associated.other - the window that is the ancestor of the currently focused component.
- Returns:
true if the other window is related to the parent and should be checked
for DelegateProviders, false otherwise.
Copyright © 2006 - 2007 Andrew Pietsch