-
FEATURED COMPONENTS
First time here? Check out the FAQ!
¡How Get Value Of Doublebox Inside A Listbox? Urgent!!!! Please!!!
int index = 1; Listitem li = box_Lista.getItemAtIndex(index); double value_pay = li...... ?????
Please, Thank's.
Ideally, you should bind a list/map/array/set to your listbox model, and your doublebox should in turn be bound to an item attribute. In this way, you can iterate through the model rather than trying to pull the value from the component itself.
Btw, a lot of developers won't respond when someone posts "Urgent!!!". Just an FYI meant to help you out in the future.
Hi you can do like this..I have Checkbox inside my ListCell i used this code you have to do same thing to get the doublebox.
for (Listitem item : set1) { List<Component> com = item.getChildren(); Checkbox chk = (Checkbox) com.get(0).getLastChild(); Data data = item.getValue(); if (chk.isChecked()) { _orderBy.append(data.getValue() + " ASC "); _orderBy.append(","); } else if (!chk.isChecked()) { _orderBy.append(data.getValue() + " DESC "); _orderBy.append(","); } }
Asked: 2012-09-08 21:09:02 +0800
Seen: 167 times
Last updated: Sep 15 '12