javax.swing.event
Class MenuDragMouseEvent

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by java.awt.AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent 
          extended by java.awt.event.ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent 
              extended by java.awt.event.InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent 
                  extended by java.awt.event.MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent 
                      extended by javax.swing.event.MenuDragMouseEvent
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class MenuDragMouseEvent
extends MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent

MenuDragMouseEvent is used to notify interested parties that the menu element has received a MouseEvent forwarded to it under drag conditions.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.event.MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent
BUTTON1 sample code for java.awt.event.MouseEvent.BUTTON1 definition code for java.awt.event.MouseEvent.BUTTON1 , BUTTON2 sample code for java.awt.event.MouseEvent.BUTTON2 definition code for java.awt.event.MouseEvent.BUTTON2 , BUTTON3 sample code for java.awt.event.MouseEvent.BUTTON3 definition code for java.awt.event.MouseEvent.BUTTON3 , MOUSE_CLICKED sample code for java.awt.event.MouseEvent.MOUSE_CLICKED definition code for java.awt.event.MouseEvent.MOUSE_CLICKED , MOUSE_DRAGGED sample code for java.awt.event.MouseEvent.MOUSE_DRAGGED definition code for java.awt.event.MouseEvent.MOUSE_DRAGGED , MOUSE_ENTERED sample code for java.awt.event.MouseEvent.MOUSE_ENTERED definition code for java.awt.event.MouseEvent.MOUSE_ENTERED , MOUSE_EXITED sample code for java.awt.event.MouseEvent.MOUSE_EXITED definition code for java.awt.event.MouseEvent.MOUSE_EXITED , MOUSE_FIRST sample code for java.awt.event.MouseEvent.MOUSE_FIRST definition code for java.awt.event.MouseEvent.MOUSE_FIRST , MOUSE_LAST sample code for java.awt.event.MouseEvent.MOUSE_LAST definition code for java.awt.event.MouseEvent.MOUSE_LAST , MOUSE_MOVED sample code for java.awt.event.MouseEvent.MOUSE_MOVED definition code for java.awt.event.MouseEvent.MOUSE_MOVED , MOUSE_PRESSED sample code for java.awt.event.MouseEvent.MOUSE_PRESSED definition code for java.awt.event.MouseEvent.MOUSE_PRESSED , MOUSE_RELEASED sample code for java.awt.event.MouseEvent.MOUSE_RELEASED definition code for java.awt.event.MouseEvent.MOUSE_RELEASED , MOUSE_WHEEL sample code for java.awt.event.MouseEvent.MOUSE_WHEEL definition code for java.awt.event.MouseEvent.MOUSE_WHEEL , NOBUTTON sample code for java.awt.event.MouseEvent.NOBUTTON definition code for java.awt.event.MouseEvent.NOBUTTON
 
Fields inherited from class java.awt.event.InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent
ALT_DOWN_MASK sample code for java.awt.event.InputEvent.ALT_DOWN_MASK definition code for java.awt.event.InputEvent.ALT_DOWN_MASK , ALT_GRAPH_DOWN_MASK sample code for java.awt.event.InputEvent.ALT_GRAPH_DOWN_MASK definition code for java.awt.event.InputEvent.ALT_GRAPH_DOWN_MASK , ALT_GRAPH_MASK sample code for java.awt.event.InputEvent.ALT_GRAPH_MASK definition code for java.awt.event.InputEvent.ALT_GRAPH_MASK , ALT_MASK sample code for java.awt.event.InputEvent.ALT_MASK definition code for java.awt.event.InputEvent.ALT_MASK , BUTTON1_DOWN_MASK sample code for java.awt.event.InputEvent.BUTTON1_DOWN_MASK definition code for java.awt.event.InputEvent.BUTTON1_DOWN_MASK , BUTTON1_MASK sample code for java.awt.event.InputEvent.BUTTON1_MASK definition code for java.awt.event.InputEvent.BUTTON1_MASK , BUTTON2_DOWN_MASK sample code for java.awt.event.InputEvent.BUTTON2_DOWN_MASK definition code for java.awt.event.InputEvent.BUTTON2_DOWN_MASK , BUTTON2_MASK sample code for java.awt.event.InputEvent.BUTTON2_MASK definition code for java.awt.event.InputEvent.BUTTON2_MASK , BUTTON3_DOWN_MASK sample code for java.awt.event.InputEvent.BUTTON3_DOWN_MASK definition code for java.awt.event.InputEvent.BUTTON3_DOWN_MASK , BUTTON3_MASK sample code for java.awt.event.InputEvent.BUTTON3_MASK definition code for java.awt.event.InputEvent.BUTTON3_MASK , CTRL_DOWN_MASK sample code for java.awt.event.InputEvent.CTRL_DOWN_MASK definition code for java.awt.event.InputEvent.CTRL_DOWN_MASK , CTRL_MASK sample code for java.awt.event.InputEvent.CTRL_MASK definition code for java.awt.event.InputEvent.CTRL_MASK , META_DOWN_MASK sample code for java.awt.event.InputEvent.META_DOWN_MASK definition code for java.awt.event.InputEvent.META_DOWN_MASK , META_MASK sample code for java.awt.event.InputEvent.META_MASK definition code for java.awt.event.InputEvent.META_MASK , SHIFT_DOWN_MASK sample code for java.awt.event.InputEvent.SHIFT_DOWN_MASK definition code for java.awt.event.InputEvent.SHIFT_DOWN_MASK , SHIFT_MASK sample code for java.awt.event.InputEvent.SHIFT_MASK definition code for java.awt.event.InputEvent.SHIFT_MASK
 
