BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-13-2007, 06:44 AM   #1
hibbert
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Default refresh the ListField

Please Login to Remove!

Hi,
i've got a little problem with my ListField:
I add 3 Items to my Listfield, now i want to refresh then, so i try to delete them all and add them again.
It is possible that there are 4 items before and after the refresh there should be 2 Items.

here is my source, maybe anyone can say me what's wrong with it:
Code:
 public ListField myList = new ListField();
 public ListCallback myCallback = new ListCallback();
// ...
 public void drawList () {
        String fieldOne = new String("Zeile 1");
        String fieldTwo = new String("Zeile 2");
        myList.setCallback(myCallback);
        myList.insert(0);
        myList.insert(1);
        myList.insert(2);
        myCallback.insert(fieldOne,0);
        myCallback.insert(fieldTwo,1);
        myCallback.insert(fieldOne,2);
        add(myList);
    }
    
    public void updateList() {
        String neu = new String("--> "+System.currentTimeMillis());
        myList.insert(0);
        myCallback.insert(neu,0);
        myList.invalidate();
        //*/
    }
After the refresh there is just one item, ok thats correct, but in the first row does not appear the timestamp. It's always displayed "Zeile 1".

What is wrong?

thanks hibbert
__________________
My English is so bad, that makes me nobody so quickly after
Offline  
Old 01-08-2008, 02:51 AM   #2
hibbert
Thumbs Must Hurt
 
Join Date: May 2007
Location: berlin, germany
Model: 8310
PIN: N/A
Carrier: vodafone
Posts: 163
Default

*push*
__________________
My English is so bad, that makes me nobody so quickly after
Offline  
Old 01-10-2008, 12:43 AM   #3
Preetimandap
New Member
 
Join Date: Jan 2008
Model: no
PIN: N/A
Carrier: se
Posts: 8
Default

Can you tell me clearly, exactly what u want??
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


CBB61 250V  Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF picture

CBB61 250V Capacitor 2 wires 1/2/3/3.5/4/5/6/7/8/9/10/12/15/18/20/24/25/30 UF

$129.95



6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59



45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk picture

45/5 MFD ±5% Dual Run Capacitor 370 450 VAC CBB65 AC Motor HVAC 45+5 uF Fan 10pk

$89.99



5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF picture

5pc Radial Electrolytic Capacitor 250V 100V 50V 25V 16V 0.22uF-4700uF 10000uF

$27.99



1/5pcs 100V~400V 0.1uF~100uF MKP Audio Metallized Polypropylene Film Capacitor picture

1/5pcs 100V~400V 0.1uF~100uF MKP Audio Metallized Polypropylene Film Capacitor

$63.90



10 MFD AC Capacitor, 10uF ±5% 370VAC/440 Volt Oval Run Start Capacitor picture

10 MFD AC Capacitor, 10uF ±5% 370VAC/440 Volt Oval Run Start Capacitor

$10.97







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.