org.ajax4jsf.renderkit
Enum RendererUtils.ScriptHashVariableWrapper

java.lang.Object
  extended by java.lang.Enum<RendererUtils.ScriptHashVariableWrapper>
      extended by org.ajax4jsf.renderkit.RendererUtils.ScriptHashVariableWrapper
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RendererUtils.ScriptHashVariableWrapper>
Enclosing class:
RendererUtils

public static enum RendererUtils.ScriptHashVariableWrapper
extends java.lang.Enum<RendererUtils.ScriptHashVariableWrapper>

Wrapper class around object value used to transform values into particular JS objects

Since:
3.3.2
Author:
Nick Belaevski

Enum Constant Summary
AS_ARRAY
          Convert parameter to array of srings.
DEFAULT
          No-op default wrapper
EVENT_HANDLER
          Event handler functions wrapper.
 
Method Summary
static RendererUtils.ScriptHashVariableWrapper valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RendererUtils.ScriptHashVariableWrapper[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final RendererUtils.ScriptHashVariableWrapper DEFAULT
No-op default wrapper


AS_ARRAY

public static final RendererUtils.ScriptHashVariableWrapper AS_ARRAY
Convert parameter to array of srings.


EVENT_HANDLER

public static final RendererUtils.ScriptHashVariableWrapper EVENT_HANDLER
Event handler functions wrapper. Wraps
functionCode
object into:
function(event) {
   functionCode
 }

Method Detail

values

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

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

valueOf

public static RendererUtils.ScriptHashVariableWrapper valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009. All Rights Reserved.