|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.codegen.pda.db.DTODataSource
public class DTODataSource
Grid DataSource that saves the DTOs.
| Field Summary | |
|---|---|
protected java.lang.String[] |
columnNames
|
protected IDAO |
dao
|
protected totalcross.util.Vector |
dtos
|
protected java.lang.String[][] |
values
|
protected IViewForm |
viewForm
|
| Constructor Summary | |
|---|---|
DTODataSource(IDAO dao,
IViewForm viewForm)
Constructs DTODataSource |
|
| Method Summary | |
|---|---|
IDataFormatter |
getDataFormatter()
|
IDTO |
getDTOAt(int row)
Gets the DTO by the passed row. |
java.lang.Object[] |
getDTOs()
Gets all the DTOs |
protected java.lang.String |
getFormattedValue(IDTOColumn column,
java.lang.Object value)
|
int |
getItemCount()
Gets the item count. |
java.lang.String[][] |
getItems(int startIndex,
int count)
|
IDTO |
removeDTOAt(int row)
Removes the DTO. |
void |
setDataFormatter(IDataFormatter dataFormatter)
|
void |
setDTOs(java.lang.Object[] dtos,
java.lang.String[] columnNames,
int count)
Sets the grid's DTO. |
protected void |
setValues(java.lang.Object[] dtos,
int count)
Sets the values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] columnNames
protected IDAO dao
protected totalcross.util.Vector dtos
protected java.lang.String[][] values
protected IViewForm viewForm
| Constructor Detail |
|---|
public DTODataSource(IDAO dao,
IViewForm viewForm)
dao - viewForm - | Method Detail |
|---|
public IDTO getDTOAt(int row)
row -
public java.lang.Object[] getDTOs()
public int getItemCount()
public java.lang.String[][] getItems(int startIndex,
int count)
getItems in interface totalcross.ui.Grid.DataSourcepublic IDTO removeDTOAt(int row)
row - The row to be removed
public void setDTOs(java.lang.Object[] dtos,
java.lang.String[] columnNames,
int count)
dtos - count - number of lines to be shown
protected void setValues(java.lang.Object[] dtos,
int count)
dtos - count -
protected java.lang.String getFormattedValue(IDTOColumn column,
java.lang.Object value)
public void setDataFormatter(IDataFormatter dataFormatter)
public IDataFormatter getDataFormatter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||