public class JMenuItemMatcher extends java.lang.Object implements Matcher
JMenuItem
given a simple label or a menu path of the
format "menu|submenu|menuitem", for example "File|Open|Can of worms".Constructor and Description |
---|
JMenuItemMatcher(java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getPath(javax.swing.JMenuItem item) |
boolean |
matches(java.awt.Component c)
Return whether the given Component matches some lookup criteria.
|
static java.util.List |
splitMenuPath(java.lang.String path) |
java.lang.String |
toString() |
public static java.lang.String getPath(javax.swing.JMenuItem item)
public static java.util.List splitMenuPath(java.lang.String path)
path
- A path of the form File|Open|Can of wormspublic boolean matches(java.awt.Component c)
Matcher
public java.lang.String toString()
toString
in class java.lang.Object
Abbot is hosted on