public class BasicMenuUI extends BasicMenuItemUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicMenuUI.ChangeHandler
Obsolete as of JDK1.4.
|
protected class |
BasicMenuUI.MouseInputHandler
This class is used by menus to handle mouse events occuring in the
menu.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.event.ChangeListener |
changeListener |
protected javax.swing.event.MenuListener |
menuListener |
protected java.beans.PropertyChangeListener |
propertyChangeListener |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground| Constructor and Description |
|---|
BasicMenuUI()
Creates a new BasicMenuUI object.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.event.ChangeListener |
createChangeListener(javax.swing.JComponent c)
This method creates a new ChangeListener.
|
protected javax.swing.event.MenuDragMouseListener |
createMenuDragMouseListener(javax.swing.JComponent c)
This method creates new MenuDragMouseListener to listen to mouse dragged events
occuring in the Menu
|
protected javax.swing.event.MenuKeyListener |
createMenuKeyListener(javax.swing.JComponent c)
This method creates new MenuDragKeyListener to listen to key events
|
protected javax.swing.event.MenuListener |
createMenuListener(javax.swing.JComponent c)
This method creates new MenuListener to listen to menu events
occuring in the Menu
|
protected javax.swing.event.MouseInputListener |
createMouseInputListener(javax.swing.JComponent c)
This method creates new MouseInputListener to listen to mouse input events
occuring in the Menu
|
protected java.beans.PropertyChangeListener |
createPropertyChangeListener(javax.swing.JComponent c)
This method creates newPropertyChangeListener to listen to property changes
occuring in the Menu
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
This method creates a new BasicMenuUI.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Get the component's maximum size.
|
protected java.lang.String |
getPropertyPrefix()
Returns the prefix for entries in the
UIDefaults table. |
protected void |
installDefaults()
Initializes any default properties that this UI has from the defaults for
the Basic look and feel.
|
protected void |
installKeyboardActions()
Installs any keyboard actions.
|
protected void |
installListeners()
Creates and registers all the listeners for this UI delegate.
|
protected void |
setupPostTimer(javax.swing.JMenu menu) |
protected void |
uninstallDefaults()
This method uninstalls the defaults and sets any objects created during
install to null
|
protected void |
uninstallKeyboardActions()
Uninstalls any keyboard actions.
|
protected void |
uninstallListeners()
Unregisters all the listeners that this UI delegate was using.
|
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallUI, updateprotected javax.swing.event.ChangeListener changeListener
protected javax.swing.event.MenuListener menuListener
protected java.beans.PropertyChangeListener propertyChangeListener
public BasicMenuUI()
protected javax.swing.event.ChangeListener createChangeListener(javax.swing.JComponent c)
protected javax.swing.event.MenuDragMouseListener createMenuDragMouseListener(javax.swing.JComponent c)
createMenuDragMouseListener in class BasicMenuItemUIc - the menu to listen toprotected javax.swing.event.MenuKeyListener createMenuKeyListener(javax.swing.JComponent c)
createMenuKeyListener in class BasicMenuItemUIc - the menu to listen toprotected javax.swing.event.MenuListener createMenuListener(javax.swing.JComponent c)
c - the menu to listen toprotected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
createMouseInputListener in class BasicMenuItemUIc - the menu to listen toprotected java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JComponent c)
c - the menu to listen topublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - The JComponent to create a UI for.public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class BasicMenuItemUIc - The JComponent for which to get maximum sizeprotected java.lang.String getPropertyPrefix()
UIDefaults table.getPropertyPrefix in class BasicMenuItemUIprotected void installDefaults()
installDefaults in class BasicMenuItemUIprotected void installKeyboardActions()
installKeyboardActions in class BasicMenuItemUIprotected void installListeners()
installListeners in class BasicMenuItemUIprotected void setupPostTimer(javax.swing.JMenu menu)
protected void uninstallDefaults()
uninstallDefaults in class BasicMenuItemUIprotected void uninstallKeyboardActions()
uninstallKeyboardActions in class BasicMenuItemUIprotected void uninstallListeners()
uninstallListeners in class BasicMenuItemUI