com.sibvisions.rad.ui.gwt.shared.event
Class InsertUpdateTableDataEvent<M extends TableRow>

java.lang.Object
  extended by com.sibvisions.rad.ui.gwt.shared.event.ServiceEvent
      extended by com.sibvisions.rad.ui.gwt.shared.event.TableEvent
          extended by com.sibvisions.rad.ui.gwt.shared.event.InsertUpdateTableDataEvent<M>
Type Parameters:
M - the data "type"
All Implemented Interfaces:
Serializable

public class InsertUpdateTableDataEvent<M extends TableRow>
extends TableEvent

The InsertUpdateTableDataEvent is a ServiceEvent to change table data from a remote component.

See Also:
Serialized Form

Constructor Summary
InsertUpdateTableDataEvent()
          Creates a new instance of InsertUpdateTableDataEvent.
InsertUpdateTableDataEvent(String pClientId, String pComponentId, List<M> pOldValues, List<M> pNewValues)
          Creates a new instance of InsertUpdateTableDataEvent.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 List<M> getNewRows()
          Gets the list of new rows/values.
 List<M> getOldRows()
          Gets the list of old rows/values.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 
Methods inherited from class com.sibvisions.rad.ui.gwt.shared.event.TableEvent
getSelectedRow, setSelectedRow
 
Methods inherited from class com.sibvisions.rad.ui.gwt.shared.event.ServiceEvent
getComponentData, getComponentId, getType, setComponentData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertUpdateTableDataEvent

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


InsertUpdateTableDataEvent

public InsertUpdateTableDataEvent(String pClientId,
                                  String pComponentId,
                                  List<M> pOldValues,
                                  List<M> pNewValues)
Creates a new instance of InsertUpdateTableDataEvent.

Parameters:
pClientId - the client id
pComponentId - the component id
pOldValues - a list of rows before data change
pNewValues - a list of rows after data change (same order as pOldValues)
Method Detail

getOldRows

public List<M> getOldRows()
Gets the list of old rows/values.

Returns:
the old values

getNewRows

public List<M> getNewRows()
Gets the list of new rows/values.

Returns:
the new values

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.