hi Vikas,
I just know Store class to add elements in combo. Actually it returns
String array, but you can pass argument in your store method....
Like :
final Store cmbStore = new SimpleStore(new String[] { "langId",
"code",
"language" }, getLanguages(languageList));
------------
public static String[][] getLanguages(List<LanguageMaster> langList) {
String[][] language = new String[langList.size()][3];
int i = 0;
for (LanguageMaster languageMaster : langList) {
language[i][0] =
String.valueOf(languageMaster.getLangId());
language[i][1] = languageMaster.getLanguageCode();
language[i][2] = languageMaster.getLanguage();
i++;
}
return language;
/*
* return new String[][] { new String[] { "en_IN", "English -
IN" },
new
* String[] { "gu", "Gujarati - IN" }, new String[] { "en_US",
* "English - US" } };
*/
}
Check this out.....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---