Package com.sun.faces.component.behavior
Class AjaxBehaviors
- java.lang.Object
-
- com.sun.faces.component.behavior.AjaxBehaviors
-
- All Implemented Interfaces:
Serializable
public class AjaxBehaviors extends Object implements Serializable
An instance of the class is used to manage
AjaxBehaviorinstances.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAjaxBehaviors.BehaviorInfo
-
Constructor Summary
Constructors Constructor Description AjaxBehaviors()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBehaviors(FacesContext context, ClientBehaviorHolder behaviorHolder)static AjaxBehaviorsgetAjaxBehaviors(FacesContext context, boolean createIfNull)voidpopBehavior()Pop the lastAjaxBehaviorinstance from theList.voidpushBehavior(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)Push theAjaxBehaviorinstance onto theList.
-
-
-
Method Detail
-
getAjaxBehaviors
public static AjaxBehaviors getAjaxBehaviors(FacesContext context, boolean createIfNull)
-
addBehaviors
public void addBehaviors(FacesContext context, ClientBehaviorHolder behaviorHolder)
-
pushBehavior
public void pushBehavior(FacesContext context, AjaxBehavior ajaxBehavior, String eventName)
Push the
AjaxBehaviorinstance onto theList.- Parameters:
context- the faces contextajaxBehavior- theAjaxBehaviorinstanceeventName- the name of the event that the behavior is associated with.- Since:
- 2.0
-
popBehavior
public void popBehavior()
Pop the last
AjaxBehaviorinstance from theList.- Since:
- 2.0
-
-