tag:blogger.com,1999:blog-4691915549420037229.post3006006695990154908..comments2023-10-02T08:22:09.656-07:00Comments on The LWUIT Blog: Lost Again: Searchable List With Text FieldOfir Leitnerhttp://www.blogger.com/profile/08721818051943678344noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-4691915549420037229.post-85252518817920930172012-04-28T08:03:17.431-07:002012-04-28T08:03:17.431-07:00hi dear shai
i want to show T9 mode in menubar aft...hi dear shai<br />i want to show T9 mode in menubar after keypress .i set "setReplaceMenu=true" but nothing happen.<br />whats the problem?s.pahlavanhttps://www.blogger.com/profile/06820111086258622861noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-84502228180548772162011-02-16T22:56:50.392-08:002011-02-16T22:56:50.392-08:00Yes its possible to use checkboxes in such a list ...Yes its possible to use checkboxes in such a list using a renderer and model data.<br><br>Since I wrote this we optimized LWUIT to not register animations implicitly. This broke some compatibility since it required calls to register animated.Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-40970386152829257842011-02-16T04:49:09.208-08:002011-02-16T04:49:09.208-08:00This is terrific, but I have one issue which I wan...This is terrific, but I have one issue which I want to share a fix for. I used this code to modify the ComboBox's popup list box. Multi-click on a single key isn't working when the ComboBox is inside a Dialog because it seems that the animate() routine is not called.<br><br>I got this to work by adding these routines stolen from TextField into the code:<br> protected void initComponent() {<br> getComponentForm().registerAnimated(this);<br> }<br><br> protected void deinitialize() {<br> getComponentForm().deregisterAnimated(this);<br> }Andyhttp://www.blogger.com/profile/12931340073338107904noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-92085530473409639882010-07-22T02:38:48.470-07:002010-07-22T02:38:48.470-07:00You need to increase the delay from 1000 which mak...You need to increase the delay from 1000 which makes typing longer words harder to 2000 or even 3000.Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-34158071008079845582010-07-15T07:41:26.670-07:002010-07-15T07:41:26.670-07:00Hi,I know this post is old. But I saw the code an...Hi,<br>I know this post is old. But I saw the code and what it does and I think It's wonderful.<br><br>I implemented my own searchable list but I have a problem.<br><br>When I press a number in the keyboard it appear the letter that correspond with that key. But, for example, if I want to enter the word mom, I have to press the number 6 first one time, then two times and finally three times, to get mom. But at the end what I get is just m. Do you understand my problem?. I'm sorry, I don't know how English very well.Laurahttp://www.blogger.com/profile/16947521101191707487noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-84440803436792440962010-01-08T10:57:44.141-08:002010-01-08T10:57:44.141-08:00hi, i'm colombian.i need your help. please sh...hi, i'm colombian.<br>i need your help. please show me , how do you do searchable list whit TextField?<br>i don¨t understand :s<br>i need the full code =D please!!!!!luzkhttp://www.blogger.com/profile/00612628317274908970noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-80652913030458185462009-11-12T21:57:22.743-08:002009-11-12T21:57:22.743-08:00@Matthias: you don't need a list for that, jus...@Matthias: you don't need a list for that, just use a container with Box Y layout. Using a list will provide no benefit.Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-48264640255884369782009-11-08T07:20:05.072-08:002009-11-08T07:20:05.072-08:00Hi,that looks fantastic. But is there a possibilty...Hi,<br>that looks fantastic. But is there a possibilty to use instead of Strings complete TextFields as items in a List? As far as i know isn't that possible. Am I right? I do not need the search on-the-fly, but a List with TextFields.<br><br>Thanks.<br><br>Best regards from Finland,<br>MatthiasIm hohen Norden - My Trip to Finlandhttp://www.blogger.com/profile/07149247725279673116noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-88567110628643967052009-11-05T05:16:15.122-08:002009-11-05T05:16:15.122-08:00@Untit1ed: you need to set your form to scrollable...@Untit1ed: you need to set your form to scrollable false. The form is scrolling instead of the list...Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-23362462545825032902009-11-03T20:54:57.233-08:002009-11-03T20:54:57.233-08:00This line helped though, thanks.search.setY(-1*get...This line helped though, thanks.<br><br>search.setY(-1*getAbsoluteY()+46);<br>getAbsoluteY() returned "46" for the first item in my list, and was decreasing with further list items.Untit1edhttp://www.blogger.com/profile/10327261940585705844noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-43163685150745142922009-11-03T20:36:22.903-08:002009-11-03T20:36:22.903-08:00Thanks, it works... kinda. Text box is not floatin...Thanks, it works... kinda. Text box is not floating though. It always appears at the beginning of the list, so if I scroll one screen down, it won't be visible.<br><br>I looked at getScrollY() and getY() of my List, but they both always return zeroes.Untit1edhttp://www.blogger.com/profile/10327261940585705844noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-36676207761707272452009-11-01T00:14:48.703-07:002009-11-01T00:14:48.703-07:00@Untit1ed: Please read the last two sentences of t...@Untit1ed: Please read the last two sentences of the post...Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-66976876549819789992009-10-31T16:39:24.409-07:002009-10-31T16:39:24.409-07:00Hi Shai,I am trying to use your example, but when ...Hi Shai,<br><br>I am trying to use your example, but when I press any character the textbox appears with that symbol and right after the following exception is thrown:<br>java.lang.NullPointerException<br> at com.sun.lwuit.TextField.installCommands(TextField.java:954)<br> at com.sun.lwuit.TextField.keyPressed(TextField.java:916)<br> at com.periodic.ui.ListForm$1.keyPressed(ListForm.java:49)<br> at com.sun.lwuit.Form.keyPressed(Form.java:1524)<br><br>If I ignore this exception everything works fine, the textbox just doesn't appear anymore, but the search feature works.Untit1edhttp://www.blogger.com/profile/10327261940585705844noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-35329320583865289162009-09-21T05:48:38.288-07:002009-09-21T05:48:38.288-07:00Oh, that's the ticket...I explicitly set smoot...Oh, that's the ticket...I explicitly set smooth animation to off for testing performance and didn't care to set it on again, thanks for the heads-up. May I take this opportunity to thank you for all your efforts with LWUIT and your always helpful posts and answers.<br><br>Regards from Germany<br>AndreasAndreas aka mouzpushahttp://www.blogger.com/profile/01488586322588479553noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-28618996834723172192009-09-20T02:16:06.501-07:002009-09-20T02:16:06.501-07:00@Andreas when smooth animation is enabled (it is b...@Andreas when smooth animation is enabled (it is by default) a list automatically registers itself as animated. So this works for me without registering animated since I'm deriving from List (which does that in its initComponent method).Shai Almoghttp://www.blogger.com/profile/00438710609860092709noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-3938401468108251862009-09-18T09:03:19.434-07:002009-09-18T09:03:19.434-07:00Hello Shai, in my application I had to use registe...Hello Shai, in my application I had to use registerAnimated() for my List component, in your Demo app, it worked without registerAnimated(). Could you clarify why your example works without registerAnimated()? The behaviour in my application while I didn't registerAnimated() caused me some headache :-)<br><br>Regards from Germany<br>AndreasAndreas aka mouzpushahttp://www.blogger.com/profile/01488586322588479553noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-56943156919672935492009-09-16T07:34:40.097-07:002009-09-16T07:34:40.097-07:00Hi Shai,First off, love the framework. I've be...Hi Shai,<br><br>First off, love the framework. I've been designing a developing speech recognition app for Vlingo using it, and was able to prototype a full UI in less than a week!<br><br>Is there a discussion board somewhere where I can ask questions and provide feedback? I have a few questions and a few helpful comments on your API design that I'd like to share.<br><br>Cheers,<br>JoeJoe Cerrahttp://www.blogger.com/profile/16014780190831777143noreply@blogger.comtag:blogger.com,1999:blog-4691915549420037229.post-27806612373787007462009-09-15T03:03:40.981-07:002009-09-15T03:03:40.981-07:00i used existing searching technique.i need to chan...i used existing searching technique.<br>i need to change this new searching function.<br>how i can implement in my application? <br><br>Thanks in advance.<br><br>BharathBharathhttp://www.blogger.com/profile/12966945462386816828noreply@blogger.com