|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tekann.codegen.pda.db.MatrixDataSource
public class MatrixDataSource
This class provides some useful methods in order to display and manipulate
data at the grid.
See totalcross.ui.Grid.DataSource for more detail
| Field Summary | |
|---|---|
int |
totalColumns
Total columns of the grid. |
| Constructor Summary | |
|---|---|
MatrixDataSource(int[] visibleColumns,
int[] pkColumns)
Constructs a new MatrixDataSource |
|
MatrixDataSource(int[] visibleColumns,
int[] pkColumns,
java.lang.String[][] data,
int totalColumns)
Constructs a new MatrixDataSource |
|
| Method Summary | |
|---|---|
java.lang.String[][] |
getData()
Getter for data |
java.lang.String[][] |
getItems(int startingRow,
int count)
|
java.lang.String[] |
getPksFromRow(int row)
Get the primary key values |
int |
getTop()
Getter for top |
int |
getTotalItens()
Get the number of items |
void |
setData(java.lang.String[][] data)
Setter fir data |
void |
setTop(int top)
Setter for top |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int totalColumns
| Constructor Detail |
|---|
public MatrixDataSource(int[] visibleColumns,
int[] pkColumns,
java.lang.String[][] data,
int totalColumns)
visibleColumns - The visible columns indicespkColumns - The primary key indicesdata - The datatotalColumns - The number of columns
public MatrixDataSource(int[] visibleColumns,
int[] pkColumns)
visibleColumns - The visible columns indicespkColumns - The primary key indices| Method Detail |
|---|
public java.lang.String[][] getData()
public void setData(java.lang.String[][] data)
data - public int getTop()
public void setTop(int top)
top -
public java.lang.String[][] getItems(int startingRow,
int count)
getItems in interface totalcross.ui.Grid.DataSourcepublic java.lang.String[] getPksFromRow(int row)
row -
public int getTotalItens()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||