javax.faces.component
Class UIComponentBaseBehaviorTestCase.TestBehavior

java.lang.Object
  extended by javax.faces.component.UIComponentBaseBehaviorTestCase.TestBehavior
All Implemented Interfaces:
java.io.Serializable, Behavior, ClientBehavior
Enclosing class:
UIComponentBaseBehaviorTestCase

public static class UIComponentBaseBehaviorTestCase.TestBehavior
extends java.lang.Object
implements ClientBehavior, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
UIComponentBaseBehaviorTestCase.TestBehavior()
           
 
Method Summary
 void broadcast(BehaviorEvent event)
          

Broadcast the specified BehaviorEvent to all registered event listeners who have expressed an interest in events of this type.

 void decode(FacesContext context, UIComponent component)
          

Decode any new state of this ClientBehavior from the request contained in the specified FacesContext.

 boolean equals(java.lang.Object obj)
           
 java.util.Set<ClientBehaviorHint> getHints()
          

Returns hints that describe the behavior of the ClientBehavior implementation.

 java.lang.String getRendererType()
           
 java.lang.String getScript(ClientBehaviorContext bContext)
          

Return the script that implements this ClientBehavior's client-side logic.

 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIComponentBaseBehaviorTestCase.TestBehavior

public UIComponentBaseBehaviorTestCase.TestBehavior()
Method Detail

getRendererType

public java.lang.String getRendererType()

getHints

public java.util.Set<ClientBehaviorHint> getHints()
Description copied from interface: ClientBehavior

Returns hints that describe the behavior of the ClientBehavior implementation. The hints may impact how Renderers behave in the presence of Behaviors. For example, when a Behavior that specifies ClientBehaviorHint.SUBMITTING is present, the Renderer may choose to alternate the scripts that it generates itself.

Specified by:
getHints in interface ClientBehavior
Returns:
a non-null, unmodifiable collection of ClientBehaviorHints.

broadcast

public void broadcast(BehaviorEvent event)
Description copied from interface: Behavior

Broadcast the specified BehaviorEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added.

Specified by:
broadcast in interface Behavior
Parameters:
event - The BehaviorEvent to be broadcast

decode

public void decode(FacesContext context,
                   UIComponent component)
Description copied from interface: ClientBehavior

Decode any new state of this ClientBehavior from the request contained in the specified FacesContext.

During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). Default implementation delegates decoding to ClientBehaviorRenderer.decode(FacesContext, UIComponent, ClientBehavior)

Specified by:
decode in interface ClientBehavior
Parameters:
context - FacesContext for the request we are processing
component - UIComponent the component associated with this Behavior

getScript

public java.lang.String getScript(ClientBehaviorContext bContext)
Description copied from interface: ClientBehavior

Return the script that implements this ClientBehavior's client-side logic.

ClientBehavior.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehavior implementation may return null if the Behavior is disabled.

Specified by:
getScript in interface ClientBehavior
Parameters:
bContext - the ClientBehaviorContext that provides properties that might influence this getScript() call. Note that ClientBehaviorContext instances are short-lived objects that are only valid for the duration of the call to getScript(). ClientBehavior implementations must not hold onto references to ClientBehaviorContexts.
Returns:
script that provides the client-side behavior, or null if no script is required.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2002-2011 Oracle America Inc, Inc. All Rights Reserved.