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 JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private MenuSelectionManager | |
| private MenuElement[] |
| Access | Constructor and Description |
|---|---|
| public | MenuDragMouseEvent(Component
the Component that originated the event
(typically source, int this)an int specifying the type of event, as defined
in id, long java.a long identifying the time the event occurred when, int an int specifying any modifier keys held down,
as specified in modifiers, int java.an int specifying the horizontal position at which
the event occurred, in pixels x, int an int specifying the vertical position at which
the event occurred, in pixels y, int an int specifying the number of mouse-clicks clickCount, boolean a boolean -- true if the event {should?/did?}
trigger a popup popupTrigger, MenuElement[] an array of MenuElement objects specifying a path
to a menu item affected by the drag p, MenuSelectionManager a MenuSelectionManager object that handles selections m)Constructs a MenuDragMouseEvent object. |
| public | MenuDragMouseEvent(Component
the Component that originated the event
(typically source, int this)an int specifying the type of event, as defined
in id, long java.a long identifying the time the event occurred when, int an int specifying any modifier keys held down,
as specified in modifiers, int java.an int specifying the horizontal position at which
the event occurred, in pixels x, int an int specifying the vertical position at which
the event occurred, in pixels y, int an int specifying the horizontal absolute position at which
the event occurred, in pixels xAbs, int an int specifying the vertical absolute position at which
the event occurred, in pixels yAbs, int an int specifying the number of mouse-clicks clickCount, boolean a boolean -- true if the event {should?/did?}
trigger a popup popupTrigger, MenuElement[] an array of MenuElement objects specifying a path
to a menu item affected by the drag p, MenuSelectionManager a MenuSelectionManager object that handles selections m)Constructs a MenuDragMouseEvent object. |
| Modifier and Type | Method and Description |
|---|---|
| public MenuSelectionManager | Returns: a MenuSelectionManager objectReturns the current menu selection manager. |
| public MenuElement[] | Returns: an array of MenuElement objects representing the path valueReturns the path to the selected menu item. |
| manager | back to summary |
|---|---|
| private MenuSelectionManager manager | |
| path | back to summary |
|---|---|
| private MenuElement[] path | |
| MenuDragMouseEvent | back to summary |
|---|---|
| public MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object. Absolute coordinates xAbs and yAbs are set to source's location on screen plus relative coordinates x and y. xAbs and yAbs are set to zero if the source is not showing.
| |
| MenuDragMouseEvent | back to summary |
|---|---|
| public MenuDragMouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, MenuElement[] p, MenuSelectionManager m) Constructs a MenuDragMouseEvent object. Even if inconsistent values for relative and absolute coordinates are passed to the constructor, the MenuDragMouseEvent instance is still created.
| |
| getMenuSelectionManager | back to summary |
|---|---|
| public MenuSelectionManager getMenuSelectionManager() Returns the current menu selection manager.
| |
| getPath | back to summary |
|---|---|
| public MenuElement[] getPath() Returns the path to the selected menu item.
| |