|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientBehaviorHolder
The ClientBehaviorHolder
interface may be implemented by any concrete
UIComponent
that wishes to support
client behaviors as defined by ClientBehavior
.
Method Summary | |
---|---|
void |
addClientBehavior(java.lang.String eventName,
ClientBehavior behavior)
Attaches a |
java.util.Map<java.lang.String,java.util.List<ClientBehavior>> |
getClientBehaviors()
Returns a non-null, unmodifiable
|
java.lang.String |
getDefaultEventName()
Returns the default event
name for this |
java.util.Collection<java.lang.String> |
getEventNames()
Returns a non-null, unmodifiable
|
Method Detail |
---|
void addClientBehavior(java.lang.String eventName, ClientBehavior behavior)
Attaches a ClientBehavior
to
the component implementing this interface for the specified event.
Valid event names for a UIComponent implementation are defined by
ClientBehaviorHolder.getEventNames()
.
eventName
- the logical name of the client-side event to
attach the behavior to.behavior
- the ClientBehavior
instance to attach
for the specified event name.java.util.Collection<java.lang.String> getEventNames()
Returns a non-null, unmodifiable
Collection
containing the names of the logical
events supported by the component implementing this interface.
java.util.Map<java.lang.String,java.util.List<ClientBehavior>> getClientBehaviors()
Returns a non-null, unmodifiable
Map
that contains the the ClientBehavior
s that
have been attached to the component implementing this interface.
The keys in this Map
are event names defined by
getEventNames()
.
java.lang.String getDefaultEventName()
Returns the default event
name for this ClientBehaviorHolder
implementation.
This must be one of the event names returned by
getEventNames()
or null if the component does not have
a default event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34