|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.component.behavior.BehaviorBase
javax.faces.component.behavior.ClientBehaviorBase
public class ClientBehaviorBase
ClientBehaviorBase is a
convenience base class that implements the default concrete behavior
of all methods defined by ClientBehavior.
Subclasses should either override getRendererType() to identify
the ClientBehaviorRenderer to delegate to, or they should override
getScript() to locally generate the desired Behavior
script, and decode().
| Constructor Summary | |
|---|---|
ClientBehaviorBase()
|
|
| Method Summary | |
|---|---|
void |
decode(FacesContext context,
UIComponent component)
Default implementation of of |
java.util.Set<ClientBehaviorHint> |
getHints()
Default implementation of
|
protected ClientBehaviorRenderer |
getRenderer(FacesContext context)
Convenience method to return the
|
java.lang.String |
getRendererType()
Returns the renderer type of the
|
java.lang.String |
getScript(ClientBehaviorContext behaviorContext)
Default implementation of of |
| Methods inherited from class javax.faces.component.behavior.BehaviorBase |
|---|
addBehaviorListener, broadcast, clearInitialState, initialStateMarked, isTransient, markInitialState, removeBehaviorListener, restoreState, saveState, setTransient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.faces.component.behavior.Behavior |
|---|
broadcast |
| Constructor Detail |
|---|
public ClientBehaviorBase()
| Method Detail |
|---|
public java.lang.String getScript(ClientBehaviorContext behaviorContext)
Default implementation of of ClientBehavior#getScript. If a ClientBehaviorRenderer
is available for the specified behavior renderer type, this
method delegates to the ClientBehaviorRenderer#getScript
method. Otherwise, this method returns null.
getScript in interface ClientBehaviorbehaviorContext - the ClientBehaviorContext
java.lang.NullPointerException - if behaviorContext is
null
public void decode(FacesContext context,
UIComponent component)
Default implementation of of ClientBehavior#decode. If a ClientBehaviorRenderer is
available for the specified behavior renderer type, this method
delegates to the ClientBehaviorRenderer's decode() method.
Otherwise, no decoding is performed.
decode in interface ClientBehaviorcontext - FacesContext for the request we are processingcomponent - UIComponent the component associated with this ClientBehavior
java.lang.NullPointerException - if context or
component is null.- Since:
- 2.0
public java.lang.String getRendererType()
Returns the renderer type of the
ClientBehaviorRenderer to use for the behavior. The default
implementation returns null. Subclasses should either override this
method to return a string that identifies the type of
ClientBehaviorRenderer to use, or should override
getScript(javax.faces.component.behavior.ClientBehaviorContext) and perform script rendering locally in the
ClientBehavior implementation.
public java.util.Set<ClientBehaviorHint> getHints()
Default implementation of
ClientBehavior#getHints().
By default, no hints are specified, and this method returns an empty,
umodifiable set.
getHints in interface ClientBehaviorClientBehaviorHints.protected ClientBehaviorRenderer getRenderer(FacesContext context)
Convenience method to return the
ClientBehaviorRenderer instance associated with this
ClientBehavior, if any; otherwise, return
null.
context - FacesContext for the request we are processing
ClientBehaviorRenderer instance from the current RenderKit or null.
java.lang.NullPointerException - if context is null.
|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 24-November-2009 03:24