Package Summary  Overview Summary

class:BasicMenuUI [NONE]

  • Direct Known Subclasses:
    SynthMenuUI

    public class BasicMenuUI
    extends BasicMenuItemUI
    
    A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.

field:changeListener [NONE]

  • changeListener

    protected ChangeListener changeListener
    The instance of ChangeListener.

field:menuListener [NONE]

  • menuListener

    protected MenuListener menuListener
    The instance of MenuListener.

constructor:<init>() [NONE]

  • BasicMenuUI

    public BasicMenuUI()

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static ComponentUI createUI​(JComponent x)
    Constructs a new instance of BasicMenuUI.
    Parameters:
    x - a component
    Returns:
    a new instance of BasicMenuUI

method:installDefaults() [NONE]

method:getPropertyPrefix() [NONE]

method:installListeners() [NONE]

method:installKeyboardActions() [NONE]

method:uninstallKeyboardActions() [NONE]

method:createMouseInputListener(javax.swing.JComponent) [NONE]

method:createMenuListener(javax.swing.JComponent) [NONE]

  • createMenuListener

    protected MenuListener createMenuListener​(JComponent c)
    Returns an instance of MenuListener.
    Parameters:
    c - a component
    Returns:
    an instance of MenuListener

method:createChangeListener(javax.swing.JComponent) [NONE]

  • createChangeListener

    protected ChangeListener createChangeListener​(JComponent c)
    Returns an instance of ChangeListener.
    Parameters:
    c - a component
    Returns:
    an instance of ChangeListener

method:createPropertyChangeListener(javax.swing.JComponent) [NONE]

  • createPropertyChangeListener

    protected PropertyChangeListener createPropertyChangeListener​(JComponent c)
    Description copied from class: BasicMenuItemUI
    Creates a PropertyChangeListener which will be added to the menu item. If this method returns null then it will not be added to the menu item.
    Overrides:
    createPropertyChangeListener in class BasicMenuItemUI
    Parameters:
    c - a component
    Returns:
    an instance of a PropertyChangeListener or null

method:uninstallDefaults() [NONE]

method:uninstallListeners() [NONE]

method:createMenuDragMouseListener(javax.swing.JComponent) [NONE]

method:createMenuKeyListener(javax.swing.JComponent) [NONE]

method:getMinimumSize(javax.swing.JComponent) [NONE]

method:getMaximumSize(javax.swing.JComponent) [NONE]

  • getMaximumSize

    public Dimension getMaximumSize​(JComponent c)
    Description copied from class: ComponentUI
    Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.
    Overrides:
    getMaximumSize in class BasicMenuItemUI
    Parameters:
    c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
    Returns:
    a Dimension object or null
    See Also:
    JComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)

method:setupPostTimer(javax.swing.JMenu) [NONE]

  • setupPostTimer

    protected void setupPostTimer​(JMenu menu)
    Sets timer to the menu.
    Parameters:
    menu - an instance of JMenu.

© 2018 Oracle Corporation and/or its affiliates