com.sibvisions.rad.ui.gwt.shared.event
Class ServiceEvent

java.lang.Object
  extended by com.sibvisions.rad.ui.gwt.shared.event.ServiceEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteTableDataEvent, EditorValueEvent, TableEvent

public class ServiceEvent
extends Object

The ServiceEvent holds information about client side actions.

See Also:
Serialized Form

Constructor Summary
ServiceEvent()
          Creates a new instance of ServiceEvent.
ServiceEvent(String pClientId, String pComponentId, EventType pType)
          Creates a new instance of ServiceEvent for a specific component with a defined event type.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 HashMap<String,Object> getComponentData()
          Gets the component data.
 String getComponentId()
          Gets the id of the event component.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 EventType getType()
          Gets the type of the event.
 void setComponentData(HashMap<String,Object> pComponentData)
          Sets the component data.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceEvent

public ServiceEvent()
Creates a new instance of ServiceEvent. Only for serialization.


ServiceEvent

public ServiceEvent(String pClientId,
                    String pComponentId,
                    EventType pType)
Creates a new instance of ServiceEvent for a specific component with a defined event type.

Parameters:
pClientId - the id of the client
pComponentId - the components id
pType - the event type
Method Detail

getComponentId

public String getComponentId()
Gets the id of the event component.

Returns:
the component id

getType

public EventType getType()
Gets the type of the event.

Returns:
EventType

getComponentData

public HashMap<String,Object> getComponentData()
Gets the component data.

Returns:
component data

setComponentData

public void setComponentData(HashMap<String,Object> pComponentData)
Sets the component data.

Parameters:
pComponentData - component data

getClientId

public String getClientId()
Gets the id of the client.

Returns:
the id

setParameter

public String setParameter(String pName,
                           String pValue)
Sets a user defined event parameter.

Parameters:
pName - the parameter name
pValue - the value or null to remove the property with the specified name
Returns:
the previous value or null if the property was not set

getParameter

public String getParameter(String pName)
Gets the value for a user defined parameter.

Parameters:
pName - the parameter name
Returns:
the value of the parameter or null if the parameter was not set


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.