|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.driver.JMenuItemLocation
public final class JMenuItemLocation
Understands the location of a .
JMenuItem
| Constructor Summary | |
|---|---|
JMenuItemLocation(JMenuItem menuItem)
Creates a new JMenuItemLocation. |
|
| Method Summary | |
|---|---|
boolean |
inMenuBar()
Indicates whether the is in a . |
boolean |
isParentAMenu()
Indicates whether the parent of the is another menu. |
Component |
parentOrInvoker()
Returns the parent of , or its invoker (if it is in a pop-up.) |
JPopupMenu |
parentPopup()
Returns the parent pop-up menu, or null if the is not in a pop-up. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@RunsInCurrentThread public JMenuItemLocation(JMenuItem menuItem)
JMenuItemLocation.
Note: This constructor is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for ensuring that this constructor is executed in the EDT.
menuItem - the target JMenuItem.| Method Detail |
|---|
public boolean inMenuBar()
JMenuItem is in a JMenuBar.
true if the JMenuItem is in a JMenuBar, false
otherwise.@RunsInEDT public boolean isParentAMenu()
JMenuItem is another menu.
true if the parent of the JMenuItem is another menu, false
otherwise.public Component parentOrInvoker()
JMenuItem, or its invoker (if it is in a pop-up.)
JMenuItem.public JPopupMenu parentPopup()
null if the JMenuItem is not in a pop-up.
null if the JMenuItem is not in a pop-up.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||