org.apache.tapestry.components
Class LinkEventType
java.lang.Object
|
+--org.apache.commons.lang.enum.Enum
|
+--org.apache.tapestry.components.LinkEventType
- All Implemented Interfaces:
- Comparable, Serializable
- public class LinkEventType
- extends org.apache.commons.lang.enum.Enum
Different types of JavaScript events that an ILinkComponent
can provide handlers for.
- Since:
- 0.2.9
- Version:
- $Id: LinkEventType.java,v 1.1 2003/03/05 22:59:45 hlship Exp $
- Author:
- Howard Lewis Ship
- See Also:
- Serialized Form
Methods inherited from class org.apache.commons.lang.enum.Enum |
compareTo, equals, getEnum, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString |
MOUSE_OVER
public static final LinkEventType MOUSE_OVER
- Type for
onMouseOver
. This may also be called "focus".
MOUSE_OUT
public static final LinkEventType MOUSE_OUT
- Type for
onMouseOut
. This may also be called "blur".
CLICK
public static final LinkEventType CLICK
- Type for
onClick
.
- Since:
- 1.0.1
DOUBLE_CLICK
public static final LinkEventType DOUBLE_CLICK
- Type for
onDblClick
.
- Since:
- 1.0.1
MOUSE_DOWN
public static final LinkEventType MOUSE_DOWN
- Type for
onMouseDown
.
- Since:
- 1.0.1.
MOUSE_UP
public static final LinkEventType MOUSE_UP
- Type for
onMouseUp
.
- Since:
- 1.0.1
LinkEventType
protected LinkEventType(String name,
String attributeName)
- Constructs a new type of event. The name should match the
static final variable (i.e., MOUSE_OVER) and the attributeName
is the name of the HTML attribute to be managed (i.e., "onMouseOver").
This method is protected so that subclasses can be created
to provide additional managed event types.
getAttributeName
public String getAttributeName()
- Returns the name of the HTML attribute corresponding to this
type.