Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
12c (12.1.2)
E23185-01


oracle.adf.view.rich.render
Class ClientEvent

java.lang.Object
  extended by oracle.adf.view.rich.render.ClientEvent

All Implemented Interfaces:
Serializable

public class ClientEvent
extends Object
implements Serializable

Object representing a single client event. Client events generally do not have a UIComponent, but those delivered to custom server listeners (via AdfCustomEvent) do.

While ClientEvent is Serializable, no version compatibility is guaranteed. Further, the Component property, if specified is never Serialized and, of course, neither are non-Serializable Map parameters, or any parameters if the Map instance is not Serializable.

See Also:
Serialized Form

Constructor Summary
ClientEvent(String type, Map<String,Object> parameters)
          Creates a ClientEvent with a type and a map of parameters.
ClientEvent(String type, Map<String,Object> parameters, javax.faces.component.UIComponent component)
          Creates a ClientEvent with a type and a map of parameters.

 

Method Summary
 javax.faces.component.UIComponent getComponent()
          Returns the source of the event.
 Map<String,Object> getParameters()
          Returns the Map of parameters associated with the event.
 String getType()
          Returns the type of the event.
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ClientEvent

public ClientEvent(String type,
                   Map<String,Object> parameters)
Creates a ClientEvent with a type and a map of parameters.

ClientEvent

public ClientEvent(String type,
                   Map<String,Object> parameters,
                   javax.faces.component.UIComponent component)
Creates a ClientEvent with a type and a map of parameters.

Method Detail

getType

public String getType()
Returns the type of the event.

getParameters

public Map<String,Object> getParameters()
Returns the Map of parameters associated with the event.

getComponent

public javax.faces.component.UIComponent getComponent()
Returns the source of the event. Note that this may be null; in particular, events returned via RichRenderer.getClientEvent() do not have an attached component, but those passed to custom event handlers (via <af:serverListener>) do have a component.

toString

public String toString()
Overrides:
toString in class Object

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
12c (12.1.2)
E23185-01


Copyright © 2013 Oracle Corporation. All Rights Reserved.