BehaviorBase is a
convenience base class that provides a default implementation of the
Behavior contract. It also provides behavior listener registration
and state saving support.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| initialState | back to summary |
|---|---|
| private boolean initialState | |
| listeners | back to summary |
|---|---|
| private List<BehaviorListener> listeners Our | |
| transientFlag | back to summary |
|---|---|
| private boolean transientFlag | |
| BehaviorBase | back to summary |
|---|---|
| public BehaviorBase() | |
| addBehaviorListener | back to summary |
|---|---|
| protected void addBehaviorListener(BehaviorListener listener) Add the specified
public class AjaxBehaviorEvent extends BehaviorEvent { ... }
public interface AjaxBehaviorListener extends BehaviorListener {
public void processAjaxBehavior(FooEvent event);
}
public class AjaxBehavior extends ClientBehaviorBase {
...
public void addAjaxBehaviorListener(AjaxBehaviorListener listener) {
addBehaviorListener(listener);
}
public void removeAjaxBehaviorListener(AjaxBehaviorListener listener) {
removeBehaviorListener(listener);
}
...
}
| |
| broadcast | back to summary |
|---|---|
| public void broadcast(BehaviorEvent event) throws AbortProcessingException Implements javax. Default implementation of
| |
| clearInitialState | back to summary |
|---|---|
| public void clearInitialState() Implements javax. Clears the initial state flag, causing the behavior to revert from partial to full state saving.
| |
| initialStateMarked | back to summary |
|---|---|
| public boolean initialStateMarked() Implements javax. Implementation of
| |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements javax. Implementation of
| |
| markInitialState | back to summary |
|---|---|
| public void markInitialState() Implements javax. Implementation of
| |
| removeBehaviorListener | back to summary |
|---|---|
| protected void removeBehaviorListener(BehaviorListener listener) Remove the specified
| |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Implements javax. Implementation of
| |
| saveState | back to summary |
|---|---|
| public Object saveState(FacesContext context) Implements javax. Implementation of
| |
| setTransient | back to summary |
|---|---|
| public void setTransient(boolean transientFlag) Implements javax. Implementation of
| |