How to determine if the rank of the acquired list focus?

Hi all

I have ListField with custom reminder.

When the user change focus by the movement of the navigation, drawListRow() is called several times - for each focus-changed event.

How can I determine in the method drawListRow() if current rank on the FOCUS_GAINED event?

I can do that by following the path:

public void focusChanged( Field field, int eventType )    {        mIsFocusGained = false;

        if( eventType == FOCUS_GAINED )        {            mIsFocusGained = true;        }    }

 public void drawListRow( ListField listField, Graphics graphics, int index, int y, int width )    {        int rowHeight = listField.getRowHeight();        int selectedIndex = getSelectedIndex();

        if( index == selectedIndex && mIsFocusGained )        {            drawHighlightRegion( graphics, HIGHLIGHT_FOCUS, true, 0, y, width, rowHeight );        }---------

But I can do that directly in drawListRow()?

Thank you

I expected allows you to change your listener to update as follows:

if ( eventType == FOCUS_GAINED )
{
mIsFocusGained = true;
}
else
if ( eventType == FOCUS_LOST )
{
mIsFocusGained = false;
}

I think you should ignore FOCUS_CHANGED because the listField stil keep focus in these events.

I'm not clear on what you mean by that:

"is that a function is to determine/get current theme ceremony?

I thought you did that with your FocusChange listener?

Tags: BlackBerry Developers

Similar Questions

  • How to determine whether the current operating system is windows, or MAC?

    How to determine whether the current operating system is windows, or MAC?

    CSparrow wrote:

    operatingSystem var = $.getenv ("OS");

    operatingSystem = operatingSystem.toString ();

    alert (operatingSystem);

    It gives me Windows NT Windows 10

    With the help of:

    alert($.os);
    

    works for me.

    (result: Windows/64 10.0)

    and the Silly-V code

    Folder.FS

    gives you the name of the operating system

  • How can I remove the long list of notifications I on iPad?

    How can I remove the long list of notifications that I have on my iPad?

    Please treatment this issue Apple.

  • How can I get the songs on my wish list?  There is no indication as to how to buy on the wish list page.

    How can I get the songs on my wish list?  There is no indication as to how to buy on the wish list page.  I searched for over an hour for the method to buy songs from the wish list.  Very frustrated!

    Is this a question about Apple TV.

  • How can I print the individual lists in a group of Windows Mail?

    Original title: Group of Windows Mail in Vista

    How can I print the individual lists in a group of Windows Mail?

    There is no printing functionality in Windows Vista Mail group.

    However, if you highlight all the individuals that you want to print, then click Print in the toolbar, it will print out them pretty much the same way that you would expect from a group.

    Click here to enlarge this photo.

  • I need to unlock the email address that I've blocked by mistake on the red list. How can I find the blocked list?

    How can I get the blocked list of emails that I blocked to come to my email?

    You need to tell us what e-mail program using.
  • How to determine that the user has purchased an article or not?

    Hello

    Can someone tell me how can I determine if the user has purchased an article or not?

    Until now, I add to the cart and then allow user to pay for this item through Paypal. But now, my goal is to show all these items that the user has already added, but not bought yet.so, whenever user logs in a/c, he can see the item in my cart.

    Please... help me

    This sounds like a question of PayPal, then you will want to check these forums. If you were using in-app purchases of BB, so yes, it has an API to check the previous in-app purchases.

  • How to determine if the user of the mobile device is looking at a site office?

    Hello


    We have activated the Mobile support for a site.  So now, when a user on a mobile device go to the website they see mobile model.

    The mobile template includes a link to the user to view the full site: < a href = "/ index.html? visitorDeviceClass = desktop" > full view of the Site < /a >

    We want to add a link 'view the Mobile Site"on the Office site but only for users of mobile devices.

    We tried to {{globals.cookie}} and {{globals.visitor}} to see if there is something we can watch (using javascript) to determine if we have a mobile user who visits the site of the office.  But it looks like visitorDeviceClass and deviceClass are set to "desktop" for real desktop users and mobile users who clicked on the link "View Full Site.

    We believe that we could be able to watch her User Agent but do not know what OS is displayed for Windows phones and we are not dependent on not user agent.

    Question:

    Does anyone know of a way for us to determine if a mobile device user look at the desktop version of the site so that we can add a link 'view the Mobile site?

    Thank you

    sepyh

    Hey,.

    You can basically determine the device of the visitor to the site in two ways:

    Hope this helps,

    Mihai

  • How to determine if the layers overlap?

    I am trying to find a way to determine if the different layers have pixels that overlap.  The layers are formed at random and need to fit as closely as possible, so using the limits to check the overlap would not work.  I'm basically looking for a way to detect duplication based on pixels that are 100% opac.  Is there an easy way to do this in a script?

    I had some free time at work so here is my implementation, only problem I do not know how to remove the "no dialogue selected pixels.

    Alert (checkOverlapping ());

    function checkOverlapping()

    {

    var selectedLayers = getSelectedLayersIdx();

    If (selectedLayers.length! = 2) {alert ("Please select the two layers you want to check"); return null ;}}

    makeActiveByIndex(selectedLayers[0]);

    selectActivePixels();

    makeActiveByIndex(selectedLayers[1]);

    intersectActivePixels();

    activeDocument.quickMaskMode = true;

    activeDocument.activeLayer.threshold (128);

    activeDocument.quickMaskMode = false;

    Try

    {

    activeDocument.selection.bounds;

    }

    catch (e)

    {

    return false

    }

    activeDocument.selection.deselect ();

    Returns true;

    }

    function cID (inVal) {return charIDToTypeID (inVal) ;}

    function of the sID (inVal) {return stringIDToTypeID (inVal) ;}

    function selectActivePixels()

    {

    var desc15 = new ActionDescriptor();

    var ref8 = new ActionReference();

    Ref8.putProperty (cID ('channel'), cID ("FSC"));

    desc15.putReference (cID ("null"), ref8);

    var ref9 = new ActionReference();

    Ref9.putEnumerated (cID ('channel'), cID ('channel'), cID ("TN"));

    desc15.putReference (cID ("T"), ref9);

    executeAction (cID ("setd"), desc15, DialogModes.NO);

    }

    function intersectActivePixels()

    {

    var desc18 = new ActionDescriptor();

    var ref13 = new ActionReference();

    ref13.putEnumerated (cID ('channel'), cID ('channel'), cID ("TN"));

    desc18.putReference (ref13 ("null"), cID);

    var ref14 = new ActionReference();

    ref14.putProperty (cID ('channel'), cID ("FSC"));

    desc18.putReference (cID ("with"), ref14);

    executeAction (cID ("Introduction"), desc18, DialogModes.NO);

    }

    function makeActiveByIndex (idx) {}

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putIndex (cID ("Lyr"), idx)

    desc.putReference (cID ("null"), ref);

    desc.putBoolean (cID ("MKV"), true);

    executeAction (cID ("TPCV"), desc, DialogModes.NO);

    };

    function getSelectedLayersIdx() {}

    var selectedLayers = new Array;

    Var ref = new ActionReference();

    ref.putEnumerated (cID ("Dcmn"), cID ("Ordn"), cID ("Trgt"));

    var / / desc = executeActionGet (ref);

    If (desc.hasKey (sID ("targetLayers"))) {}

    DESC = desc.getList (sID ("targetLayers"));

    var c = desc.count

    var selectedLayers = new Array();

    for (var i = 0; i)<>

    try {}

    activeDocument.backgroundLayer;

    selectedLayers.push (desc.getReference (i). getIndex());

    } catch (e) {}

    selectedLayers.push (desc.getReference, (i), .getIndex () + 1);

    }

    }

    } else {}

    Var ref = new ActionReference();

    ref.putProperty (cID ("Rprp"), cID ("ItmI'));

    ref.putEnumerated (cID ("Lyr"), cID ("Ordn"), cID ("Trgt"));

    try {}

    activeDocument.backgroundLayer;

    selectedLayers.push (executeActionGet (Ref), .getInteger (cID ("ItmI"))-1);

    } catch (e) {}

    selectedLayers.push (executeActionGet (Ref) .getInteger (cID ("ItmI")));

    }

    var vis = app.activeDocument.activeLayer.visible;

    if(vis == true) app.activeDocument.activeLayer.visible = false;

    var desc9 = new ActionDescriptor();

    var list9 = new ActionList();

    var ref9 = new ActionReference();

    Ref9.putEnumerated (cID ('Lyr'), cID ('Ordn'), cID ('Trgt'));

    list9.putReference (ref9);

    desc9.putList (cID ('null'), list9);

    executeAction (cID ("'Shw"), desc9, DialogModes.NO);

    if(App.activeDocument.activeLayer.Visible == false) selectedLayers.shift ();

    app.activeDocument.activeLayer.visible = live;

    }

    Return selectedLayers;

    };

  • How to determine if the device supports portrait / landscape views?

    Is there an easy way to determine if the screen of the device supports portrait / landscape views?

    (We need to provide different settings for the user)

    Until recently, we used check similar to the following:

    If OS > = "6.0" & AccelerometerSensor.isSupported)

    but this code does not work on the new Bold 9900 (which has the accelerometer, but has no landscape mode).

    We are looking for a solution that doesn't invlove by manually checking the models...

    Thanks in advance!

    You can use the DeviceCapability.isRotationSupported method to determine this.  This class has been added in BlackBerry Device Software version 6.0.

  • How contact obtained in the mailing list, but no contact list so it can be removed

    How room sexy chick get in the contact list send and how to remove them from the contact list send when not on the list of regular contacts

    This also happened to me with the House of hot chick and other similar names somehow appearing in my Hotmail drop-down 'To' list of contacts when you compose a new message. The names do not appear in the list of regular contacts that you get when you click on Contacts. If you can not select and remove contacts from the scam. I need to know how to remove these offensive contacts. They can get in the list by accidentally open some spam messages when you try to remove them.

    You have provided your e-mail program, so I can tell you to ask the experts of Hotmail Hotmail Forum. Never use Hotmail, I wouldn't have a clue.

    Windows Live Solution Center Hotmail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=1

  • How can I change the info listed in my library of WMP 11 of letters and numbers for album covers that I had in my old WMP?

    I downloaded WMP 11 but now all my music appears as words. How can I get the library appears as the covers of as if it were before? Some of the music that I downloaded a few appears as a name or a song title.

    Hello

    You can check the links below which holds information about the art of the album: Add or change album art: http://windows.microsoft.com/en-US/windows-xp/help/windows-media-player/11/album-art

    Add or edit media information: http://windows.microsoft.com/en-US/windows-xp/help/windows-media-player/11/album-info

  • Windows Media Player-how preventing "return to the previous list" to play?

    Avoid "Return to the previous list" to play?

    When the media player is opened & I right click, I have the previous choice of the "CV list." When I click it, it immediately starts playback of videos watched online.  How I either (A) prevent to play, or (B) remove the previously posted videos before they are recovered?  Thanks for the help.

    Hello
     
    You may need to click the button clear history, under the tab privacy see the article below for the procedure to do the same.
       
    You can also choose the items to be stored, or disable the option to record any story completely. (Uncheck options under "store and view a list of frequently played")
        
    Which settings affect privacy in Windows Media Player?
    http://Windows.Microsoft.com/en-us/Windows7/which-settings-affect-privacy-in-Windows-Media-Player

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I use the long list of change script format?

    Hello world

    If I have such a long list

    0101
    Long white radish
    Chinese celery
    Tah tsai
    Round cucumber
    Cherry radish
    fennel
    Small rocket leaves
    Gourd small wax
    0102
    Green-leaf lettuce
    Large rocket leaves
    UFO squash
    Crystal radish
    Vague red lettuce
    Green Endive
    Pumpkin sponge
    Rose heart radish
    Butter Lettuce
    Radicchio
    0103
    Chinese mustard
    Then
    Yellow Zucchini
    Turnip
    Malabar spinach
    Chinese cabbage
    Green bean
    Edible rape
    Begonia fimbristipulata hance
    Purple bean
    Cabbage
    Water spinach
    Okra
    Snow peas

    How can I change the format in this:

    0101
    White radish 0101/long
    0101/Chinese celery
    0101/Tah tsai
    0101/round of cucumber
    0101/cherry radish
    0101/fennel
    0101/small rocket leaves
    0101/small wax gourd
    0102
    0102/green-leaf lettuce
    0102/broad leaves Arugula
    Squash 0102/UFO
    0102/Crystal radish
    Wave 0102/red lettuce
    Endive 0102/Green
    0102/sponge gourd
    Radish Rose-0102/heart
    0102/butter lettuce
    0102/chicory
    0103
    0103/Chinese mustard
    Spinach New Zealand 0103/New
    0103/yellow Zucchini
    0103/turnip
    0103/Malabar spinach
    Cabbage Chinese/0103
    Bean green/0103
    0103/edible rape
    0103/begonia fimbristipulata hance
    0103/purple bean
    0103/cabbage
    0103/water spinach
    0103/okra
    0103/snow peas

    using the script?

    Thank you

    Teetan

    I prefer this method

    var sourceFile =  File.openDialog ("Select the source .txt file",   ($.os[0] == "W") ? "*.txt" : function (f)  { return (!f.name.match(/\./)) || (f instanceof Folder) || f.name.match(/\.txt$/i);});
    
    if (sourceFile) {
        sourceFile.open('r');
        var text = sourceFile.read().replace(/\n/g, "\u6754"),
            r1 = /(\d{4})(((.(?!\d{4})){1,4})+)/g,
            r2 = /\u6754/g,
            result, a = [], n = 0
            destFile = new File (File.decode(sourceFile.fullName).replace(/\.txt$/i, " changed " + (new Date).toString ().replace(/:/g, ";") + ".txt" ));
        sourceFile.close();
        while((result = r1.exec(text)) != null) {
            a[n++] = (result[1] + (result[2].replace(r2, "\n" + result[1] + "/")));
        }
        destFile.open ('w');
        destFile.write (a.join("\n"));
        $.sleep(200);
        destFile.close();
        destFile.execute();
        alert("new Document: " + destFile.fsName + " created")
    }
    
  • How can I get the 'Pocket List View' button? It is NOT in my bookmarks menu.

    I only have the "Save button in the Pocket". Cannot find the Pocket anywhere display list.

    Hello, see Pocket button is under the favorite button. You must click on the bookmark list. Which will bring you to the display list of Pocket

