|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.util.DefaultWindowSearchStrategy
public class DefaultWindowSearchStrategy
Default WindowSearchStrategy used by commands for finding the parent
windows of components. This implementation is able to locate the parent
window of JPopupMenus.
| Constructor Summary | |
|---|---|
DefaultWindowSearchStrategy()
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.awt.Window |
findParentWindow(java.awt.Component component)
Invoked to find the parent window of the specified component. |
protected javax.swing.JPopupMenu |
getTopLevelPopup(javax.swing.JPopupMenu popup)
Traverses the popup hierarchy to finds the highest level popup from the specified instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultWindowSearchStrategy()
| Method Detail |
|---|
public java.awt.Window findParentWindow(java.awt.Component component)
WindowSearchStrategy
findParentWindow in interface WindowSearchStrategycomponent - the component of interest.
null if none can
be found.protected javax.swing.JPopupMenu getTopLevelPopup(javax.swing.JPopupMenu popup)
popup - the popup of interest.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||