ListField keep focus after setSize (0)

I have a structure similar to the following screen:

Screen|-Field|-Manager  |-ListField  |-Field

I never call insert() or delete() on the ListField, only setSize(). My problem is that if setSize (0) is called, the rest in the ListField object, even if ListField.isFocusable () returns false. I tried the code in one of the methods of the Manager similar to the following:

listField.setSize(newSize);

if(newSize == 0 && isFocus()){  moveFocus(1,0,0);  if(isFocus)  {    moveFocus(-1,0,0);  }}

MoveFocus() statements are achieved, but none of them moving out of the ListField.

Is there something special I need to do to get the ListField to transmit the update if it is set to 0 the size?

Question has been published and closed on RIM Issue Tracker: https://www.blackberry.com/jira/browse/JAVAAPI-79 .

Tags: BlackBerry Developers

Similar Questions

  • I have a folder of files in local folders that keeps reappearing after that I erase it. I tried to fix the folder several times. Any suggestions?

    I have a folder of files in local folders that keeps reappearing after that I erase it. I tried to fix the folder several times. Any suggestions?

    This is the name of a folder? Who will be in a file name in your file system. Given his situation, is it possible or likely that the total path length exceeds the limit of the operating system?

    For example: http://windows.microsoft.com/en-gb/windows/file-names-extensions-faq#1TC=windows-7

    This is not to talk about any other limit which may be inherent in the way that Thunderbird uses names of files internally.

    In your position, I explore the Thunderbird profile and check paths, as they appear in the file manager. You should be able to remove all folders that are unwanted here also.

  • Tecra 9000 keeps frezzing after 30 seconds

    Hello

    I currently have a laptop Tecra T9000 and it keeps frezzing after about 30 seconds.

    I tried to reinstall Windows XP but it frezzez before any installation can take place.
    I search for the virus and the inside of the laptop looks clean... I can't work out what it's like!

    If you have any ideas please help...

    Thank you

    Despite news that the laptop seems to be clean, I guess it could be an overheating problem. High temperature could cause such freezing and BONES break downs.

    In most cases, the cooling modules internal don t run with maximum efficiency because of the dust and debris inside the cooling fans.
    A cleaning procedure simply would improve cooling performance and decrease the temperature.

    On the other hand, issues could be caused by a defect in RAM. Perhaps one of the modules is not ok.
    I had a similar problem and eventually, I discovered that one of the RAM modules is defective.
    The OS didn't freeze after 30 min, but after a few minutes.
    I think that its worth too much check the modules.

    Concerning

  • Satellite P300 itself keeps restarting after the initial splash screen.

    My Satellite P300 itself keeps restarting after the initial splash screen.

    Start-up of the first screen with the F2 and F12 options down is displayed, the screen goes black, then a cursor appears in the upper left corner and flashes once or twice. Then the laptop stops and restarts and goes through the same process again and again.

    That's all with the power adapter is plugged in. If disconnected, he goes through the above process and close with no reboot.

    Any help or advice would be much appreciated.

    Post edited by: aic-poppy

    Start your laptop and enter the settings of the BIOS (F2). Set to its default value. Restart your computer, and press F8 to access the advanced boot menu.
    To start the laptop in safe mode and let us know if it works, try it please.

  • Portege R600-10 q keeps freezing after a short period of use

    Hi I have a Portege R600-10, q,

    It keeps freezing after a short period of use - although if I leave it for a few minutes, sometimes it can be useful.
    If it is turned on for long enough, it will display a blank screen and the fans will turn on very hard.

    I cleaned ports ventilation and re-glued the CPU, and it did not make a difference.

    I ran HDD and memory (mhdd/memtest) diagnostics, and they have all done.

    I reinstalled Windows (from the OEM disc) and I still see the same question.

    Anyone have any ideas on how to solve this problem?
    Thank you

    Hello

    Have you noticed that when running special software or apps?

    I can tell you that a memtest does not always provide a good result
    Even if the memtest said there is no problem with memory, RAM modules could malfunction

    Otherwise, it may be a motherboard problem, but this is just speculation

  • all my game pc keep crash after I did a reinstall complete.

    all of my pc game keep crashing after full reinstallation of xp pro

    I dunn a full reinstall 4 times for this problem, but not good.

    I reinstalled before and never had this problem before.what is the problem?

    Well, I fixed my crash problem temporarily.

    I crossed my fingers and did a clean uninstall of sp3. to my surprise two hours + processors cfm with no crash. - YAY finally and not 10 min don't crash whith no record.

    going to reinstall my 250 others and see if it will run under sli. and if this goes well I'll try to reinstall sp3.

    Thank you for your time Zuhl3156. I guess the absolute frustration and sleepless clouds the mind.

  • screen keeps scrolling after the release of mouse... I'm on ie 7

    screen keeps scrolling after letting go of mouse... I use ie 7... just yesterday started this making

    Hello Silverlady1145,

    Thank you for your message.  Have you tried to unplug and plug in your mouse back in?  In addition, if your mouse is wireless, you can try to replace the batteries.
    We can't wait to hear back on your part.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • New hard drive try to install Windows vista but it keep suspended after 60% and collapsed them

    New hard drive try to install Windows vista, but it keep suspended after 60% collapsed I tried a few time every time I had to wait for 5 hours, but the same thing happen again and again can help you pleaaaaaaaaaaaaase

    Monastir,

    What happens when it stops it is have a Sata driver. It is on the drivers cd you received with your computer. You can also start the computer and press F2 to enter the bios. From there down to Configuration system - SATA Operation and change this to ATA. It is located to AHCI. Save the changes and restart the installation. Once you have loaded Windows and drivers installed, you will need to go back to AHCI.

    Dell-Jesse

  • PC keeps restarting after that I copied some files

    my pc keeps restarting after countless attempts trying to remove this file dvd that I copied from a dvd. When I tried to delete this file using a different account, the cycle just repeats.

    Follow these steps to try to solve your problems of boot.

     

     

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    See you soon.

    Mick Murphy - Microsoft partner

  • BlackBerry Z10 z10 usb keeps diconnecting after faulty security wipe

    Hello

    I just tried a security wipe and got the icon "connect the phone to the computer" when starting. In fact, the phone is blocked here. My phone usb cable everything worked fine earlier today, but now it just keeps disconnecting after 1 or 2 seconds. I have already installed the BB link and it does not recognize my phone but I can't reload, because it keeps disconnecting. Any suggestions on what I should do? Will be a great help, thank you.

    Here is the official solution for a deletion of security failed:

    http://www.BlackBerry.com/BTSC/KB33480

    If you do not link to recognize the device then I would try to load the operating system manually:

    Download the correct autoloader for your device from the first post in the thread below. You need to know your complete model number (e.g. STL100-1 (or - 2,-3, - 4) located in settings > on.) Be sure to download your model which contains the radio file.

    10.2.1.1925 OS: http://forums.crackberry.com/bb10-leaked-beta-os-f395/lengend-presents-10-2-1-1925-all-q-z-887047/

    Close the link and leave the connected device.

    You will need to unzip the file downloaded from above before you can run.  If you do not have a decompression application on your computer, you can download 7Zip here: http://www.7-zip.org/download.html

    Double-click the automatic charger that you downloaded.

    The process should take about 5 minutes or more. When it's done, you will need complete the startup process before you can connect to Link, and restore the data.

    When you are finished, you can restore your backup, although I do NOT recommend restore your backup of the settings that it is best to start with this new OS, but it is up to you. You may experience some bugs here and there to restore the passage of the backup settings. Media and Application data seem to be OK to restore.

  • Entry text box loses focus after setting the innerHTML

    I'm trying to change my widget so that it supports the search when you type.

    But when my javascript event fires to submit ajax request entry box retains loses focus.  I tried to reset the focus after writing the html code with blackberry.focus.setFocus (), but this function sets the cursor at the beginning of the entry rather than at the end zone, so I can continue typing.

    Is it possible to update the html code in a DIV without losing the focus on my entry box, or there at - it a way to make the blackberry.focus.setFocus () to go to the end of the string currently in the box?

    Here is an example of the code that I am trying to work in my 9700 Simulator:

    ------ JS Code---function doLiveSearch(str) {  if (str.length==0) {    document.getElementById("results").innerHTML="";    return;  }   xmlhttp=new XMLHttpRequest();  xmlhttp.onreadystatechange = function() {   if (xmlhttp.readyState==4 && xmlhttp.status==200) {    document.getElementById("results").innerHTML=xmlhttp.responseText;     blackberry.focus.setFocus("search");    }  }  xmlhttp.open("GET","livesearch.php?q="+str,true);  xmlhttp.send();}
    
    ------- HTML Code-----
    ----here's an example what my lookup code returns.----
    One
    Two

    Try with selectionStart and selectionEnd before focus:

  • Laptop keeps freezing after starting

    My laptop (HP pavilion tx2500) keeps freezing after the start, there is no error message warning that the thing just crashes without warning moments after startup, someone had this problem and know how to solve this problem.

    It could be a number of things, then we should try to eliminate some. Try to enter the HP utilities but endearing running tests of disk and tape on the F10 key, I think and hard memory.  Try to run Notepad without the battery installed and just the power adapter.  Try to use one piece of memory and try the two slots. Then try the other room and try the two slots.  If you don't have that one piece of memory, at least try the other location.  Try a hard reset:

    http://h10010.www1.HP.com/ewfrf/wc/document?LC=en&DLC=en&cc=us&DocName=c01684768&product=1132551

  • My computer acer laptop keeps closing after about 5 minutes in standby mode. Is it possible to fix this?

    My computer acer laptop keeps closing after about 5 minutes in standby mode.  Is it possible to fix this.

    Original title: power shutdpwn

    Hello

    Have you checked your power options?

    http://www.thewindowsclub.com/configure-power-plan-Windows-8

  • Set the Focus after validation error message

    I have the text element.
    It s have a validation. -> The order of the day is a valid date...

    In the section - Error Message:

    < script type = "text/javascript" >
    Alert ('Invalid Date')

    document.getElementById("P5000_DATA_CAD_INI").focus ();
    html_GetElement ('P5000_DATA_CAD_INI'). Focus();
    < /script >

    My question is how do I set the focus after the validation error message?

    I put document.getElementById("P5000_DATA_CAD_INI").focus ();
    html_GetElement ('P5000_DATA_CAD_INI'). Focus();
    but the two isn´t of work...
    Why?

    Thank you

    Hello

    You must load the jQuery library in the HTML page header.
    I gave the example of how do

    Then place my example of validation error text

    BR, Jari

  • Keep the focus after the validation and alert error

    I have a code that works as I want with a glitch. The alert works when the character count in incorrect, and it keeps the focus on the field. The problem is that once the correct number of characters is entered in the field, he keeps emphasizing the field until you tab out of it.

    I need it to work as it does, with the exception that when the correct character number is entered, he needs to go to the next field automatically.

    If the alert is removed, it works correctly, except, of course, I do not receive the alert. Here is my code.


    var r = new RegExp();
    r.Compile ("^([0-9]{8})$", "i");

    var result = r.test (this.rawValue);

    If (result is true)

    true;

    on the other
    App.Alert ("the SAP number is 8 numbers. Please re - enter the SAP number. ", 0) ;
    xfa.host.setFocus (this);

    Thank you

    You must add the braces to the other. Strapless, it executes only the first statement so setFocus is still running. As usual I use braces on all if-else statements.

    If (result == true) {}

    true;

    }

    else {}

    App.Alert ("the SAP number is 8 numbers. Please re - enter the SAP number. ", 0) ;

    xfa.host.setFocus (this);

    }

    Steve

Maybe you are looking for