|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.behavior.BehaviorBase
public class BehaviorBase
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.
Constructor Summary | |
---|---|
BehaviorBase()
|
Method Summary | |
---|---|
void |
broadcast(BehaviorEvent event)
Default implementation of
|
void |
clearInitialState()
Clears the initial state flag, causing the behavior to revert from partial to full state saving. |
boolean |
initialStateMarked()
Implementation of
|
boolean |
isTransient()
Implementation of
|
void |
markInitialState()
Implementation of
|
void |
restoreState(FacesContext context,
Object state)
Implementation of
|
Object |
saveState(FacesContext context)
Implementation of
|
void |
setTransient(boolean transientFlag)
Implementation of
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BehaviorBase()
Method Detail |
---|
public void broadcast(BehaviorEvent event) throws AbortProcessingException
Default implementation of
Behavior.broadcast(javax.faces.event.BehaviorEvent)
. Delivers the specified
BehaviorEvent
to all registered BehaviorListener
event listeners who have expressed an interest in events of
this type. Listeners are called in the order in which they were
registered (added).
broadcast
in interface Behavior
event
- The BehaviorEvent
to be broadcast
AbortProcessingException
- Signal the JavaServer Faces
implementation that no further processing on the current event
should be performed
IllegalArgumentException
- if the implementation class
of this BehaviorEvent
is not supported by this component
NullPointerException
- if event
is
null
public boolean isTransient()
Implementation of
StateHolder.isTransient()
.
isTransient
in interface StateHolder
public void setTransient(boolean transientFlag)
Implementation of
StateHolder.setTransient(boolean)
.
setTransient
in interface StateHolder
transientFlag
- boolean pass true
if this Object
will not participate in state saving or restoring, otherwise
pass false
.public Object saveState(FacesContext context)
Implementation of
StateHolder.saveState(javax.faces.context.FacesContext)
.
saveState
in interface StateHolder
public void restoreState(FacesContext context, Object state)
Implementation of
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
.
restoreState
in interface StateHolder
public void markInitialState()
Implementation of
PartialStateHolder.markInitialState()
.
markInitialState
in interface PartialStateHolder
public boolean initialStateMarked()
Implementation of
PartialStateHolder.initialStateMarked()
.
initialStateMarked
in interface PartialStateHolder
public void clearInitialState()
Clears the initial state flag, causing the behavior to revert from partial to full state saving.
clearInitialState
in interface PartialStateHolder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |