|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.event.BrowserEvent
public class BrowserEvent
Represents a client side generated browser event.
| Field Summary | |
|---|---|
static String |
CHAR_CODE
|
static String |
KEYS
|
static String |
LAYER_X
|
static String |
LAYER_Y
|
static String |
NAME
|
static String |
PAGE_X
|
static String |
PAGE_Y
|
static String |
TARGET
|
static String |
TARGET_ATTR_ID
|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
BrowserEvent(IRequestCycle cycle)
Creates a new browser event that will extract its own parameters. |
|
BrowserEvent(String name,
EventTarget target)
Creates a new browser event with the specified name/target properties. |
|
| Method Summary | |
|---|---|
String |
getCharCode()
|
String[] |
getKeys()
|
String |
getLayerX()
|
String |
getLayerY()
|
String |
getName()
The name of the event that was generated. |
String |
getPageX()
|
String |
getPageY()
|
EventTarget |
getTarget()
Returns the target of the client side event. |
String |
getType()
|
static boolean |
hasBrowserEvent(IRequestCycle cycle)
Utility method to check if the current request contains a browser event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String TYPE
public static final String KEYS
public static final String CHAR_CODE
public static final String PAGE_X
public static final String PAGE_Y
public static final String LAYER_X
public static final String LAYER_Y
public static final String TARGET
public static final String TARGET_ATTR_ID
| Constructor Detail |
|---|
public BrowserEvent(IRequestCycle cycle)
cycle - The request cycle to extract parameters from.
public BrowserEvent(String name,
EventTarget target)
name - The name of the event, ie "onClick", "onBlur", etc..target - The target of the client side event.| Method Detail |
|---|
public String getName()
Examples would be onClick,onSelect,onLoad,etc....
public EventTarget getTarget()
public String getCharCode()
public String[] getKeys()
public String getLayerX()
public String getLayerY()
public String getPageX()
public String getPageY()
public String getType()
public static boolean hasBrowserEvent(IRequestCycle cycle)
cycle - The associated request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||