public class EclipseMenuUI extends EclipseMenuItemUI
| Modifier and Type | Class and Description |
|---|---|
class |
EclipseMenuUI.ChangeHandler
As of Java 2 platform 1.4, this previously undocumented class is now obsolete.
|
protected class |
EclipseMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection from mouse events.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.event.ChangeListener |
changeListener |
protected javax.swing.event.MenuListener |
menuListener |
protected java.beans.PropertyChangeListener |
propertyChangeListener |
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor| Constructor and Description |
|---|
EclipseMenuUI() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendPath(javax.swing.MenuElement[] path,
javax.swing.MenuElement elem) |
protected javax.swing.ActionMap |
createActionMap()
Invoked to create the ActionMap.
|
protected javax.swing.event.ChangeListener |
createChangeListener(javax.swing.JComponent c) |
protected javax.swing.event.MenuDragMouseListener |
createMenuDragMouseListener(javax.swing.JComponent c) |
protected javax.swing.event.MenuKeyListener |
createMenuKeyListener(javax.swing.JComponent c) |
protected javax.swing.event.MenuListener |
createMenuListener(javax.swing.JComponent c) |
protected javax.swing.event.MouseInputListener |
createMouseInputListener(javax.swing.JComponent c) |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener(javax.swing.JComponent c) |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x) |
protected javax.swing.ActionMap |
getActionMap()
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected java.lang.String |
getPropertyPrefix() |
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
protected boolean |
isMouseOver()
Get the temporary flag to indicate if the mouse has entered the menu.
|
protected void |
paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
Draws the background of the menu item.
|
protected void |
paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
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(javax.swing.JMenu menu) |
protected void |
uninstallDefaults() |
protected void |
uninstallKeyboardActions() |
protected void |
uninstallListeners() |
protected void |
updateMnemonicBinding() |
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, updateprotected javax.swing.event.ChangeListener changeListener
protected java.beans.PropertyChangeListener propertyChangeListener
protected javax.swing.event.MenuListener menuListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
protected void installDefaults()
installDefaults in class EclipseMenuItemUIprotected java.lang.String getPropertyPrefix()
getPropertyPrefix in class EclipseMenuItemUIprotected void paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
paintBackground in class EclipseMenuItemUIg - the paint graphicsmenuItem - menu item to be paintedbgColor - selection background colorprotected void installListeners()
installListeners in class EclipseMenuItemUIprotected void installKeyboardActions()
installKeyboardActions in class EclipseMenuItemUIprotected void updateMnemonicBinding()
protected void uninstallKeyboardActions()
uninstallKeyboardActions in class EclipseMenuItemUIprotected javax.swing.ActionMap getActionMap()
getActionMap in class EclipseMenuItemUIprotected javax.swing.ActionMap createActionMap()
createActionMap in class EclipseMenuItemUIprotected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
createMouseInputListener in class EclipseMenuItemUIprotected javax.swing.event.MenuListener createMenuListener(javax.swing.JComponent c)
protected javax.swing.event.ChangeListener createChangeListener(javax.swing.JComponent c)
protected java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JComponent c)
protected void uninstallDefaults()
uninstallDefaults in class EclipseMenuItemUIprotected void uninstallListeners()
uninstallListeners in class EclipseMenuItemUIprotected javax.swing.event.MenuDragMouseListener createMenuDragMouseListener(javax.swing.JComponent c)
createMenuDragMouseListener in class EclipseMenuItemUIprotected javax.swing.event.MenuKeyListener createMenuKeyListener(javax.swing.JComponent c)
createMenuKeyListener in class EclipseMenuItemUIpublic java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class EclipseMenuItemUIpublic static void setupPostTimer(javax.swing.JMenu menu)
protected static void appendPath(javax.swing.MenuElement[] path,
javax.swing.MenuElement elem)
protected void paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
paintText in class EclipseMenuItemUIg - Graphics contextmenuItem - Current menu item to rendertextRect - Bounding rectangle to render the text.text - String to renderprotected void setMouseOver(boolean over)
protected boolean isMouseOver()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class EclipseMenuItemUI