MakeMenu() call for a separate evil non-ecran class

Hello

I have the following classes:

public class QueueScreen extends MainScreen{}
public class GetQueue {

     QueueScreen screen;

     public GetQueue(QueueScreen screen){          this.screen = screen;     }}

The GetQueue class in the end updates the user interface of the QueueScreen by adding a new instance of the same ButtonField adding to the screen several times with screen.add ().  What I want to do, it's when one of these buttons has focus, add a special Menu with makeMenu() of the GetQueue class.

To repeat an example: with the class GetQueue, I add the same key for the QueueScreen several times (and identifies the button with setCookie()). Whenever one of these buttons is highlighted, I add a QueueScreen-specific menu item.

I tried adding a method of makeMenu() in QueueScreen and go to the getQueue method. It did not work, however. The only potential way I can think of is to use screen.addMenuItem () when ButtonField has focus and then removeMenuItem when ButtonField does not have focus. I couldn't get it work either, because each button is basically the same (only differing in its cookie).

What is the best way to achieve this? Thank you.

I could make it work. My mistake was that I tried to manipulate the focus() and unfocus() in my current buttonfield class. By substituting in the buttonfield class implementation has made the turn.

Thank you!

Tags: BlackBerry Developers

Similar Questions

  • java.lang.RuntimeException:pushModalScreen called by a thread of non-event

    I am trying to alert the message using Dialog.alert (). The following exception comes

    java.lang.RuntimeExceptionushModalScreen called by a thread of non-event

    When this error comes and what scenario?

    Thank you

    Bala

    you don't know. You can find the details in the developer's guide.

    However a short explanation:
    all user interface work is performed in a separate thread, the thread of the event.
    If you do something in the user interface, for example in the display method, the instance is already on the thread of the event.
    If you do something outdoors, for example in a separate thread, you must place your changes on the thread of the event.
    only the thread the event is allowed to change the user interface.

  • View the calls for papers

    I'm content Chair EMP/BI for the Kscope16 Conference in Chicago. I would like to publish a call for contributions in the concerned areas.

    It of nothing that specifically prohibits this as far as I can see in the rules, FAQ or rules of conduct documents. The moderators have no problem with that? I don't really want to have my deleted messages simultaneously in eight areas and become a topic of conversation in the mod space...

    I do not think that a post from me on OTN involves any kind of support of the Oracle, but for what is interesting (and for those who don't know) Kscope is a 100% Oracle conference that enjoys the support of several "branches" of Oracle, OTN no less.

    I post here in order to achieve the OTN community managers (moniquevdb-Oracle, Laura Ramsey-Oracle and so on) for an 'official' answer and not to interview all the members, and very respectfully, I ask that someone don't not corresponding to the old description that wants to offer an opinion in a separate discussion. I'm sure that won't work.

    Thanks for your time.

    Product areas would not be the right place for this, but we can probably find a reasonable way to publish a call for contributions in a general area. I added you as a friend if you can me message directly. In the meantime I'll connect with Hocinebelatreche-Oracle and Oracle-valeriesimpson to make a recommendation.

  • record Skype calls for imac

    record Skype calls for imac

    Is this a question?

    Check out this page https://support.skype.com/en/faq/FA12395/how-can-i-record-my-skype-calls

  • E-mails calling for someone trying to use my real account?

    E-mails calling for someone trying to use my real account? Those that I claim come from Apple support community.

    Probably not. Change your password just in case and do not respond to emails.

  • Duration of calls for milestone

    Hi guys!

    I know this sounds lame, but I can't find a timer to call for my Milestone! Is such a function that shows total leaving and entering call time not included in the phone?

    I can not find built in method until now, but you might find something like 'Call Meter NG' of the (free) market to track it from here on out.

  • A person called me and told me he was calling for help me to correct a mistake that had occurred on my laptop. do I trust him and follow his instructions?

    I had a couple of calls from a man "not in these parts" by saying he was calling for help to correct an error on my laptop. I had a few mistakes, not so bad, but I need to reconnect a lot! Do I trust him and follow his instructions?

    Do I trust him and follow his instructions?
     
    No! This is a phishing scam. How anyone but you know that you had problems?
  • I'm looking for on what is excessive calls for rundll32.exe?

    I have something that calls for multiple instances of rundll32.exe to occupy memory.  Little or no use of the processor, use of memory only.

    How can I know which call for them and master them?

    Symantec Endpoint Protection 12.1.671.4971 running.

    Hello KAN-Chis,

    Have you tried to boot the computer to a clean and start to reproduce this error?  How long have you been making this mistake and you did of the software/hardware changes?

    Clean boot:

    http://support.Microsoft.com/kb/310353

  • Just got yet another call for "Windows Service Station"

    Just got yet another call for "Windows service station', saying: I was hacked and my computer sends windows warning messages and if I didn't follow his instructions all my data would be deleted... An Indian-sounding guy named Sam... I played along and got a phone number, saying: I would like to remind him he said 0808 1890111 which is a UK addiction hotline...

    I played along 'Sam' gave me an extremely long code to type in something on the windows event viewer... I know it's a scam and we have these calls often 3 times a week for a few years now. I play at the same time or am quite rude and tell them to be ashamed of themselves, depending on my mood... I really wish that they would go, but I can't this blocks 'any number' because it is off the coast.
    Any suggestions on how to remove our number and the name of their list (I asked the scammers do, but they don't notice).

    Certainly a SCAM, you have made the right choice. Never to give them information and never leave access to your PC.

    It is difficult, if not impossible to remove your number from a list of scam once its on it. And it's hard to know how they got it in the first place. It could be a list simple phone book. Recording with things like Telephone Preference Service (United Kingdom) and asking to be made "Red" (BT - UK) can make it harder for them to get a number in the first place, but once they have it probably wont help. It can stop any other do however.

    There are devices like Call Blocker, which can be programmed for their calls not ring your line, but it depends on what number they release when they call. If their number is "held" and then some providers have a service to stop calls "deductions number' to ring your line. ACR service (BT - Uk).

    PS - the links above are a few examples of our services/devices to the United Kingdom for more information.

  • Disconnection of call for the endpoint MXP

    Hello world

    We have 1 special issue of one of our series mxp endpoint, where the call disconnects in between it the call, we call for our local endpoint in India on another mxp parameter to the United Kingdom on a dedicated IP link.

    The two endpoints are registetered to a common gatekepper.

    IM attaching the Syslog and Syslog 4 of our local endpoint 3 mxp mxp for your reference, please check the logs & suggest what could be the reason of disconnection of the call here.

    Thanks in advance

    Nikhil

    Hi Nikhil,

    Newspapers showing your EP get no response from the return of unity to end a call is disconnected.

    This problem is the network problem, check firewall, router configuration.

    H.245 Peer H323CC-1 entity does not meet the demands of round-trip time

    H.245 Peer H323CC-1 entity is presumed down. Disconnectiong.

    Kind regards

    Dharmmesh

  • received a call saying they were technical support from Microsoft, they called for my pc was hacked and sent error messages. I fell for this scam.

    I fell for what you all seem to feel is a "scam."

    I got a call saying they were technical support from Microsoft, they called for my pc was hacked and sent error messages. I was not too su re, but they had me enter a code on the pc, and it showed a list of more than 50 error messages, they said that they had received. Then, they control that is given to them for the mouse and seized a lot of information showing me the problems. Then he said warns me on; those pirates I needed a special program. "Alpha PC maintenance" and for 3 years, it would be $ 135. Now I don't know if it was the real scoop or I fell for a big pile of *! I could use the theory, I'm a senior, but I think I should have been smarter. What should I do now that they've been in the pc? Thank you JAFTX

    To add to what you already said, inform your bank company or credit card if you do banking online of any form or if you have given your debit or credit card number to the caller. Do the faster you it, the faster you can arrest the appellant empty your account....

    Do you want t know Apha PC Care?

    https://community.McAfee.com/thread/43102?start=0&TSTART=0

    Read all THE of it...

  • I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

    I want to uninstall the application, because it does not stay charged and want more on my computer and not perform the steps for removing it, but none does not work for me.

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

    Sign out of your account... Uninstall... to run vacuuming...

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

  • I am trying to create layers with a JPEG originally published in LR6. I converted the JPEG in a TIF format for my PES 11. PSE does not recognize the file for purposes of superposition; None of the routes command works. Just to see if PES was grateful the

    I am trying to create layers with a JPEG originally published in LR6. I converted the JPEG in a TIF format for my PES 11. PSE does not recognize the file for purposes of superposition; None of the routes command works. Just to see if PES was grateful the file at all, I tried to turn the file. Fortunately, he rotates the photo and turned it back. Why the program allow me to create layers?

    You click on Expert in pse before trying to add layers?

    Or it is possible that the image is 16-bit/channel.

    In photoshop elements go to Image > Mode and click on 8-bit/channel and see if that makes a difference.

  • What number you are calling for technical support

    What number you are calling for technical support

    As far as I know (click on the link provided above to verify) is the sole support of phone for orders, not for technical support of program

    If you have a problem, or just ask a question about a specific program, you go as this forum

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • Why getter VO is not called for custom attributes of VO?

    Hello

    The requirement is to add two or three fields on a page of the OFA. Here's what I did:

    -Created VO personalized by extending the standard VO
    -Added fields to the page through customization.

    The problem is that the values for the custom page fields were not. Investigation, I found that the accessor Get of VORowImpl getAttrInvokeAccessor was not called for my custom attribute. I tried to check the difference between the attributes for which the Get accessor is called, and for whom it has not named. I could not find and I'm totally clueless as to what determines the get accessor to be called.

    Really appreciate your help to move forward.

    Thank you
    Anil

    Published by: AnilMenta on March 5, 2013 10:40

    Hi Anil,
    Unless the attribute is not used in the user interface or other calls,
    the Get accessor will be called
    Make sure you've got the attribute used to get your custom attribute named getter.

    You mentioned that you started to use in customization, it is always the problem persists?

    Thank you

    With respect,
    Kali.
    OSSi.

Maybe you are looking for