public class

KeyboardListenerCollection

extends ArrayList<E>
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ java.util.ArrayList<E>
         ↳ com.google.gwt.user.client.ui.KeyboardListenerCollection
Known Direct Subclasses

This class is deprecated.
Widgets should now manage their own handlers via addDomHandler(H, DomEvent.Type)

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class java.util.AbstractList
Public Constructors
KeyboardListenerCollection()
Public Methods
void fireKeyDown(Widget sender, char keyCode, int modifiers)
Fires a keyDown event to all listeners.
void fireKeyPress(Widget sender, char key, int modifiers)
Fires a keyDown event to all listeners.
void fireKeyUp(Widget sender, char keyCode, int modifiers)
Fires a keyDown event to all listeners.
void fireKeyboardEvent(Widget sender, Event event)
Automatically fires the appropriate keyboard event to all listeners.
static int getKeyboardModifiers(Event event)
Gets the keyboard modifiers associated with a DOMEvent.
[Expand]
Inherited Methods
From class java.util.ArrayList
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List

Public Constructors

public KeyboardListenerCollection ()

Public Methods

public void fireKeyDown (Widget sender, char keyCode, int modifiers)

Fires a keyDown event to all listeners.

Parameters
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 MODIFIER_SHIFT, MODIFIER_CTRL, and MODIFIER_ALT.

public void fireKeyPress (Widget sender, char key, int modifiers)

Fires a keyDown event to all listeners.

Parameters
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 MODIFIER_SHIFT, MODIFIER_CTRL, and MODIFIER_ALT.

public void fireKeyUp (Widget sender, char keyCode, int modifiers)

Fires a keyDown event to all listeners.

Parameters
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 MODIFIER_SHIFT, MODIFIER_CTRL, and MODIFIER_ALT.

public void fireKeyboardEvent (Widget sender, Event event)

Automatically fires the appropriate keyboard event to all listeners. If the given event is not a keyboard event, no action will be performed.

Parameters
sender the widget sending the event.
event the Event received by the widget.

public static int getKeyboardModifiers (Event event)

Gets the keyboard modifiers associated with a DOMEvent.

Parameters
event the event.
Returns