Package org.fest.swing.core
Class WindowAncestorFinder
java.lang.Object
org.fest.swing.core.WindowAncestorFinder
Understands lookup of a component's
ancestor.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowSimilar to, but returns theSwingUtilities.getWindowAncestor(Component)itself if it is aComponent, or the invoker'sWindowWindowif on a pop-up.
-
Field Details
-
hierarchy
-
-
Constructor Details
-
WindowAncestorFinder
private WindowAncestorFinder()
-
-
Method Details
-
windowAncestorOf
Similar to, but returns theSwingUtilities.getWindowAncestor(Component)itself if it is aComponent, or the invoker'sWindowWindowif on a pop-up.Note: This method is not executed in the event dispatch thread (EDT.) Clients are responsible for invoking this method in the EDT.
- Parameters:
c- theComponentto get theWindowancestor of.- Returns:
- the
Windowancestor of the givenComponent, theComponentitself if it is aWindow, or the invoker'sWindowif on a pop-up.
-