com.primix.tapestry.components
Class ServiceLinkEventType

java.lang.Object
  |
  +--com.primix.tapestry.util.Enum
        |
        +--com.primix.tapestry.components.ServiceLinkEventType
All Implemented Interfaces:
java.io.Serializable

public class ServiceLinkEventType
extends Enum

Different types of JavaScript events that an IServiceLink can provide handlers for.

Since:
0.2.9
Version:
$Id: ServiceLinkEventType.java,v 1.4 2001/05/30 16:13:20 hship Exp $
Author:
Howard Ship
See Also:
Serialized Form

Field Summary
static ServiceLinkEventType CLICK
          Type for onClick.
static ServiceLinkEventType DOUBLE_CLICK
          Type for onDblClick.
static ServiceLinkEventType MOUSE_DOWN
          Type for onMouseDown.
static ServiceLinkEventType MOUSE_OUT
          Type for onMouseOut.
static ServiceLinkEventType MOUSE_OVER
          Type for onMouseOver.
static ServiceLinkEventType MOUSE_UP
          Type for onMouseUp.
 
Constructor Summary
protected ServiceLinkEventType(java.lang.String name, java.lang.String attributeName)
          Constructs a new type of event.
 
Method Summary
 java.lang.String getAttributeName()
          Returns the name of the HTML attribute corresponding to this type.
 
Methods inherited from class com.primix.tapestry.util.Enum
getEnumerationId, getSingleton, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOUSE_OVER

public static final ServiceLinkEventType MOUSE_OVER
Type for onMouseOver. This may also be called "focus".

MOUSE_OUT

public static final ServiceLinkEventType MOUSE_OUT
Type for onMouseOut. This may also be called "blur".

CLICK

public static final ServiceLinkEventType CLICK
Type for onClick.
Since:
1.0.1

DOUBLE_CLICK

public static final ServiceLinkEventType DOUBLE_CLICK
Type for onDblClick.
Since:
1.0.1

MOUSE_DOWN

public static final ServiceLinkEventType MOUSE_DOWN
Type for onMouseDown.
Since:
1.0.1.

MOUSE_UP

public static final ServiceLinkEventType MOUSE_UP
Type for onMouseUp.
Since:
1.0.1
Constructor Detail

ServiceLinkEventType

protected ServiceLinkEventType(java.lang.String name,
                               java.lang.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 java.lang.String getAttributeName()
Returns the name of the HTML attribute corresponding to this type.