Liking cljdoc? Tell your friends :D

jdk.awt.MenuComponent

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.

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.
raw docstring

->menu-componentclj

(->menu-component)

Constructor.

Creates a MenuComponent.

throws: java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true

Constructor.

Creates a MenuComponent.

throws: java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
raw docstring

dispatch-eventclj

(dispatch-event this e)

Delivers an event to this component or one of its sub components.

e - the event - java.awt.AWTEvent

Delivers an event to this component or one of its sub components.

e - the event - `java.awt.AWTEvent`
raw docstring

get-accessible-contextclj

(get-accessible-context this)

Gets the AccessibleContext associated with this MenuComponent.

The method implemented by this base class returns null. Classes that extend MenuComponent should implement this method to return the AccessibleContext associated with the subclass.

returns: the AccessibleContext of this MenuComponent - javax.accessibility.AccessibleContext

Gets the AccessibleContext associated with
 this MenuComponent.

 The method implemented by this base class returns null.
 Classes that extend MenuComponent
 should implement this method to return the
 AccessibleContext associated with the subclass.

returns: the AccessibleContext of this
     MenuComponent - `javax.accessibility.AccessibleContext`
raw docstring

get-fontclj

(get-font this)

Gets the font used for this menu component.

returns: the font used in this menu component, if there is one; null otherwise - java.awt.Font

Gets the font used for this menu component.

returns: the font used in this menu component, if there is one;
                  null otherwise - `java.awt.Font`
raw docstring

get-nameclj

(get-name this)

Gets the name of the menu component.

returns: the name of the menu component - java.lang.String

Gets the name of the menu component.

returns: the name of the menu component - `java.lang.String`
raw docstring

get-parentclj

(get-parent this)

Returns the parent container for this menu component.

returns: the menu component containing this menu component, or null if this menu component is the outermost component, the menu bar itself - java.awt.MenuContainer

Returns the parent container for this menu component.

returns: the menu component containing this menu component,
                 or null if this menu component
                 is the outermost component, the menu bar itself - `java.awt.MenuContainer`
raw docstring

get-peerclj

(get-peer this)

Deprecated. As of JDK version 1.1, programs should not directly manipulate peers.

returns: java.awt.peer.MenuComponentPeer

Deprecated. As of JDK version 1.1,
 programs should not directly manipulate peers.

returns: `java.awt.peer.MenuComponentPeer`
raw docstring

post-eventclj

(post-event this evt)

Deprecated. As of JDK version 1.1, replaced by dispatchEvent.

evt - the event which is to take place - java.awt.Event

returns: boolean

Deprecated. As of JDK version 1.1, replaced by dispatchEvent.

evt - the event which is to take place - `java.awt.Event`

returns: `boolean`
raw docstring

remove-notifyclj

(remove-notify this)

Removes the menu component's peer. The peer allows us to modify the appearance of the menu component without changing the functionality of the menu component.

Removes the menu component's peer.  The peer allows us to modify the
appearance of the menu component without changing the functionality of
the menu component.
raw docstring

set-fontclj

(set-font this f)

Sets the font to be used for this menu component to the specified font. This font is also used by all subcomponents of this menu component, unless those subcomponents specify a different font.

Some platforms may not support setting of all font attributes of a menu component; in such cases, calling setFont will have no effect on the unsupported font attributes of this menu component. Unless subcomponents of this menu component specify a different font, this font will be used by those subcomponents if supported by the underlying platform.

f - the font to be set - java.awt.Font

Sets the font to be used for this menu component to the specified
 font. This font is also used by all subcomponents of this menu
 component, unless those subcomponents specify a different font.

 Some platforms may not support setting of all font attributes
 of a menu component; in such cases, calling setFont
 will have no effect on the unsupported font attributes of this
 menu component.  Unless subcomponents of this menu component
 specify a different font, this font will be used by those
 subcomponents if supported by the underlying platform.

f - the font to be set - `java.awt.Font`
raw docstring

set-nameclj

(set-name this name)

Sets the name of the component to the specified string.

name - the name of the menu component - java.lang.String

Sets the name of the component to the specified string.

name - the name of the menu component - `java.lang.String`
raw docstring

to-stringclj

(to-string this)

Returns a representation of this menu component as a string.

returns: a string representation of this menu component - java.lang.String

Returns a representation of this menu component as a string.

returns: a string representation of this menu component - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close