FileDocCategorySizeDatePackage
AutoEventDataFactory.javaAPI DocphoneME MR2 API (J2ME)3478Wed May 02 18:00:08 BST 2007com.sun.midp.automation

AutoEventDataFactory

public final class AutoEventDataFactory extends Object
Factory creating event's data for various types of events.

Fields Summary
public static final int
KEY_PRESSED
Key event: key is pressed
public static final int
KEY_REPEATED
Key event: key is repeated
public static final int
KEY_RELEASED
Key event: key is released
public static final int
PEN_PRESSED
Pen event: pen is pressed
public static final int
PEN_DRAGGED
Pen event: pen is dragged
public static final int
PEN_RELEASED
Pen event: pen is released
Constructors Summary
private AutoEventDataFactory()
Private constructor to prevent user from creating an instance.

    
Methods Summary
public static AutoEventDatacreateCommandEventData(int type)
Creates event's data for command event.

param
type type of command event
return
AutoEventData representing event's data for command event

        return null;
    
public static AutoEventDatacreateFromStream(java.io.DataInputStream stream)
Creates event's data from input stream

param
stream stream to read data from.
return
AutoEventData constructed from stream.

        return null;
    
public static AutoEventDatacreateInputMethodEventData(java.lang.String str)
Creates event's data for input method event.

param
str entered string
return
AutoEventData representing event's data for IM event

        return null;
    
public static AutoEventDatacreateKeyEventData(int type, int code)
Creates event's data for key event.

param
type type of event: KEY_PRESSED, KEY_REPEATED, KEY_RELEASED
param
code key's code
return
AutoEventData representing event's data for key event

    
    
                                     
            
        return null;
    
public static AutoEventDatacreatePenEventData(int type, int x, int y)
Creates event's data for pen event.

param
type type of event: PEN_PRESSED, PEN_DRAGGED, PEN_RELEASED
param
x x coordinate of the pen
param
y y coordinate of the pen
return
AutoEventData representing event's data for pen event

        return null;