|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<KeyboardListener>
com.google.gwt.user.client.ui.KeyboardListenerCollection
Widget.addDomHandler(H, com.google.gwt.event.dom.client.DomEvent.Type)
@Deprecated public class KeyboardListenerCollection
A helper class for implementers of the SourcesKeyboardEvents interface. This
subclass of ArrayList
assumes that all objects added to it will be of
type KeyboardListener
.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
KeyboardListenerCollection()
Deprecated. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Constructor Detail |
---|
public KeyboardListenerCollection()
Method Detail |
---|
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
.
|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |