MenuDragMouseEventpublic class MenuDragMouseEvent extends 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 {@link java.beans.XMLEncoder}. |
Fields Summary |
---|
private MenuElement[] | path | private MenuSelectionManager | manager |
Constructors 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.
super(source, id, when, modifiers, x, y, clickCount, popupTrigger);
path = p;
manager = m;
| 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.
super(source, id, when, modifiers, x, y, xAbs, yAbs, clickCount,
popupTrigger, MouseEvent.NOBUTTON);
path = p;
manager = m;
|
|