org.apache.tapestry.event
Class EventTarget

java.lang.Object
  extended by org.apache.tapestry.event.EventTarget

public class EventTarget
extends Object

Represents a browser generated event "target". Most browser events will have an event.target property, which is what this represents.

Author:
jkuhnert

Constructor Summary
EventTarget(Map properties)
          Creates a new target with an immutable set of properties.
 
Method Summary
 Object get(String key)
          Gets a target object property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventTarget

public EventTarget(Map properties)
Creates a new target with an immutable set of properties.

Parameters:
properties - The properties of the target.
Method Detail

get

public Object get(String key)
Gets a target object property. (Could be things like "id" for html dom nodes, etc..)

Parameters:
key - The key of the property.
Returns:
The property value, or null if it doesn't exist.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.