MouseEvent interface.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private short | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private EventTarget | |
| private int | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | getAltKey()
Implements org. |
| public short | getButton()
Implements org. button is used to indicate which mouse button
changed state.
|
| public int | getClientX()
Implements org. |
| public int | getClientY()
Implements org. |
| public boolean | getCtrlKey()
Implements org. |
| public boolean | getMetaKey()
Implements org. |
| public EventTarget | getRelatedTarget()
Implements org. EventTarget related to a UI
event.
|
| public int | getScreenX()
Implements org. |
| public int | getScreenY()
Implements org. |
| public boolean | getShiftKey()
Implements org. |
| public void | initMouseEvent(String
Specifies the event type. typeArg, boolean Specifies whether or not the event can bubble. canBubbleArg, boolean Specifies whether or not the event's default
action can be prevented. cancelableArg, AbstractView Specifies the viewArg, int Event's
AbstractView.Specifies the detailArg, int Event's mouse click count.Specifies the screenXArg, int Event's screen x
coordinateSpecifies the screenYArg, int Event's screen y
coordinateSpecifies the clientXArg, int Event's client x
coordinateSpecifies the clientYArg, boolean Event's client y
coordinateSpecifies whether or not control key was depressed
during the ctrlKeyArg, boolean Event.Specifies whether or not alt key was depressed during
the altKeyArg, boolean Event.Specifies whether or not shift key was depressed
during the shiftKeyArg, boolean Event.Specifies whether or not meta key was depressed
during the metaKeyArg, short Event.Specifies the buttonArg, EventTarget Event's mouse button.Specifies the relatedTargetArg)Event's related
EventTarget.Implements org. initMouseEvent method is used to initialize the value
of a MouseEvent created through the
DocumentEvent interface.
|
| fAltKey | back to summary |
|---|---|
| private boolean fAltKey | |
| fButton | back to summary |
|---|---|
| private short fButton | |
| fClientX | back to summary |
|---|---|
| private int fClientX | |
| fClientY | back to summary |
|---|---|
| private int fClientY | |
| fCtrlKey | back to summary |
|---|---|
| private boolean fCtrlKey | |
| fMetaKey | back to summary |
|---|---|
| private boolean fMetaKey | |
| fRelatedTarget | back to summary |
|---|---|
| private EventTarget fRelatedTarget | |
| fScreenX | back to summary |
|---|---|
| private int fScreenX | |
| fScreenY | back to summary |
|---|---|
| private int fScreenY | |
| fShiftKey | back to summary |
|---|---|
| private boolean fShiftKey | |
| MouseEventImpl | back to summary |
|---|---|
| public MouseEventImpl() | |
| getAltKey | back to summary |
|---|---|
| public boolean getAltKey() Implements org. Doc from org. Used to indicate whether the 'alt' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name. | |
| getButton | back to summary |
|---|---|
| public short getButton() Implements org. Doc from org. During mouse events caused by the depression or release of a mouse
button, | |
| getClientX | back to summary |
|---|---|
| public int getClientX() Implements org. Doc from org. The horizontal coordinate at which the event occurred relative to the DOM implementation's client area. | |
| getClientY | back to summary |
|---|---|
| public int getClientY() Implements org. Doc from org. The vertical coordinate at which the event occurred relative to the DOM implementation's client area. | |
| getCtrlKey | back to summary |
|---|---|
| public boolean getCtrlKey() Implements org. Doc from org. Used to indicate whether the 'ctrl' key was depressed during the firing of the event. | |
| getMetaKey | back to summary |
|---|---|
| public boolean getMetaKey() Implements org. Doc from org. Used to indicate whether the 'meta' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name. | |
| getRelatedTarget | back to summary |
|---|---|
| public EventTarget getRelatedTarget() Implements org. Doc from org. Used to identify a secondary | |
| getScreenX | back to summary |
|---|---|
| public int getScreenX() Implements org. Doc from org. The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system. | |
| getScreenY | back to summary |
|---|---|
| public int getScreenY() Implements org. Doc from org. The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system. | |
| getShiftKey | back to summary |
|---|---|
| public boolean getShiftKey() Implements org. Doc from org. Used to indicate whether the 'shift' key was depressed during the firing of the event. | |
| initMouseEvent | back to summary |
|---|---|
| public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg) Implements org. Doc from org. The
| |