Fields inherited from class java.awt.event.ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent
COMPONENT_FIRST sample code for java.awt.event.ComponentEvent.COMPONENT_FIRST definition code for java.awt.event.ComponentEvent.COMPONENT_FIRST , COMPONENT_HIDDEN sample code for java.awt.event.ComponentEvent.COMPONENT_HIDDEN definition code for java.awt.event.ComponentEvent.COMPONENT_HIDDEN , COMPONENT_LAST sample code for java.awt.event.ComponentEvent.COMPONENT_LAST definition code for java.awt.event.ComponentEvent.COMPONENT_LAST , COMPONENT_MOVED sample code for java.awt.event.ComponentEvent.COMPONENT_MOVED definition code for java.awt.event.ComponentEvent.COMPONENT_MOVED , COMPONENT_RESIZED sample code for java.awt.event.ComponentEvent.COMPONENT_RESIZED definition code for java.awt.event.ComponentEvent.COMPONENT_RESIZED , COMPONENT_SHOWN sample code for java.awt.event.ComponentEvent.COMPONENT_SHOWN definition code for java.awt.event.ComponentEvent.COMPONENT_SHOWN
 
Fields inherited from class java.awt.AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent
ACTION_EVENT_MASK sample code for java.awt.AWTEvent.ACTION_EVENT_MASK definition code for java.awt.AWTEvent.ACTION_EVENT_MASK , ADJUSTMENT_EVENT_MASK sample code for java.awt.AWTEvent.ADJUSTMENT_EVENT_MASK definition code for java.awt.AWTEvent.ADJUSTMENT_EVENT_MASK , COMPONENT_EVENT_MASK sample code for java.awt.AWTEvent.COMPONENT_EVENT_MASK definition code for java.awt.AWTEvent.COMPONENT_EVENT_MASK , consumed sample code for java.awt.AWTEvent.consumed definition code for java.awt.AWTEvent.consumed , CONTAINER_EVENT_MASK sample code for java.awt.AWTEvent.CONTAINER_EVENT_MASK definition code for java.awt.AWTEvent.CONTAINER_EVENT_MASK , FOCUS_EVENT_MASK sample code for java.awt.AWTEvent.FOCUS_EVENT_MASK definition code for java.awt.AWTEvent.FOCUS_EVENT_MASK , HIERARCHY_BOUNDS_EVENT_MASK sample code for java.awt.AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK definition code for java.awt.AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK , HIERARCHY_EVENT_MASK sample code for java.awt.AWTEvent.HIERARCHY_EVENT_MASK definition code for java.awt.AWTEvent.HIERARCHY_EVENT_MASK , id sample code for java.awt.AWTEvent.id definition code for java.awt.AWTEvent.id , INPUT_METHOD_EVENT_MASK sample code for java.awt.AWTEvent.INPUT_METHOD_EVENT_MASK definition code for java.awt.AWTEvent.INPUT_METHOD_EVENT_MASK , INVOCATION_EVENT_MASK sample code for java.awt.AWTEvent.INVOCATION_EVENT_MASK definition code for java.awt.AWTEvent.INVOCATION_EVENT_MASK , ITEM_EVENT_MASK sample code for java.awt.AWTEvent.ITEM_EVENT_MASK definition code for java.awt.AWTEvent.ITEM_EVENT_MASK , KEY_EVENT_MASK sample code for java.awt.AWTEvent.KEY_EVENT_MASK definition code for java.awt.AWTEvent.KEY_EVENT_MASK , MOUSE_EVENT_MASK sample code for java.awt.AWTEvent.MOUSE_EVENT_MASK definition code for java.awt.AWTEvent.MOUSE_EVENT_MASK , MOUSE_MOTION_EVENT_MASK sample code for java.awt.AWTEvent.MOUSE_MOTION_EVENT_MASK definition code for java.awt.AWTEvent.MOUSE_MOTION_EVENT_MASK , MOUSE_WHEEL_EVENT_MASK sample code for java.awt.AWTEvent.MOUSE_WHEEL_EVENT_MASK definition code for java.awt.AWTEvent.MOUSE_WHEEL_EVENT_MASK , PAINT_EVENT_MASK sample code for java.awt.AWTEvent.PAINT_EVENT_MASK definition code for java.awt.AWTEvent.PAINT_EVENT_MASK , RESERVED_ID_MAX sample code for java.awt.AWTEvent.RESERVED_ID_MAX definition code for java.awt.AWTEvent.RESERVED_ID_MAX , TEXT_EVENT_MASK sample code for java.awt.AWTEvent.TEXT_EVENT_MASK definition code for java.awt.AWTEvent.TEXT_EVENT_MASK , WINDOW_EVENT_MASK sample code for java.awt.AWTEvent.WINDOW_EVENT_MASK definition code for java.awt.AWTEvent.WINDOW_EVENT_MASK , WINDOW_FOCUS_EVENT_MASK sample code for java.awt.AWTEvent.WINDOW_FOCUS_EVENT_MASK definition code for java.awt.AWTEvent.WINDOW_FOCUS_EVENT_MASK , WINDOW_STATE_EVENT_MASK sample code for java.awt.AWTEvent.WINDOW_STATE_EVENT_MASK definition code for java.awt.AWTEvent.WINDOW_STATE_EVENT_MASK
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
MenuDragMouseEvent sample code for javax.swing.event.MenuDragMouseEvent.MenuDragMouseEvent(java.awt.Component, int, long, int, int, int, int, boolean, javax.swing.MenuElement[], javax.swing.MenuSelectionManager) definition code for javax.swing.event.MenuDragMouseEvent.MenuDragMouseEvent(java.awt.Component, int, long, int, int, int, int, boolean, javax.swing.MenuElement[], javax.swing.MenuSelectionManager) (Component sample code for java.awt.Component definition code for java.awt.Component  source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement sample code for javax.swing.MenuElement definition code for javax.swing.MenuElement [] p, MenuSelectionManager sample code for javax.swing.MenuSelectionManager definition code for javax.swing.MenuSelectionManager  m)
          Constructs a MenuDragMouseEvent object.
 
