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.
See Also:
DelegateManager.setRelatedWindowDiscriminator(RelatedWindowDiscriminator).

Method Summary

boolean
isRelated(Window parent, Window other)
Check if the the other window is a child or is related to the parent.

Method Details

isRelated

public boolean isRelated(Window parent,
                         Window other)
Check if the the other window is a child or is related to the parent.
Parameters:
parent - the window to which the DelegatingCommand is bound.
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 DelegateContainers, false otherwise.