A MenuSelectionManager owns the selection in menu hierarchy.
A MenuSelectionManager owns the selection in menu hierarchy.
(*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`
(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`
(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
(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`
(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`
(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[]`
(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[]`
(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`
(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`
(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`
(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[]`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close