com.tekann.codegen.pda.db
Class DTODataSource

java.lang.Object
  extended by com.tekann.codegen.pda.db.DTODataSource
All Implemented Interfaces:
totalcross.ui.Grid.DataSource

Deprecated.

public class DTODataSource
extends java.lang.Object
implements totalcross.ui.Grid.DataSource

Grid DataSource that saves the DTOs.

Author:
Evandro Rathke

Constructor Summary
DTODataSource(IViewForm viewForm)
          Deprecated. Constructs DTODataSource
 
Method Summary
 IDataFormatter getDataFormatter()
          Deprecated.  
 IDTO getDTOAt(int row)
          Deprecated. Gets the DTO by the passed row.
 java.lang.Object[] getDTOs()
          Deprecated. Gets all the DTOs
 int getItemCount()
          Deprecated. Gets the item count.
 java.lang.String[][] getItems(int startIndex, int count)
          Deprecated.  
 IDTO removeDTOAt(java.lang.String tableName, int row)
          Deprecated. Removes the DTO.
 void setDataFormatter(IDataFormatter dataFormatter)
          Deprecated.  
 void setDTOs(java.lang.String tableName, java.lang.Object[] dtos, java.lang.String[] columnNames, int count)
          Deprecated. Sets the grid's DTO.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTODataSource

public DTODataSource(IViewForm viewForm)
Deprecated. 
Constructs DTODataSource

Parameters:
viewForm -
Method Detail

getDTOAt

public IDTO getDTOAt(int row)
Deprecated. 
Gets the DTO by the passed row.

Parameters:
row -
Returns:
An IDTO

getDTOs

public java.lang.Object[] getDTOs()
Deprecated. 
Gets all the DTOs

Returns:
An Object array

getItemCount

public int getItemCount()
Deprecated. 
Gets the item count.

Returns:
An integer

getItems

public java.lang.String[][] getItems(int startIndex,
                                     int count)
Deprecated. 
Specified by:
getItems in interface totalcross.ui.Grid.DataSource

removeDTOAt

public IDTO removeDTOAt(java.lang.String tableName,
                        int row)
Deprecated. 
Removes the DTO.

Parameters:
row - The row to be removed
Returns:
The removed IDTO

setDTOs

public void setDTOs(java.lang.String tableName,
                    java.lang.Object[] dtos,
                    java.lang.String[] columnNames,
                    int count)
Deprecated. 
Sets the grid's DTO. Create an array of items that will be shown.

Parameters:
dtos -
count - number of lines to be shown

setDataFormatter

public void setDataFormatter(IDataFormatter dataFormatter)
Deprecated. 

getDataFormatter

public IDataFormatter getDataFormatter()
Deprecated.