Method Summary
 MenuSelectionManager sample code for javax.swing.MenuSelectionManager definition code for javax.swing.MenuSelectionManager getMenuSelectionManager sample code for javax.swing.event.MenuDragMouseEvent.getMenuSelectionManager() definition code for javax.swing.event.MenuDragMouseEvent.getMenuSelectionManager() ()
          Returns the current menu selection manager.
 MenuElement sample code for javax.swing.MenuElement definition code for javax.swing.MenuElement [] getPath sample code for javax.swing.event.MenuDragMouseEvent.getPath() definition code for javax.swing.event.MenuDragMouseEvent.getPath() ()
          Returns the path to the selected menu item.
 
Methods inherited from class java.awt.event.MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent
getButton sample code for java.awt.event.MouseEvent.getButton() definition code for java.awt.event.MouseEvent.getButton() , getClickCount sample code for java.awt.event.MouseEvent.getClickCount() definition code for java.awt.event.MouseEvent.getClickCount() , getMouseModifiersText sample code for java.awt.event.MouseEvent.getMouseModifiersText(int) definition code for java.awt.event.MouseEvent.getMouseModifiersText(int) , getPoint sample code for java.awt.event.MouseEvent.getPoint() definition code for java.awt.event.MouseEvent.getPoint() , getX sample code for java.awt.event.MouseEvent.getX() definition code for java.awt.event.MouseEvent.getX() , getY sample code for java.awt.event.MouseEvent.getY() definition code for java.awt.event.MouseEvent.getY() , isPopupTrigger sample code for java.awt.event.MouseEvent.isPopupTrigger() definition code for java.awt.event.MouseEvent.isPopupTrigger() , paramString sample code for java.awt.event.MouseEvent.paramString() definition code for java.awt.event.MouseEvent.paramString() , translatePoint sample code for java.awt.event.MouseEvent.translatePoint(int, int) definition code for java.awt.event.MouseEvent.translatePoint(int, int)
 
