org.pietschy.command.delegate
Interface RelatedWindowDiscriminator
public interface RelatedWindowDiscriminator
This interface allows the
DelegateManager
to determine which windows should be
considered for command container discovery during focus events.
DelegateManager.setRelatedWindowDiscriminator(RelatedWindowDiscriminator).
boolean | isRelated(Window parent, Window other) - Check if the the other window is a child or is related to the parent.
|
isRelated
public boolean isRelated(Window parent,
Window other)
Check if the the other window is a child or is related to the parent.
parent
- the window to which the DelegatingCommand
is bound.other
- the window that is the ancestor of the currently focused component.
true
if the other window is related to the parent and should be checked
for DelegateContainer
s, false
otherwise.