java.awt

Class MenuComponent

  • java.lang.Object
    • java.awt.MenuComponent
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    MenuBar, MenuItem
    public abstract class MenuComponent extends java.lang.Object implements java.io.Serializable
    The abstract class MenuComponent is the superclass of all menu-related components. In this respect, the class MenuComponent is analogous to the abstract superclass Component for AWT components.

    Menu components receive and process AWT events, just as components do, through the method processEvent.

    Since:
    JDK1.0
    See Also:
    Serialized Form
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator dispatchEvent Reveal DetailHide Detail
      Delivers an event to this component or one of its sub components.
      Ordinary member indicator getAccessibleContext Reveal DetailHide Detail
      Gets the AccessibleContext associated with this MenuComponent.
      Ordinary member indicator getFont Reveal DetailHide Detail
      Gets the font used for this menu component.
      Ordinary member indicator getName Reveal DetailHide Detail
      Gets the name of the menu component.
      Ordinary member indicator getParent Reveal DetailHide Detail
      Returns the parent container for this menu component.
      Ordinary member indicator getPeer Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, programs should not directly manipulate peers.
      Ordinary member indicator postEvent Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, replaced by dispatchEvent.
      Ordinary member indicator removeNotify Reveal DetailHide Detail
      Removes the menu component's peer.
      Ordinary member indicator setFont Reveal DetailHide Detail
      Sets the font to be used for this menu component to the specified font.
      Ordinary member indicator setName Reveal DetailHide Detail
      Sets the name of the component to the specified string.
      Overridden member indicator toString Reveal DetailHide Detail
      Returns a representation of this menu component as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge