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

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

public class TableEvent
extends ServiceEvent

The TableEvent is a ServiceEvent to send table settings to the server.

See Also:
Serialized Form

Constructor Summary
TableEvent()
          Creates a new instance of TableEvent.
TableEvent(String pClientId, String pComponentId, EventType pType)
          Creates a new instance of TableEvent for a specific component with a defined event type.
 
Method Summary
 String getClientId()
          Gets the id of the client.
 String getParameter(String pName)
          Gets the value for a user defined parameter.
 int getSelectedRow()
          Gets the current selected row.
 String setParameter(String pName, String pValue)
          Sets a user defined event parameter.
 void setSelectedRow(int pSelectedRow)
          Sets the current selected row.
 
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

TableEvent

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


TableEvent

public TableEvent(String pClientId,
                  String pComponentId,
                  EventType pType)
Creates a new instance of TableEvent 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

setSelectedRow

public void setSelectedRow(int pSelectedRow)
Sets the current selected row.

Parameters:
pSelectedRow - the row number

getSelectedRow

public int getSelectedRow()
Gets the current selected row.

Returns:
the row index

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.