javax.faces.component
Class AjaxBehaviors

java.lang.Object
  extended by javax.faces.component.AjaxBehaviors
All Implemented Interfaces:
Serializable

public class AjaxBehaviors
extends Object
implements Serializable

An instance of the class is used to manage AjaxBehavior instances.

Since:
2.0
See Also:
Serialized Form

Field Summary
static String AJAX_BEHAVIORS
           
 
Constructor Summary
AjaxBehaviors()
           
 
Method Summary
 AjaxBehavior getBehaviorForEvent(String eventName)
          Return the AjaxBehavior instance containing the event that matches eventName.
 void popBehavior()
          Pop the last AjaxBehavior instance from the List.
 void pushBehavior(AjaxBehavior ajaxBehavior)
          Push the AjaxBehavior into scope making it available for subsequent calls to getBehaviorForEvent(java.lang.String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJAX_BEHAVIORS

public static final String AJAX_BEHAVIORS
See Also:
Constant Field Values
Constructor Detail

AjaxBehaviors

public AjaxBehaviors()
Method Detail

getBehaviorForEvent

public AjaxBehavior getBehaviorForEvent(String eventName)

Return the AjaxBehavior instance containing the event that matches eventName. Interrogate the List of AjaxBehavior instances starting at the end of the List. Return null if no matching AjaxBehavior is available.

Parameters:
eventName -
Returns:
the AjaxBehavior that contains the event matching eventName.
Since:
2.0

pushBehavior

public void pushBehavior(AjaxBehavior ajaxBehavior)

Push the AjaxBehavior into scope making it available for subsequent calls to getBehaviorForEvent(java.lang.String).

Parameters:
ajaxBehavior - the AjaxBehavior instance
Since:
2.0

popBehavior

public void popBehavior()

Pop the last AjaxBehavior instance from the List.

Since:
2.0


Copyright © 2002-2008 Sun Microsystems, Inc. All Rights Reserved.