Interface Behavior
-
- All Known Subinterfaces:
ClientBehavior
- All Known Implementing Classes:
AjaxBehavior,BehaviorBase,ClientBehaviorBase
public interface BehaviorThe Behavior interface is the root API of the component behavior model. Behaviors are objects that are attached to
UIComponents in order to enhance components with functionality not explicitly defined by the component implementation itself. The component behavior API is intended to support different types of behavior contracts, and possibly different types of interactions between behaviors and components. The first such contract is theClientBehavior, which defines a mechanism by which script-producing behaviors attach scripts to components for execution on the client. In the future other types of behavior contracts may be added.Like other attached objects (converters, validators) Behavior instances are created via the
Applicationobject. SeeApplication.createBehavior(java.lang.String)for more details.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbroadcast(BehaviorEvent event)Broadcast the specifiedBehaviorEventto all registered event listeners who have expressed an interest in events of this type.
-
-
-
Method Detail
-
broadcast
void broadcast(BehaviorEvent event)
Broadcast the specified
BehaviorEventto 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.- Parameters:
event- TheBehaviorEventto be broadcast- Throws:
AbortProcessingException- Signal the Jakarta Faces implementation that no further processing on the current event should be performedIllegalArgumentException- if the implementation class of thisBehaviorEventis not supported by this componentNullPointerException- ifeventisnull- Since:
- 2.0
-
-