|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicMenuUI
public class BasicMenuUI
UI Delegate for JMenu
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected ChangeListener |
changeListener
|
protected MenuListener |
menuListener
|
protected PropertyChangeListener |
propertyChangeListener
|
Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground |
Constructor Summary | |
---|---|
BasicMenuUI()
Creates a new BasicMenuUI object. |
Method Summary | |
---|---|
protected ChangeListener |
createChangeListener(JComponent c)
This method creates a new ChangeListener. |
protected MenuDragMouseListener |
createMenuDragMouseListener(JComponent c)
This method creates new MenuDragMouseListener to listen to mouse dragged events occuring in the Menu |
protected MenuKeyListener |
createMenuKeyListener(JComponent c)
This method creates new MenuDragKeyListener to listen to key events |
protected MenuListener |
createMenuListener(JComponent c)
This method creates new MenuListener to listen to menu events occuring in the Menu |
protected MouseInputListener |
createMouseInputListener(JComponent c)
This method creates new MouseInputListener to listen to mouse input events occuring in the Menu |
protected PropertyChangeListener |
createPropertyChangeListener(JComponent c)
This method creates newPropertyChangeListener to listen to property changes occuring in the Menu |
static ComponentUI |
createUI(JComponent c)
This method creates a new BasicMenuUI. |
Dimension |
getMaximumSize(JComponent c)
Get the component's maximum size. |
protected 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(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. |
Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
---|
doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintBackground, paintMenuItem, paintText, uninstallComponents, uninstallUI, update |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ChangeListener changeListener
protected MenuListener menuListener
protected PropertyChangeListener propertyChangeListener
Constructor Detail |
---|
public BasicMenuUI()
Method Detail |
---|
protected ChangeListener createChangeListener(JComponent c)
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener
in class BasicMenuItemUI
c
- the menu to listen to
protected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener
in class BasicMenuItemUI
c
- the menu to listen to
protected MenuListener createMenuListener(JComponent c)
c
- the menu to listen to
protected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener
in class BasicMenuItemUI
c
- the menu to listen to
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
c
- the menu to listen to
public static ComponentUI createUI(JComponent c)
c
- The JComponent to create a UI for.
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class BasicMenuItemUI
c
- The JComponent for which to get maximum size
protected String getPropertyPrefix()
UIDefaults
table.
getPropertyPrefix
in class BasicMenuItemUI
protected void installDefaults()
installDefaults
in class BasicMenuItemUI
protected void installKeyboardActions()
installKeyboardActions
in class BasicMenuItemUI
protected void installListeners()
installListeners
in class BasicMenuItemUI
protected void setupPostTimer(JMenu menu)
protected void uninstallDefaults()
uninstallDefaults
in class BasicMenuItemUI
protected void uninstallKeyboardActions()
uninstallKeyboardActions
in class BasicMenuItemUI
protected void uninstallListeners()
uninstallListeners
in class BasicMenuItemUI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |