Menu

#1052 ListModelList.listIterator(1).previous().remove() not work

3.0.6
closed-fixed
nobody
None
5
2008-07-15
2008-07-15
Henri Chen
No

Test case.

---
<zk>
<html><![CDATA[
1. You should see listbox with item0 ~ item19.<br/>
2. Press buton "remove previous item" and you should see the 1st item is removed
from the listbox (item0).<br/>
3. Press the button again, you should see item1 is removed.<br/>
4. Done.<br/>
]]></html>
<window>
<zscript><![CDATA[
List lst = new ArrayList(20);
ListModel model = new ListModelList(lst, true);
for(int j = 0; j < 20; ++j) {
lst.add("item"+ j);
}
]]></zscript>
<listbox model="${model}" rows="10"/>
<button label="remove previous item" onClick='Iterator it = model.listIterator(1);
it.previous(); it.remove();'/>
</window>
</zk>

Discussion

  • Henri Chen

    Henri Chen - 2008-07-15

    Logged In: YES
    user_id=89247
    Originator: YES

    Fixed since 7/15.

     
  • Henri Chen

    Henri Chen - 2008-07-15
    • milestone: --> 3.0.6
    • status: open --> closed-fixed
     

Log in to post a comment.