Maybe you are looking for

  • 2d22dx HP 2000: 8gig memory max

    I wonder if it is due to the age and support both if this laptop is not expandable to 8 GB. It has two memory slots in there so why would not be expandable to 16 GB with 8 gig of memory? Or am I maxed out already at the 8 GB I have on it now and is e

  • The fixed Point data

    It is possible to specify the length of Word and whole for the fixed point data format, and if so where this work? The module I use is a NI 9205 in a cRIO-9074 and seems to have a fixed point default data format of , which I interpret as meaning that

  • Rate question frame IEEE 1394

    Dear all,Currently, I have a problem with NI MAX and my software that uses niimaqdx for camera firewire 1394.I use HAMAMATSU C10600 (ORCA R2).When I use the software HCImage that origin of the HAMAMATSU Corporation, I can get good pace which they spo

  • Photosmart hp7515: completely uninstall the drivers of printers and printers windows 10

    I have upgraded to windows 10 on my laptop. I uninstalled the software for my hp7515 and I installed the HP "PS7510_1315 = 1The function" software upgrade. I can print ok, but cannot parse reliably. When I click on HP SCAN the first time that I can o

  • Preparation configure windows do not turn off your computer

    When I start my computer, a message will come on indicating ' preparation set up windows do not.Turn off your computer. This process continues and does not set up, so I start in safe mode. How can I correct this situation?