| java.lang.Object gui.windowsystem.MenuChecker
MenuChecker | public class MenuChecker (Code) | | author: lhasik@netbeans.org, mmirilovic@netbeans.org |
Method Summary | |
public static String | checkMnemonicCollision() | public static String | checkShortCutCollision() | public boolean | containsMenuItem(javax.swing.JPopupMenu popup, String item) | public static ArrayList | getMenuArrayList(JMenu menu) Get Menu and tranfer it to ArrayList. | public static ArrayList | getMenuBarArrayList(JMenuBar menu) Get MenuBar and tranfer it to ArrayList. | public static ArrayList | getPopupMenuArrayList(JPopupMenu popup) Get PopupMenu and transfer it to ArrayList. | public static TreeSet | getSortedMenu(JMenu menu) | public static TreeSet | getSortedMenuBar(JMenuBar menu, String menuToTest) | public static TreeSet | getSortedPopupMenu(JPopupMenu popup, String menuNotTest) | public static void | printArray(ArrayList a, PrintStream stream, int x) | public static void | printMenuBarStructure(JMenuBar menu, PrintStream stream, String menuToBeTested, boolean printEnabledOnly, boolean sorted) | public static void | printPopupMenuStructure(JPopupMenu menu, PrintStream stream, String menuNotToBeTested, boolean printEnabledOnly, boolean sorted) | public static void | printSorted(Collection a, PrintStream stream, int x, boolean printEnabledOnly) Print Sorted collection. | public static void | visitMenuBar(JMenuBar menu) |
MenuChecker | public MenuChecker()(Code) | | Creates a new instance of MenuChecker
|
checkMnemonicCollision | public static String checkMnemonicCollision()(Code) | | |
checkShortCutCollision | public static String checkShortCutCollision()(Code) | | |
containsMenuItem | public boolean containsMenuItem(javax.swing.JPopupMenu popup, String item)(Code) | | Check whether JPopupMenu popup contains item ?
Parameters: popup - looking for menu item in this popup menu Parameters: item - looking for this item true-popup contains item, false-doesn't contain item |
getMenuArrayList | public static ArrayList getMenuArrayList(JMenu menu)(Code) | | Get Menu and tranfer it to ArrayList.
Parameters: menu - menu to be tranfered tranfered menu |
getMenuBarArrayList | public static ArrayList getMenuBarArrayList(JMenuBar menu)(Code) | | Get MenuBar and tranfer it to ArrayList.
Parameters: menu - menu to be tranfered tranfered menubar |
getPopupMenuArrayList | public static ArrayList getPopupMenuArrayList(JPopupMenu popup)(Code) | | Get PopupMenu and transfer it to ArrayList.
Parameters: popup - menu to be tranfered transfered menu |
printArray | public static void printArray(ArrayList a, PrintStream stream, int x)(Code) | | Parameters: a - aarray to be printed Parameters: stream - where Parameters: x - level of array |
printMenuBarStructure | public static void printMenuBarStructure(JMenuBar menu, PrintStream stream, String menuToBeTested, boolean printEnabledOnly, boolean sorted)(Code) | | Print (unsorted) structure of menu - as it really looks
Parameters: menu - Parameters: stream - |
printPopupMenuStructure | public static void printPopupMenuStructure(JPopupMenu menu, PrintStream stream, String menuNotToBeTested, boolean printEnabledOnly, boolean sorted)(Code) | | Print (unsorted) structure of menu - as it really looks
Parameters: menu - Parameters: stream - |
printSorted | public static void printSorted(Collection a, PrintStream stream, int x, boolean printEnabledOnly)(Code) | | Print Sorted collection.
Parameters: a - Collection to be sorted. Parameters: stream - output stream Parameters: x - indentation |
visitMenuBar | public static void visitMenuBar(JMenuBar menu)(Code) | | Open all menus in menubar
Parameters: menu - to be visited |
|
|