Hi All,
I am using FlexTable to populate 100 rows and each row has around 90
columns.
below is my code to acheive that..But its very time consuming. please
advise if anyother easy way to implement this also if anyother
controls I can try out other than FlexTable.
[code]
public void onSuccess(Object result) {
try {
System.out.println("Start of Movt Values");
ArrayList<String[]> movData = (ArrayList<String[]>) result;
System.out.println("movData.size.."+movData.size());
int currentrow = 0;
if (movData.size() > 0) {
for (int movIndex = 0; movIndex < 30; movIndex++) {//movData.size()
String rowDataObj[];
rowDataObj = new String[86];
rowDataObj = (String[])movData.get(movIndex);
//set the text in Flex Table
for (int cell=0;cell<rowDataObj.length-1;cell++){
flexTable.setText(movIndex+1, cell, rowDataObj[cell].toString());
System.out.println("completed "+movIndex);
}
currentrow = flexTable.getRowCount();
//Last item in the array would be the format String stored in
DbFetchImpl while taking from Movements
rowFormatter.addStyleName(currentrow-1,rowDataObj
[rowDataObj.length-1].toString());
}
//change the first column style equal as first row
//draw the border
for(int i = 1;i< flexTable.getRowCount();i++){
cellFormatter.addStyleName(i, 0, "FlexTable-ColumnLabelCell");
for(int j=1;j<flexTable.getCellCount(i);j++){
cellFormatter.addStyleName(i, j,"FlexTable-Cell");
}
}
}
System.out.println("End of movt Values");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
}
[/code]
Please advise..I am facing performance issue with this..
Thanks
Suren
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---