| java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI com.jidesoft.plaf.metal.MetalMenuItemUI
All known Subclasses: com.jidesoft.plaf.metal.MetalCheckBoxMenuItemUI, com.jidesoft.plaf.metal.MetalMenuUI,
MetalMenuItemUI | public class MetalMenuItemUI extends MenuItemUI (Code) | | MetalMenuItem implementation
|
Method Summary | |
ActionMap | createActionMap() | InputMap | createInputMap(int condition) | protected MenuDragMouseListener | createMenuDragMouseListener(JComponent c) | protected MenuKeyListener | createMenuKeyListener(JComponent c) | protected MouseInputListener | createMouseInputListener(JComponent c) | public static ComponentUI | createUI(JComponent c) | protected void | doClick(MenuSelectionManager msm) Call this method when a menu item is to be activated.
This method handles some of the details of menu item activation
such as clearing the selected path and messaging the
JMenuItem's doClick() method.
Parameters: msm - A MenuSelectionManager. | ActionMap | getActionMap() | public Dimension | getMaximumSize(JComponent c) | public Dimension | getMinimumSize(JComponent c) | public ThemePainter | getPainter() | public MenuElement[] | getPath() | protected Dimension | getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap) | public Dimension | getPreferredSize(JComponent c) | protected String | getPropertyPrefix() | protected void | installComponents(JMenuItem menuItem) | protected void | installDefaults() | protected void | installKeyboardActions() | protected void | installListeners() | public void | installUI(JComponent c) | protected boolean | isDownArrowVisible(Container c) | public void | paint(Graphics g, JComponent c) | protected void | paintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item. | protected void | paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) | protected void | paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) Renders the text of the current menu item. | void | printMenuElementArray(MenuElement path, boolean dumpStack) | protected void | uninstallComponents(JMenuItem menuItem) | protected void | uninstallDefaults() | protected void | uninstallKeyboardActions() | protected void | uninstallListeners() | public void | uninstallUI(JComponent c) | public void | update(Graphics g, JComponent c) We draw the background in paintMenuItem()
so override update (which fills the background of opaque
components by default) to just call paint(). | void | updateAcceleratorBinding() |
acceleratorFont | protected Font acceleratorFont(Code) | | |
acceleratorForeground | protected Color acceleratorForeground(Code) | | |
acceleratorSelectionForeground | protected Color acceleratorSelectionForeground(Code) | | |
defaultTextIconGap | protected int defaultTextIconGap(Code) | | |
disabledForeground | protected Color disabledForeground(Code) | | |
oldBorderPainted | protected boolean oldBorderPainted(Code) | | |
selectionBackground | protected Color selectionBackground(Code) | | |
selectionForeground | protected Color selectionForeground(Code) | | |
windowInputMap | InputMap windowInputMap(Code) | | Used for accelerator binding, lazily created.
|
doClick | protected void doClick(MenuSelectionManager msm)(Code) | | Call this method when a menu item is to be activated.
This method handles some of the details of menu item activation
such as clearing the selected path and messaging the
JMenuItem's doClick() method.
Parameters: msm - A MenuSelectionManager. The visual feedback andinternal bookkeeping tasks are delegated tothis MenuSelectionManager. If null ispassed as this argument, theMenuSelectionManager.defaultManager isused. See Also: javax.swing.MenuSelectionManager See Also: javax.swing.JMenuItem.doClick(int) since: 1.4 |
installComponents | protected void installComponents(JMenuItem menuItem)(Code) | | since: 1.3 |
installDefaults | protected void installDefaults()(Code) | | |
installKeyboardActions | protected void installKeyboardActions()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
paintBackground | protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)(Code) | | Draws the background of the menu item.
Parameters: g - the paint graphics Parameters: menuItem - menu item to be painted Parameters: bgColor - selection background color since: 1.4 |
paintText | protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)(Code) | | Renders the text of the current menu item.
Parameters: g - graphics context Parameters: menuItem - menu item to render Parameters: textRect - bounding rectangle for rendering the text Parameters: text - string to render since: 1.4 |
printMenuElementArray | void printMenuElementArray(MenuElement path, boolean dumpStack)(Code) | | |
uninstallComponents | protected void uninstallComponents(JMenuItem menuItem)(Code) | | since: 1.3 |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallKeyboardActions | protected void uninstallKeyboardActions()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
update | public void update(Graphics g, JComponent c)(Code) | | We draw the background in paintMenuItem()
so override update (which fills the background of opaque
components by default) to just call paint().
|
updateAcceleratorBinding | void updateAcceleratorBinding()(Code) | | |
|
|