org.apache.tapestry.components
Class LinkEventType

java.lang.Object
  extended by org.apache.commons.lang.enum.Enum
      extended by org.apache.tapestry.components.LinkEventType
All Implemented Interfaces:
Serializable, Comparable

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 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Field Summary
static LinkEventType CLICK
          Type for onClick.
static LinkEventType DOUBLE_CLICK
          Type for onDblClick.
static LinkEventType MOUSE_DOWN
          Type for onMouseDown.
static LinkEventType MOUSE_OUT
          Type for onMouseOut.
static LinkEventType MOUSE_OVER
          Type for onMouseOver.
static LinkEventType MOUSE_UP
          Type for onMouseUp.
 
Constructor Summary
protected LinkEventType(String name, String attributeName)
          Constructs a new type of event.
 
Method Summary
 String getAttributeName()
          Returns the name of the HTML attribute corresponding to this type.
 
Methods inherited from class org.apache.commons.lang.enum.Enum
compareTo, equals, getEnum, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

getAttributeName

public String getAttributeName()
Returns the name of the HTML attribute corresponding to this type.