|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ButtonUI javax.swing.plaf.MenuItemUI com.jidesoft.plaf.metal.MetalMenuItemUI com.jidesoft.plaf.metal.MetalMenuUI
public class MetalMenuUI
A metal L&F implementation of MenuUI.
Nested Class Summary | |
---|---|
class |
MetalMenuUI.ChangeHandler
As of Java 2 platform 1.4, this previously undocumented class is now obsolete. |
protected class |
MetalMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection from mouse events. |
Field Summary | |
---|---|
protected ChangeListener |
changeListener
|
protected MenuListener |
menuListener
|
protected PropertyChangeListener |
propertyChangeListener
|
Fields inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI |
---|
_painter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground |
Constructor Summary | |
---|---|
MetalMenuUI()
|
Method Summary | |
---|---|
protected static void |
appendPath(MenuElement[] path,
MenuElement elem)
|
protected ActionMap |
createActionMap()
Invoked to create the ActionMap. |
protected ChangeListener |
createChangeListener(JComponent c)
|
protected MenuDragMouseListener |
createMenuDragMouseListener(JComponent c)
|
protected MenuKeyListener |
createMenuKeyListener(JComponent c)
|
protected MenuListener |
createMenuListener(JComponent c)
|
protected MouseInputListener |
createMouseInputListener(JComponent c)
|
protected PropertyChangeListener |
createPropertyChangeListener(JComponent c)
|
static ComponentUI |
createUI(JComponent x)
|
protected ActionMap |
getActionMap()
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation. |
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getPreferredSize(JComponent c)
|
protected 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(Graphics g,
JMenuItem menuItem,
Color bgColor)
Draws the background of the menu item. |
protected void |
setMouseOver(boolean over)
Set the temporary flag to indicate if the mouse has entered the menu. |
protected static void |
setupPostTimer(JMenu menu)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
protected void |
updateMnemonicBinding()
|
Methods inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI |
---|
createInputMap, doClick, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, paintText, uninstallComponents, uninstallUI, update |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ChangeListener changeListener
protected PropertyChangeListener propertyChangeListener
protected MenuListener menuListener
Constructor Detail |
---|
public MetalMenuUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent x)
protected void installDefaults()
installDefaults
in class MetalMenuItemUI
protected String getPropertyPrefix()
getPropertyPrefix
in class MetalMenuItemUI
protected void installListeners()
installListeners
in class MetalMenuItemUI
protected void installKeyboardActions()
installKeyboardActions
in class MetalMenuItemUI
protected void updateMnemonicBinding()
protected void uninstallKeyboardActions()
uninstallKeyboardActions
in class MetalMenuItemUI
protected ActionMap getActionMap()
getActionMap
in class MetalMenuItemUI
protected ActionMap createActionMap()
createActionMap
in class MetalMenuItemUI
protected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener
in class MetalMenuItemUI
protected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
protected void uninstallDefaults()
uninstallDefaults
in class MetalMenuItemUI
protected void uninstallListeners()
uninstallListeners
in class MetalMenuItemUI
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener
in class MetalMenuItemUI
protected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener
in class MetalMenuItemUI
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class MetalMenuItemUI
protected static void setupPostTimer(JMenu menu)
protected static void appendPath(MenuElement[] path, MenuElement elem)
protected void setMouseOver(boolean over)
protected boolean isMouseOver()
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class MetalMenuItemUI
protected void paintBackground(Graphics g, JMenuItem menuItem, Color bgColor)
paintBackground
in class MetalMenuItemUI
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |