qflib 0.98.0

de.qfs.lib.gui
Class EventNames

java.lang.Object
  |
  +--de.qfs.lib.gui.EventNames

public abstract class EventNames
extends java.lang.Object

This class provides a mapping from the ids of some AwtEvents to their names and vice versa.

Version:
$Revision: 1.8 $
Author:
Gregor Schmid

Field Summary
protected static java.util.Map ids
          Map event names to event ids.
protected static java.util.Map names
          Map event ids to event names.
 
Constructor Summary
EventNames()
           
 
Method Summary
static int getId(java.lang.String name)
          Get the id of an event.
static java.lang.String getName(int id)
          Get the name of an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

protected static java.util.Map names
Map event ids to event names.

ids

protected static java.util.Map ids
Map event names to event ids.
Since:
0.96.0
Constructor Detail

EventNames

public EventNames()
Method Detail

getName

public static java.lang.String getName(int id)
Get the name of an event.
Parameters:
id - The id of the event.
Returns:
The name of the event.

getId

public static int getId(java.lang.String name)
Get the id of an event.
Parameters:
name - The name of the event.
Returns:
The id of the event or -1 if unknown.
Since:
0.96.0

qflib 0.98.0