Highlight the ObjectListField in PopupScreen

Hi all

I have a PopupScreen (that I build using this constructor)

PopupScreen (new VerticalFieldManager(), Manager.VERTICAL_SCROLL)

In this PopupScreen, I have an ObjectListField of 20 pieces. I can scroll the item in the list, but when I do this I don't see initially hidden elements (i.e. the number of points 11, 12,..., 20, they are black!). I tried to substitute the PopupScreen navigationMovement

protected boolean navigationMovement (int dx, int dy, int, int time status) {}
super.invalidateAll (0, 0, getWidth(), getHeight());
Return super.navigationMovement (dx, dy, status, time);
}

but this does not solve my problem. Someone at - it an idea?

Thank you is advanced.

Kind regards

Gianni.

just try this one

package com.hbdev.main;

import java.util.Vector;
import net.rim.device.api.ui.component.BasicEditField;
import net.rim.device.api.ui.component.ObjectListField;
import net.rim.device.api.ui.container.PopupScreen;
import net.rim.device.api.ui.container.VerticalFieldManager;

public class SearchPopupScreen extends PopupScreen {

    private BasicEditField searchField;
    private ObjectListField list;
    private Vector elenco;

    public SearchPopupScreen(Vector vector) {
        super(new VerticalFieldManager(),VerticalFieldManager.VERTICAL_SCROLL);
        this.elenco=vector;
        searchField = new BasicEditField("Ricerca: ", "");
       VerticalFieldManager vManager=new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL);

        list = new ObjectListField();

        setLista();
        vManager.add(searchField);
        vManager.add(list);
        add(vManager);
      //  add(searchField);
       // add(list);
    }

    protected void setLista() {
        for (int i = 0; i < elenco.size();i++) {
            list.insert(i,elenco.elementAt(i));
        }
    }

    protected boolean navigationMovement(int dx, int dy, int status, int time) {
        super.invalidateAll(0, 0,getWidth(),getHeight());
        return super.navigationMovement(dx, dy, status, time);
    }

}

Tags: BlackBerry Developers

