Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicMenuUI
public class BasicMenuUI
extends BasicMenuItemUI
Nested Class Summary | |
class |
|
protected class |
|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuItemUI | |
BasicMenuItemUI.MouseInputHandler |
Field Summary | |
protected ChangeListener | |
protected MenuListener | |
protected 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 | |
|
Method Summary | |
protected ChangeListener |
|
protected MenuDragMouseListener |
|
protected MenuKeyListener |
|
protected MenuListener |
|
protected MouseInputListener |
|
protected PropertyChangeListener |
|
static ComponentUI |
|
Dimension |
|
protected String |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
protected PropertyChangeListener propertyChangeListener
A PropertyChangeListener to make UI updates after property changes.
protected ChangeListener createChangeListener(JComponent c)
This method creates a new ChangeListener.
- Returns:
- A new ChangeListener.
protected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
This method creates new MenuDragMouseListener to listen to mouse dragged events occuring in the Menu
- Overrides:
- createMenuDragMouseListener in interface BasicMenuItemUI
- Parameters:
c
- the menu to listen to
- Returns:
- The MenuDrageMouseListener
protected MenuKeyListener createMenuKeyListener(JComponent c)
This method creates new MenuDragKeyListener to listen to key events
- Overrides:
- createMenuKeyListener in interface BasicMenuItemUI
- Parameters:
c
- the menu to listen to
- Returns:
- The MenuKeyListener
protected MenuListener createMenuListener(JComponent c)
This method creates new MenuListener to listen to menu events occuring in the Menu
- Parameters:
c
- the menu to listen to
- Returns:
- The MenuListener
protected MouseInputListener createMouseInputListener(JComponent c)
This method creates new MouseInputListener to listen to mouse input events occuring in the Menu
- Overrides:
- createMouseInputListener in interface BasicMenuItemUI
- Parameters:
c
- the menu to listen to
- Returns:
- The MouseInputListener
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
This method creates newPropertyChangeListener to listen to property changes occuring in the Menu
- Parameters:
c
- the menu to listen to
- Returns:
- The PropertyChangeListener
public static ComponentUI createUI(JComponent c)
This method creates a new BasicMenuUI.
- Overrides:
- createUI in interface BasicMenuItemUI
- Parameters:
c
- The JComponent to create a UI for.
- Returns:
- A new BasicMenuUI.
public Dimension getMaximumSize(JComponent c)
Get the component's maximum size.
- Overrides:
- getMaximumSize in interface BasicMenuItemUI
- Parameters:
c
- The JComponent for which to get maximum size
- Returns:
- The maximum size of the component
protected String getPropertyPrefix()
Returns the prefix for entries in theUIDefaults
table.
- Overrides:
- getPropertyPrefix in interface BasicMenuItemUI
- Returns:
- "Menu"
protected void installDefaults()
Initializes any default properties that this UI has from the defaults for the Basic look and feel.
- Overrides:
- installDefaults in interface BasicMenuItemUI
protected void installKeyboardActions()
Installs any keyboard actions. The list of keys that need to be bound are listed in Basic look and feel's defaults.
- Overrides:
- installKeyboardActions in interface BasicMenuItemUI
protected void installListeners()
Creates and registers all the listeners for this UI delegate.
- Overrides:
- installListeners in interface BasicMenuItemUI
protected void uninstallDefaults()
This method uninstalls the defaults and sets any objects created during install to null
- Overrides:
- uninstallDefaults in interface BasicMenuItemUI
protected void uninstallKeyboardActions()
Uninstalls any keyboard actions. The list of keys used are listed in Basic look and feel's defaults.
- Overrides:
- uninstallKeyboardActions in interface BasicMenuItemUI
protected void uninstallListeners()
Unregisters all the listeners that this UI delegate was using. In addition, it will also null any listeners that it was using.
- Overrides:
- uninstallListeners in interface BasicMenuItemUI