|
||||||||||
| 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 |
COMPONENT_ID
|
static String |
COMPONENT_ID_PATH
|
static String |
KEYS
|
static String |
LAYER_X
|
static String |
LAYER_Y
|
static String |
METHOD_ARGUMENTS
|
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. |
|
BrowserEvent(String name,
String componentId,
String componentIdPath,
EventTarget target)
Creates a new browser event with the specified name/target properties. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getCharCode()
|
String |
getComponentId()
Only when the event targeted a IComponent - will return the originating
components id as returned from IComponent.getId(). |
String |
getComponentIdPath()
If the event was generated for a IComponent - will be the
value returned from IComponent.getExtendedId(). |
String[] |
getKeys()
|
String |
getLayerX()
|
String |
getLayerY()
|
JSONArray |
getMethodArguments()
|
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. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, 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
public static final String COMPONENT_ID
public static final String COMPONENT_ID_PATH
public static final String METHOD_ARGUMENTS
| 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.
public BrowserEvent(String name,
String componentId,
String componentIdPath,
EventTarget target)
Currently used for testing only.
name - The name of the event, ie "onClick", "onBlur", etc..componentId - Component targeted.componentIdPath - The id path of the component.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 getComponentId()
IComponent - will return the originating
components id as returned from IComponent.getId(). Not present
on element events.
public String getComponentIdPath()
IComponent - will be the
value returned from IComponent.getExtendedId().
public String getCharCode()
public String[] getKeys()
public String getLayerX()
public String getLayerY()
public String getPageX()
public String getPageY()
public String getType()
public JSONArray getMethodArguments()
org.apache.hivemind.ApplicationRuntimeException - when the JSON-String could not be
parsed.public static boolean hasBrowserEvent(IRequestCycle cycle)
cycle - The associated request.
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||