Liking cljdoc? Tell your friends :D

javax.swing.MenuSelectionManager

A MenuSelectionManager owns the selection in menu hierarchy.

A MenuSelectionManager owns the selection in menu hierarchy.
raw docstring

*default-managerclj

(*default-manager)

Returns the default menu selection manager.

returns: a MenuSelectionManager object - javax.swing.MenuSelectionManager

Returns the default menu selection manager.

returns: a MenuSelectionManager object - `javax.swing.MenuSelectionManager`
raw docstring

->menu-selection-managerclj

(->menu-selection-manager)

Constructor.

Constructor.
raw docstring

add-change-listenerclj

(add-change-listener this l)

Adds a ChangeListener to the button.

l - the listener to add - javax.swing.event.ChangeListener

Adds a ChangeListener to the button.

l - the listener to add - `javax.swing.event.ChangeListener`
raw docstring

clear-selected-pathclj

(clear-selected-path this)

Tell the menu selection to close and unselect all the menu components. Call this method when a choice has been made

Tell the menu selection to close and unselect all the menu components. Call this method
when a choice has been made
raw docstring

component-for-pointclj

(component-for-point this source source-point)

Returns the component in the currently selected path which contains sourcePoint.

source - The component in whose coordinate space sourcePoint is given - java.awt.Component source-point - The point which is being tested - java.awt.Point

returns: The component in the currently selected path which contains sourcePoint (relative to the source component's coordinate space. If sourcePoint is not inside a component on the currently selected path, null is returned. - java.awt.Component

Returns the component in the currently selected path
 which contains sourcePoint.

source - The component in whose coordinate space sourcePoint is given - `java.awt.Component`
source-point - The point which is being tested - `java.awt.Point`

returns: The component in the currently selected path which
         contains sourcePoint (relative to the source component's
         coordinate space.  If sourcePoint is not inside a component
         on the currently selected path, null is returned. - `java.awt.Component`
raw docstring

component-part-of-current-menu?clj

(component-part-of-current-menu? this c)

Return true if c is part of the currently used menu

c - java.awt.Component

returns: boolean

Return true if c is part of the currently used menu

c - `java.awt.Component`

returns: `boolean`
raw docstring

get-change-listenersclj

(get-change-listeners this)

Returns an array of all the ChangeListeners added to this MenuSelectionManager with addChangeListener().

returns: all of the ChangeListeners added or an empty array if no listeners have been added - javax.swing.event.ChangeListener[]

Returns an array of all the ChangeListeners added
 to this MenuSelectionManager with addChangeListener().

returns: all of the ChangeListeners added or an empty
         array if no listeners have been added - `javax.swing.event.ChangeListener[]`
raw docstring

get-selected-pathclj

(get-selected-path this)

Returns the path to the currently selected menu item

returns: an array of MenuElement objects representing the selected path - javax.swing.MenuElement[]

Returns the path to the currently selected menu item

returns: an array of MenuElement objects representing the selected path - `javax.swing.MenuElement[]`
raw docstring

process-key-eventclj

(process-key-event this e)

When a MenuElement receives an event from a KeyListener, it should never process the event directly. Instead all MenuElements should call this method with the event.

e - a KeyEvent object - java.awt.event.KeyEvent

When a MenuElement receives an event from a KeyListener, it should never process the event
 directly. Instead all MenuElements should call this method with the event.

e - a KeyEvent object - `java.awt.event.KeyEvent`
raw docstring

process-mouse-eventclj

(process-mouse-event this event)

When a MenuElement receives an event from a MouseListener, it should never process the event directly. Instead all MenuElements should call this method with the event.

event - a MouseEvent object - java.awt.event.MouseEvent

When a MenuElement receives an event from a MouseListener, it should never process the event
 directly. Instead all MenuElements should call this method with the event.

event - a MouseEvent object - `java.awt.event.MouseEvent`
raw docstring

remove-change-listenerclj

(remove-change-listener this l)

Removes a ChangeListener from the button.

l - the listener to remove - javax.swing.event.ChangeListener

Removes a ChangeListener from the button.

l - the listener to remove - `javax.swing.event.ChangeListener`
raw docstring

set-selected-pathclj

(set-selected-path this path)

Changes the selection in the menu hierarchy. The elements in the array are sorted in order from the root menu element to the currently selected menu element.

Note that this method is public but is used by the look and feel engine and should not be called by client applications.

path - an array of MenuElement objects specifying the selected path - javax.swing.MenuElement[]

Changes the selection in the menu hierarchy.  The elements
 in the array are sorted in order from the root menu
 element to the currently selected menu element.

 Note that this method is public but is used by the look and
 feel engine and should not be called by client applications.

path - an array of MenuElement objects specifying the selected path - `javax.swing.MenuElement[]`
raw docstring

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

× close