|
||||||||||
| 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 java.lang.String |
CHAR_CODE
|
static java.lang.String |
KEYS
|
static java.lang.String |
LAYER_X
|
static java.lang.String |
LAYER_Y
|
static java.lang.String |
NAME
|
static java.lang.String |
PAGE_X
|
static java.lang.String |
PAGE_Y
|
static java.lang.String |
TARGET
|
static java.lang.String |
TARGET_ATTR_ID
|
static java.lang.String |
TYPE
|
| Constructor Summary | |
|---|---|
BrowserEvent(IRequestCycle cycle)
Creates a new browser event that will extract its own parameters. |
|
BrowserEvent(java.lang.String name,
EventTarget target)
Creates a new browser event with the specified name/target properties. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCharCode()
|
java.lang.String[] |
getKeys()
|
java.lang.String |
getLayerX()
|
java.lang.String |
getLayerY()
|
java.lang.String |
getName()
The name of the event that was generated. |
java.lang.String |
getPageX()
|
java.lang.String |
getPageY()
|
EventTarget |
getTarget()
Returns the target of the client side event. |
java.lang.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 java.lang.String NAME
public static final java.lang.String TYPE
public static final java.lang.String KEYS
public static final java.lang.String CHAR_CODE
public static final java.lang.String PAGE_X
public static final java.lang.String PAGE_Y
public static final java.lang.String LAYER_X
public static final java.lang.String LAYER_Y
public static final java.lang.String TARGET
public static final java.lang.String TARGET_ATTR_ID
| Constructor Detail |
|---|
public BrowserEvent(IRequestCycle cycle)
cycle - The request cycle to extract parameters from.
public BrowserEvent(java.lang.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 java.lang.String getName()
Examples would be onClick,onSelect,onLoad,etc....
public EventTarget getTarget()
public java.lang.String getCharCode()
public java.lang.String[] getKeys()
public java.lang.String getLayerX()
public java.lang.String getLayerY()
public java.lang.String getPageX()
public java.lang.String getPageY()
public java.lang.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 | |||||||||