org.apache.tapestry.spec
Class BindingType

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

public final class BindingType
extends org.apache.commons.lang.enum.Enum

Defines the different types of bindings possible for a component. These are used in the IBindingSpecification and ultimately used to create an instance of IBinding.

Version:
$Id: BindingType.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Field Summary
static BindingType DYNAMIC
          Indicates a standard ExpressionBinding.
static BindingType FIELD
          Indicates a FieldBinding.
static BindingType INHERITED
          Indicates that an existing binding (from the container) will be re-used.
static BindingType LISTENER
          Indicates a ListenerBinding, a specialized kind of binding that encapsulates a component listener as a script.
static BindingType STATIC
          Indicates a StaticBinding.
static BindingType STRING
          A binding to one of a component's localized strings.
 
Method Summary
 
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

STATIC

public static final BindingType STATIC
Indicates a StaticBinding.


DYNAMIC

public static final BindingType DYNAMIC
Indicates a standard ExpressionBinding.


INHERITED

public static final BindingType INHERITED
Indicates that an existing binding (from the container) will be re-used.


FIELD

public static final BindingType FIELD
Indicates a FieldBinding.

Field bindings are only available in the 1.3 DTD. The 1.4 DTD does not support them (since OGNL expressions can do the same thing).


LISTENER

public static final BindingType LISTENER
Indicates a ListenerBinding, a specialized kind of binding that encapsulates a component listener as a script. Uses a subclass of BindingSpecification, ListenerBindingSpecification. IListenerBindingSpecification.

Since:
3.0

STRING

public static final BindingType STRING
A binding to one of a component's localized strings.

Since:
2.0.4
See Also:
IComponent.getString(String)