Similar Questions

  • How to highlight the minimum value in a column?

    I need to highlight the lowest value in each column in my spreadsheet. I try to use the conditional nail, but I can't find a function to work as I need.

    One way would be to calculate the minutes in a cell of a footer row, select the cells in the body of the column and apply conditional highlighting like this:

    You must click on the chip address first, and then select the comparison cell, A8 here, then be sure to keep the row and column.

    The A8 from the example formula is = MIN (A).

    The result is a bold 2 (not shown in the screenshots).

    SG

  • Firefox 23.0.1, update is no longer automatically highlights the contents of address bar when I open a new tab.

    The foregoing. When I opened a new tab in the past, before the new update, firefox would automatically highlight the text in the address bar, and I couldn't just start typing here the address of the site that I wanted to. I could quickly get anywhere I want in less than a second. Now, I need to drag, and then click on in the bar every time to address. I installed an add-on called "custom newtab", but it slows down just me lower due to a lag between opening a new tab and the add-on kick and highlighting the contents of address bar.
    What is happening is this:
    Click "new tab".
    New tab opens blank, and the text appears highlighted "google.co.uk" for about a quarter second.
    Loading the Google page and highlight the text becomes not for another second quarter.
    The module comes in and highlights the text "google.co.uk" Meanwhile I have already started typing and end up losing the first part of words, sending me random web pages and research.

    Why this change? Difficulty please!

    Hi ChrisYeomans, a change has been noted in other threads on google.co.uk

    The http URL now automatically redirects to https. Since you did not specify the Protocol in your newtab.url setting, Firefox attempts http and it is immediately redirected to the https domain. You should be able to see this happen unless your computer is much faster than mine.

    Firefox does not handle this redirect elegantly - the URL in the address bar is not enabled unless you click a different tab, and then click back.

    To work around the problem, update your newtab.url to the URL https://www.google.co.uk/ full

  • Highlight the parts of an email address on macbook

    I am typing an address e-mail with only a part of it said - this part before the @.  Mail keeps correcting and highlights the entire address.  Any suggestions?

    Go ahead and type in the email address. Select it and then click on edit on the top menu link Edit > remove the link... at this point, it will be treated as normal text.

  • How to create a formula that highlights the cell that contains the same data that I type in another cell

    Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you

    resolved to myself

  • How can I change the color used by highlighting the e-mail messages

    How can I change the color highlighting the e-mail messages?

    Hi Hofstra64,

    If you talk about the highlight appears when you select an e-mail message, this is related to the "Highlight color" parameter in your general settings of OS X. More information can be found in the following link:

      

    Highlight color

      

    Choose the color that you want to see when you put in highlight or select items.

    OS X El Capitan: General preferences

    https://support.Apple.com/kb/PH21910

    Thank you for using communities Support from Apple!

  • How to highlight the part of the tree?

    Hello everyone!

    I have a question: how to highlight a part of the tree on a condition? (please see the attached vi and the pictures for a clearer explanation of the problem)

    I'm using LabView 2014.

    Thank you very much!

    Have patience.  You only aske the question about 40 minutes earlier.

    You highlight the lines you want by writing the values to the control.  Don't mess with the background color of cell.

    You try to highlight several items?  If so, then right-click on the control and let him choose 0 or more elements.  As soon as you select a mode with the possibility of more than one element, the values of the tree becomes an array of strings, rather than just a string.  You need build an array of strings that you will write to a local variable of the control to highlight the various elements.

  • Highlight the table line number

    I am using this code to highlight the row in my table but my table can vary in size, but a generally more than 1000 lines and code REALLY slows down the rest of my application. I was wondering is there a more efficient way to do the same task?

    PauldePaor wrote:

    I am using this code to highlight the row in my table but my table can vary in size, but a generally more than 1000 lines and code REALLY slows down the rest of my application. I was wondering is there a more efficient way to do the same task?

    I figured that out I made a mistake of programmtic. Rather than use the Columns property node number, I used size of array to the control of the loop that considerably slowed down the action of the function

  • How to highlight the area below a conspiracy?

    I came across this GUI and was interested in knowing how highlight the area underneath the plot as the indicator of power spectrum in the image.

    Thank you!

    Simply change the option 'fill base' (via right click) for a pot of data.

    The Conference titled "Graph Properties...". Plots '. It is called "fill." Same thing.

  • Highlight the row in a table hint

    Hello!

    I'm evaluating the LabVIEW and try to do a few simple steps. Now, I have a table hint that contains all the values of frequency of 50-60. I need to calibrate for each frequency, and I would like to insist on each row of the table. Well, I use SelSize and SelStart property nodes, and it works very well the selected line is displayed. But I have only about 20 lines visible, and to see the rest I need to scroll through the table. How to change the position of scroll programmatically? Or maybe you can suggest the best way to highlight the lines?

    Found the solution: the IndexVals property node defines the line/column numbers to be displayed in the upper left corner of the table hint.

    Kudo goes to AndrewAlford for his reply in this topic:

    http://forums.NI.com/T5/LabVIEW/highlight-a-row-in-table/m-p/320036#M165245

  • Highlight the entire line

    It is possible to activate the option "Highlight the whole line" on and off during execution in a multicolumn listbox?

    I know that the option is available in the right click of the FP control menu, but I was wondering if this can also be done programmatically.

    Thank you

    Kas

    If you have installed the script of LabVIEW, you will have the following property:

    Tone

  • Highlight the current row in a listbox and auto control. position of the ScrollBar

    How can I automatically highlight the assets on line in a listbox control and automatically scroll the vertical scroll bar in the active position (last)?

    Thank you

    What of the attached amendment?

  • Restore not working - the option to restore on my machine does not work. I've highlighted the dates. Does not work in safe mode

    Original title: restoration works not

    The weight restoration on my machine does not work. I've highlighted the dates but I get... impossible to restore messages. I tried switching off my virus checker (Norton) but with the same result.

    Some tools Anti Virus 'protect' your system so that they will not allow a restore of the system work properly.
    For example, if you use Norton/Symantec products, you will see a message like this:
    Restoration incomplete. Your computer cannot be restored...
    It is also a popular Symantec problem (well, I'll be polite and call an "undocumented feature"...), they wrote an article about it:
    According to what you use for malware protection, you may need to disable the product temporarily, do the system restore and then turn the products light up again when the system restore is complete.
    Sometimes you need start your system in Mode safe and so that your protection programs are not running, and then do the system restore.

    Tips from Microsoft in some of their articles that if the system restore does not restore your computer, start in Safe Mode, and then run the system restore.

    It works for some configurations.

  • Vista doesn't let me past the user account icon screen. Let me just highlight the icon / does nothing when double-clicked

    My computer will start up screen that displays the icons of users.  When I double click on my icon (or any other for that matter) it only highlights the icon and does not open it.  So basically I can't get through this form and have not been able to access anything on my computer.  What could be wrong here and what do I do to fix it?

    Hello

    Were there any changes made on the computer before the show?

    Method 1:

    Step 1:

    Try restarting your computer in safe mode and check if the problem persists.

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Step 2:

    If you can log in to safe mode, refer to the link and try to do a system restore:

    What is system restore?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    Method 2:

    If you are not able to connect through safe mode, I suggest you try to do a restore from WinRE (Windows Recovery Environment) system and check if it helps.

    Insert the installation disk to perform the WinRE .

    What are the system recovery options in Windows Vista?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

  • In Windows Vista, when I type text in an e-mail message and then try to highlight, the text disappears.

    I HAVE WINDOWS VISTA. WHEN I TYPE THE TEXT ON THE E-MAILS AND TRY AGAIN AND HIGHLIGHT THE TEXT DISAPPEARS FROM IT. I'VE BEEN ADVISED THAT PERHAPS THE COLOR IS WHITE (I THINK THAT OUR GIRL CAN ACCIDENTALLY CHANGED SOMETHING SINCE IT IS A NEW PROBLEM)
    I DON'T KNOW HOW TO CHANGE THE COLOR. PLEASE CAN YOU HELP. Thank you.

    original title: TEXT DISAPPEARS WHEN I TRY TO highlight THE TEXT

    You can open Notepad and type something.  Press the Insert key, and then try to go back and change what you type and you will see the difference between insert and Overtype.

    I can't help with Firefox, but in IE, you can change the colours via Tools | Internet Options | The colors.  I think Firefox has a similar option, but you need to ask in a forum of Firefox to see the option.  As it happens in the browser, then it is clearly a browser problem and not a problem in Windows mail.

    Steve

Maybe you are looking for