com.sibvisions.rad.ui.web.ext.gxt.control
Class TableRow

java.lang.Object
  extended by com.sibvisions.rad.ui.web.ext.gxt.control.TableRow
All Implemented Interfaces:
ModelData, Serializable

public class TableRow
extends Object
implements ModelData, Serializable

The TableRow is a single row in a Grid component. It will be used to transfer data between server and client.

See Also:
Serialized Form

Nested Class Summary
static class TableRow.RowState
          The valid row states.
 
Constructor Summary
TableRow()
          Creates a new instance of TableRow.
TableRow(Map<String,Object> pColumns)
          Creates a new instance of TableRow with predefined properties and values.
 
Method Summary
 boolean equals(Object pObject)
          
<V> V
get(String pProperty)
          
 FormattedValue getColumn(String pName)
          Gets a specific column.
 Map<String,Object> getProperties()
          
 Collection<String> getPropertyNames()
          
 int getRowNum()
          Gets the row number for this row.
 TableRow.RowState getState()
          Gets the current row state.
 int hashCode()
          
<V> V
remove(String pProperty)
          
<V> V
set(String pProperty, V pValue)
          
 FormattedValue setColumn(String pName, FormattedValue pColumn)
          Sets a specific column.
 void setRowNum(int pRowNum)
          Sets the row number for this row.
 void setState(TableRow.RowState pState)
          Sets the current row state.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableRow

public TableRow()
Creates a new instance of TableRow.


TableRow

public TableRow(Map<String,Object> pColumns)
Creates a new instance of TableRow with predefined properties and values.

Parameters:
pColumns - the predefined property/value mapping
Method Detail

set

public <V> V set(String pProperty,
                 V pValue)

Specified by:
set in interface ModelData

get

public <V> V get(String pProperty)

Specified by:
get in interface ModelData

remove

public <V> V remove(String pProperty)

Specified by:
remove in interface ModelData

getProperties

public Map<String,Object> getProperties()

Specified by:
getProperties in interface ModelData

getPropertyNames

public Collection<String> getPropertyNames()

Specified by:
getPropertyNames in interface ModelData

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

setRowNum

public void setRowNum(int pRowNum)
Sets the row number for this row.

Parameters:
pRowNum - the row number

getRowNum

public int getRowNum()
Gets the row number for this row.

Returns:
the row number

setState

public void setState(TableRow.RowState pState)
Sets the current row state.

Parameters:
pState - the state
See Also:
TableRow.RowState

getState

public TableRow.RowState getState()
Gets the current row state.

Returns:
the state
See Also:
TableRow.RowState

setColumn

public FormattedValue setColumn(String pName,
                                FormattedValue pColumn)
Sets a specific column.

Parameters:
pName - the column name
pColumn - the column
Returns:
the column before update or null if there was no column set before

getColumn

public FormattedValue getColumn(String pName)
Gets a specific column.

Parameters:
pName - the column name
Returns:
the column for the name or null if there is no column with the name


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.