|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.menu.MenuUtils
public final class MenuUtils
This class provides a set of utilities for menu elements. This is a library utility class and its not intended for use outside of the menu elements.
Field Summary |
---|
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
MenuUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getAcceleratorText(javax.swing.JMenuItem menuItem)
Returns menu item accelerator text. |
static int |
getIconPlaceholderWidth(javax.swing.JMenuItem menuItem,
boolean alignTextToMenuIcons)
Returns maximum icon width for this menu item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuUtils()
Method Detail |
---|
public static int getIconPlaceholderWidth(javax.swing.JMenuItem menuItem, boolean alignTextToMenuIcons)
menuItem
- menu item to processalignTextToMenuIcons
- whether menu item text should be aligned to icons or not
public static java.lang.String getAcceleratorText(javax.swing.JMenuItem menuItem)
menuItem
- menu item to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |