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 TypeClassDescriptionclassAs of Java 2 platform 1.4, this previously undocumented class is now obsolete.protected classInstantiated and used by a menu item to handle the current menu selection from mouse events. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChangeListenerprotected MenuListenerprotected PropertyChangeListenerFields 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 voidappendPath(MenuElement[] path, MenuElement elem) protected ActionMapInvoked to create the ActionMap.protected ChangeListenerprotected MenuDragMouseListenerprotected MenuKeyListenerprotected MenuListenerprotected MouseInputListenerprotected PropertyChangeListenerstatic ComponentUIprotected ActionMapThe ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.protected Stringprotected voidprotected voidprotected voidprotected booleanGet the temporary flag to indicate if the mouse has entered the menu.protected voidpaintBackground(Graphics g, JMenuItem menuItem, Color bgColor) Draws the background of the menu item.protected voidMethod which renders the text of the current menu item.protected voidsetMouseOver(boolean over) Set the temporary flag to indicate if the mouse has entered the menu.static voidsetupPostTimer(JMenu menu) protected voidprotected voidprotected voidprotected voidMethods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, updateMethods 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:
installDefaultsin classEclipseMenuItemUI
-
getPropertyPrefix
- Overrides:
getPropertyPrefixin classEclipseMenuItemUI
-
paintBackground
Draws the background of the menu item.- Overrides:
paintBackgroundin classEclipseMenuItemUI- Parameters:
g- the paint graphicsmenuItem- menu item to be paintedbgColor- selection background color- Since:
- 1.4
-
installListeners
protected void installListeners()- Overrides:
installListenersin classEclipseMenuItemUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActionsin classEclipseMenuItemUI
-
updateMnemonicBinding
protected void updateMnemonicBinding() -
uninstallKeyboardActions
protected void uninstallKeyboardActions()- Overrides:
uninstallKeyboardActionsin classEclipseMenuItemUI
-
getActionMap
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.- Overrides:
getActionMapin classEclipseMenuItemUI
-
createActionMap
Invoked to create the ActionMap.- Overrides:
createActionMapin classEclipseMenuItemUI
-
createMouseInputListener
- Overrides:
createMouseInputListenerin classEclipseMenuItemUI
-
createMenuListener
-
createChangeListener
-
createPropertyChangeListener
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classEclipseMenuItemUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classEclipseMenuItemUI
-
createMenuDragMouseListener
- Overrides:
createMenuDragMouseListenerin classEclipseMenuItemUI
-
createMenuKeyListener
- Overrides:
createMenuKeyListenerin classEclipseMenuItemUI
-
getMaximumSize
- Overrides:
getMaximumSizein classEclipseMenuItemUI
-
setupPostTimer
-
appendPath
-
paintText
Method which renders the text of the current menu item.- Overrides:
paintTextin 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:
getPreferredSizein classEclipseMenuItemUI
-