Widget.addDomHandler(H, com.google.gwt.event.dom.client.DomEvent.Type<H>)
@Deprecated public class KeyboardListenerCollection extends ArrayList<KeyboardListener>
ArrayList
assumes that all objects added to it will be of
type KeyboardListener
.modCount
Constructor and Description |
---|
KeyboardListenerCollection()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
fireKeyboardEvent(Widget sender,
Event event)
Deprecated.
Automatically fires the appropriate keyboard event to all listeners.
|
void |
fireKeyDown(Widget sender,
char keyCode,
int modifiers)
Deprecated.
Fires a keyDown event to all listeners.
|
void |
fireKeyPress(Widget sender,
char key,
int modifiers)
Deprecated.
Fires a keyDown event to all listeners.
|
void |
fireKeyUp(Widget sender,
char keyCode,
int modifiers)
Deprecated.
Fires a keyDown event to all listeners.
|
static int |
getKeyboardModifiers(Event event)
Deprecated.
Gets the keyboard modifiers associated with a DOMEvent.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
equals, hashCode, iterator, listIterator, listIterator, subList
containsAll, removeAll, retainAll, toString
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
public static int getKeyboardModifiers(Event event)
event
- the event.KeyboardListener
.public void fireKeyboardEvent(Widget sender, Event event)
sender
- the widget sending the event.event
- the Event received by the widget.public void fireKeyDown(Widget sender, char keyCode, int modifiers)
sender
- the widget sending the event.keyCode
- the keyCode to send with the event.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
KeyboardListener.MODIFIER_SHIFT
,
KeyboardListener.MODIFIER_CTRL
, and
KeyboardListener.MODIFIER_ALT
.public void fireKeyPress(Widget sender, char key, int modifiers)
sender
- the widget sending the event.key
- the key to send with the event.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
KeyboardListener.MODIFIER_SHIFT
,
KeyboardListener.MODIFIER_CTRL
, and
KeyboardListener.MODIFIER_ALT
.public void fireKeyUp(Widget sender, char keyCode, int modifiers)
sender
- the widget sending the event.keyCode
- the keyCode to send with the event.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
KeyboardListener.MODIFIER_SHIFT
,
KeyboardListener.MODIFIER_CTRL
, and
KeyboardListener.MODIFIER_ALT
.Copyright © 2018. All rights reserved.