org.apache.wicket.ajax.attributes
Enum AjaxRequestAttributes.EventPropagation

java.lang.Object
  extended by java.lang.Enum<AjaxRequestAttributes.EventPropagation>
      extended by org.apache.wicket.ajax.attributes.AjaxRequestAttributes.EventPropagation
All Implemented Interfaces:
Serializable, Comparable<AjaxRequestAttributes.EventPropagation>
Enclosing class:
AjaxRequestAttributes

public static enum AjaxRequestAttributes.EventPropagation
extends Enum<AjaxRequestAttributes.EventPropagation>

The JavaScript event propagation type


Enum Constant Summary
BUBBLE
          Do not stop the propagation of the JavaScript event
STOP
          Stops the propagation of the JavaScript event to the parent of its target
STOP_IMMEDIATE
          Stops the propagation of the JavaScript event to the parent of its target and all other event listeners registered on the same target
 
Method Summary
static AjaxRequestAttributes.EventPropagation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AjaxRequestAttributes.EventPropagation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STOP

public static final AjaxRequestAttributes.EventPropagation STOP
Stops the propagation of the JavaScript event to the parent of its target


STOP_IMMEDIATE

public static final AjaxRequestAttributes.EventPropagation STOP_IMMEDIATE
Stops the propagation of the JavaScript event to the parent of its target and all other event listeners registered on the same target


BUBBLE

public static final AjaxRequestAttributes.EventPropagation BUBBLE
Do not stop the propagation of the JavaScript event

Method Detail

values

public static AjaxRequestAttributes.EventPropagation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AjaxRequestAttributes.EventPropagation c : AjaxRequestAttributes.EventPropagation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AjaxRequestAttributes.EventPropagation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


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