| java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI com.jidesoft.plaf.eclipse.EclipseMenuItemUI
All known Subclasses: com.jidesoft.plaf.eclipse.EclipseMenuUI, com.jidesoft.plaf.eclipse.EclipseCheckBoxMenuItemUI, com.jidesoft.plaf.eclipse.EclipseRadioButtonMenuItemUI,
EclipseMenuItemUI | public class EclipseMenuItemUI extends MenuItemUI (Code) | | MenuItem UI 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 textIconGap) | 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) Method which renders the text of the current menu item. | 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) | | |
defaultAccelEndGap | protected int defaultAccelEndGap(Code) | | |
defaultShadowWidth | protected int defaultShadowWidth(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: MenuSelectionManager See Also: 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) | | Method which renders the text of the current menu item.
Parameters: g - Graphics context Parameters: menuItem - Current menu item to render Parameters: textRect - Bounding rectangle to render the text. Parameters: text - String to render |
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) | | |
|
|