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

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.TableDataEvent
All Implemented Interfaces:
Serializable

public class TableDataEvent
extends TableEvent

The TableDataEvent is a ServiceEvent to retrieve data from a remote table.

See Also:
Serialized Form

Constructor Summary
TableDataEvent()
          Creates a new instance of TableDataEvent.
TableDataEvent(String pClientId, String pComponentId)
          Creates a new instance of TableDataEvent.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 boolean isReload()
          Gets whether the table should be reloaded.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 void setReload(boolean pReload)
          Sets the reload property.
 
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

TableDataEvent

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


TableDataEvent

public TableDataEvent(String pClientId,
                      String pComponentId)
Creates a new instance of TableDataEvent.

Parameters:
pClientId - the client id
pComponentId - the component/table id
Method Detail

setReload

public void setReload(boolean pReload)
Sets the reload property. This property means that the whole table data will be reloaded before the data will be sent to the client.

Parameters:
pReload - true to reload the table data, false otherwise

isReload

public boolean isReload()
Gets whether the table should be reloaded.

Returns:
true if the table should be reloaded

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.