com.pietschy.command.util
Interface WindowSearchStrategy
- All Known Implementing Classes:
- DefaultWindowSearchStrategy
public interface WindowSearchStrategy
Interface that defines a strategy for finding a parent window from
an arbitrary component. Instances of this interface must typically handle
the case where the component is a popup menu and the window parent can't be
found using the standard SwingUtilities.windowForComponent(Component).
|
Method Summary |
java.awt.Window |
findParentWindow(java.awt.Component component)
Invoked to find the parent window of the specified component. |
findParentWindow
java.awt.Window findParentWindow(java.awt.Component component)
- Invoked to find the parent window of the specified component.
- Parameters:
component - the component of interest.
- Returns:
- the window parent of the component, or
null if none can
be found.
Copyright © 2006 - 2007 Andrew Pietsch