com.sun.faces.component.behavior
public class AjaxBehaviors extends java.lang.Object implements java.io.Serializable
An instance of the class is used to
manage AjaxBehavior
instances.
Modifier and Type | Class and Description |
---|---|
static class |
AjaxBehaviors.BehaviorInfo |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
AJAX_BEHAVIORS |
private java.util.LinkedList<AjaxBehaviors.BehaviorInfo> |
behaviorStack |
Constructor and Description |
---|
AjaxBehaviors() |
Modifier and Type | Method and Description |
---|---|
void |
addBehaviors(javax.faces.context.FacesContext context,
javax.faces.component.behavior.ClientBehaviorHolder behaviorHolder) |
static AjaxBehaviors |
getAjaxBehaviors(javax.faces.context.FacesContext context,
boolean createIfNull) |
void |
popBehavior()
Pop the last
AjaxBehavior instance
from the List . |
void |
pushBehavior(javax.faces.context.FacesContext context,
javax.faces.component.behavior.AjaxBehavior ajaxBehavior,
java.lang.String eventName)
Push the
AjaxBehavior into scope making it available
for subsequent calls to #getBehaviorForEvent . |
private static final java.lang.String AJAX_BEHAVIORS
private java.util.LinkedList<AjaxBehaviors.BehaviorInfo> behaviorStack
public static AjaxBehaviors getAjaxBehaviors(javax.faces.context.FacesContext context, boolean createIfNull)
public void addBehaviors(javax.faces.context.FacesContext context, javax.faces.component.behavior.ClientBehaviorHolder behaviorHolder)
public void pushBehavior(javax.faces.context.FacesContext context, javax.faces.component.behavior.AjaxBehavior ajaxBehavior, java.lang.String eventName)
Push the AjaxBehavior
into scope making it available
for subsequent calls to #getBehaviorForEvent
.
ajaxBehavior
- the AjaxBehavior
instanceeventName
- the name of the event that the behavior is associated
with.public void popBehavior()
Pop the last AjaxBehavior
instance
from the List
.
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.