Methods inherited from class java.awt.event.InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent
consume sample code for java.awt.event.InputEvent.consume() definition code for java.awt.event.InputEvent.consume() , getModifiers sample code for java.awt.event.InputEvent.getModifiers() definition code for java.awt.event.InputEvent.getModifiers() , getModifiersEx sample code for java.awt.event.InputEvent.getModifiersEx() definition code for java.awt.event.InputEvent.getModifiersEx() , getModifiersExText sample code for java.awt.event.InputEvent.getModifiersExText(int) definition code for java.awt.event.InputEvent.getModifiersExText(int) , getWhen sample code for java.awt.event.InputEvent.getWhen() definition code for java.awt.event.InputEvent.getWhen() , isAltDown sample code for java.awt.event.InputEvent.isAltDown() definition code for java.awt.event.InputEvent.isAltDown() , isAltGraphDown sample code for java.awt.event.InputEvent.isAltGraphDown() definition code for java.awt.event.InputEvent.isAltGraphDown() , isConsumed sample code for java.awt.event.InputEvent.isConsumed() definition code for java.awt.event.InputEvent.isConsumed() , isControlDown sample code for java.awt.event.InputEvent.isControlDown() definition code for java.awt.event.InputEvent.isControlDown() , isMetaDown sample code for java.awt.event.InputEvent.isMetaDown() definition code for java.awt.event.InputEvent.isMetaDown() , isShiftDown sample code for java.awt.event.InputEvent.isShiftDown() definition code for java.awt.event.InputEvent.isShiftDown()
 
Methods inherited from class java.awt.event.ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent
getComponent sample code for java.awt.event.ComponentEvent.getComponent() definition code for java.awt.event.ComponentEvent.getComponent()
 
Methods inherited from class java.awt.AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent
getID sample code for java.awt.AWTEvent.getID() definition code for java.awt.AWTEvent.getID() , setSource sample code for java.awt.AWTEvent.setSource(java.lang.Object) definition code for java.awt.AWTEvent.setSource(java.lang.Object) , toString sample code for java.awt.AWTEvent.toString() definition code for java.awt.AWTEvent.toString()
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

MenuDragMouseEvent sample code for javax.swing.event.MenuDragMouseEvent(java.awt.Component, int, long, int, int, int, int, boolean, javax.swing.MenuElement[], javax.swing.MenuSelectionManager) definition code for javax.swing.event.MenuDragMouseEvent(java.awt.Component, int, long, int, int, int, int, boolean, javax.swing.MenuElement[], javax.swing.MenuSelectionManager)

public MenuDragMouseEvent(Component sample code for java.awt.Component definition code for java.awt.Component  source,
                          int id,
                          long when,
                          int modifiers,
                          int x,
                          int y,
                          int clickCount,
                          boolean popupTrigger,
                          MenuElement sample code for javax.swing.MenuElement definition code for javax.swing.MenuElement [] p,
                          MenuSelectionManager sample code for javax.swing.MenuSelectionManager definition code for javax.swing.MenuSelectionManager  m)
Constructs a MenuDragMouseEvent object.

Parameters:
source - the Component that originated the event (typically this)
id - an int specifying the type of event, as defined in MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent
when - a long identifying the time the event occurred
modifiers - an int specifying any modifier keys held down, as specified in InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent
x - an int specifying the horizontal position at which the event occurred, in pixels
y - an int specifying the vertical position at which the event occurred, in pixels
clickCount - an int specifying the number of mouse-clicks
popupTrigger - a boolean -- true if the event {should?/did?} trigger a popup
p - an array of MenuElement objects specifying a path to a menu item affected by the drag
m - a MenuSelectionManager object that handles selections
Method Detail

getPath sample code for javax.swing.event.MenuDragMouseEvent.getPath() definition code for javax.swing.event.MenuDragMouseEvent.getPath()

public MenuElement sample code for javax.swing.MenuElement definition code for javax.swing.MenuElement [] getPath()
Returns the path to the selected menu item.

Returns:
an array of MenuElement objects representing the path value

getMenuSelectionManager sample code for javax.swing.event.MenuDragMouseEvent.getMenuSelectionManager() definition code for javax.swing.event.MenuDragMouseEvent.getMenuSelectionManager()

public MenuSelectionManager sample code for javax.swing.MenuSelectionManager definition code for javax.swing.MenuSelectionManager  getMenuSelectionManager()
Returns the current menu selection manager.

Returns:
a MenuSelectionManager object