Package com.jidesoft.plaf.eclipse
Class EclipseMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuItemUI
com.jidesoft.plaf.eclipse.EclipseMenuUI
- Direct Known Subclasses:
EclipseJideSplitButtonUI
Menu UI implementation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
As of Java 2 platform 1.4, this previously undocumented class is now obsolete.protected class
Instantiated and used by a menu item to handle the current menu selection from mouse events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListener
protected MenuListener
protected PropertyChangeListener
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
appendPath
(MenuElement[] path, MenuElement elem) protected ActionMap
Invoked to create the ActionMap.protected ChangeListener
protected MenuDragMouseListener
protected MenuKeyListener
protected MenuListener
protected MouseInputListener
protected PropertyChangeListener
static ComponentUI
protected ActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.protected String
protected void
protected void
protected void
protected boolean
Get the temporary flag to indicate if the mouse has entered the menu.protected void
paintBackground
(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected void
Method which renders the text of the current menu item.protected void
setMouseOver
(boolean over) Set the temporary flag to indicate if the mouse has entered the menu.static void
setupPostTimer
(JMenu menu) protected void
protected void
protected void
protected void
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
changeListener
-
propertyChangeListener
-
-
Constructor Details
-
EclipseMenuUI
public EclipseMenuUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classEclipseMenuItemUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefix
in classEclipseMenuItemUI
-
paintBackground
Draws the background of the menu item.- Overrides:
paintBackground
in classEclipseMenuItemUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color- Since:
- 1.4
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classEclipseMenuItemUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActions
in classEclipseMenuItemUI
-
updateMnemonicBinding
protected void updateMnemonicBinding() -
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActions
in classEclipseMenuItemUI
-
getActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.- Overrides:
getActionMap
in classEclipseMenuItemUI
-
createActionMap
Invoked to create the ActionMap.- Overrides:
createActionMap
in classEclipseMenuItemUI
-
createMouseInputListener
- Overrides:
createMouseInputListener
in classEclipseMenuItemUI
-
createMenuListener
-
createChangeListener
-
createPropertyChangeListener
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classEclipseMenuItemUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classEclipseMenuItemUI
-
createMenuDragMouseListener
- Overrides:
createMenuDragMouseListener
in classEclipseMenuItemUI
-
createMenuKeyListener
- Overrides:
createMenuKeyListener
in classEclipseMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSize
in classEclipseMenuItemUI
-
setupPostTimer
-
appendPath
-
paintText
Method which renders the text of the current menu item.- Overrides:
paintText
in classEclipseMenuItemUI
- Parameters:
g
- Graphics contextmenuItem
- Current menu item to rendertextRect
- Bounding rectangle to render the text.text
- String to render- Since:
- 1.4
-
setMouseOver
protected void setMouseOver(boolean over) Set the temporary flag to indicate if the mouse has entered the menu. -
isMouseOver
protected boolean isMouseOver()Get the temporary flag to indicate if the mouse has entered the menu. -
getPreferredSize
- Overrides:
getPreferredSize
in classEclipseMenuItemUI
-