Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.MenuComponent
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
.
Constructor Summary | |
MenuComponent()
|
Method Summary | |
void | dispatchEvent(AWTEvent e)
|
Font | getFont()
|
String | getName()
|
MenuContainer | getParent()
|
java.awt.peer.MenuComponentPeer | getPeer()
|
String | paramString()
|
boolean | postEvent(Event evt)
|
void | processEvent(AWTEvent e)
|
void | removeNotify()
|
void | setFont(Font f)
|
void | setName(String name)
|
String | toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MenuComponent()
Method Detail |
public String getName()
public void setName(String name)
name
- the name of the menu component.
public MenuContainer getParent()
null
if this menu component
is the outermost component, the menu bar itself.public java.awt.peer.MenuComponentPeer getPeer()
public Font getFont()
null
otherwise.public void setFont(Font f)
f
- the font to be set.
public void removeNotify()
public boolean postEvent(Event evt)
dispatchEvent(AWTEvent)
.
evt
- the event which is to take place
public final void dispatchEvent(AWTEvent e)
protected void processEvent(AWTEvent e)
e
- the event
protected String paramString()
public String toString()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |