Invalidate the screen after closing popup

Hello world

I have 2 classes, say MenuClass and a PopUpClass citing the click MenuClass button. When I close the PopUpClass I want to MenuClass to paint all over it. I use invaliate() now, but no result:

//button in PopUpClass
 protected boolean navigationClick(int status, int time) {
    this.getScreen().close();
    invalidate();
    return true;
  }

OK, I understand.  Here is a way, I hope you will implement a variation on this depending on yourself, as the implementation I describe is not really how I'd do, but it is how it is easier to explain.  :

You have Popup1Screen, which displays the choices.  There are also two public methods called, additional

getSelectedFocusBitmap()

and

getSelectedUnfocusBitmap()

returning selected bitmaps.

In your MenuScreen, you have a button called popup1Button, which calls Popup1Screen.  You have also a FieldChangeListener.  Purposes of argument, we will say that this listening port is your MenuScreen.

Thus, in

fieldChanged (field f, int context) {}

..

}

Have the following items:

If (f == popup1Button) {}

Popup1Screen popup1screen = new Popup1Screen();

UiApplication.getUiApplication.pushModal (popup1screen);

Will return here when the screen is closed

Bitmap newFocusBitmap = popup1screen.getSelectedFocusBitmap ();

Bitmap newUnfocusBitmap = popup1screen.getSelectedUnfocusBitmap ();

Now, change the bitmaps in popup1Button and, of course, it is repainted, you invalidate() it

but you should not, so don't do that if you need to.  .

..

} else...

Hope that makes sense

Tags: BlackBerry Developers

Similar Questions

  • Refresh the screen after the removal of the UI elements

    Hello world

    I create a screen in which I use listfield to display data online as a way each line has a button Delete. I want to know how to refresh the screen after the deletion of data or a row of the screen?

    Because you actually using a HorizontalFieldManager to display each line, to remove it, you must remove the information in the underlying data store and then delete it HFM of his Manager.  That's it, removing the HFM will refresh the screen.

  • Qosmio G20-127: failure to screen after closing the lid on Vista

    Hello

    I have a Qosmio G20-127 and I recently installed Vista Ultimate (32 bit). I managed to put everything in its place (except the magic buttons, but the drivers are not on yet), but I have a problem that makes me seriously reconsider coming back to XP MCE.

    When I close the lid of my computer, the screen turns off of course, but when I open again, it does not turn, but it stays black. And I can't turn it on again no matter what. I have to turn off the entire computer and it is quite unrealistic.

    Funny is that after a restart for about 20-30 minutes, I can open and close the lid normally, but the same problem occurs after a bit more time to work on the computer.
    The problem persists even though I disabled everything remotely connected to the closing of the cover.

    Does anyone have a solution?

    Hello English

    Try you update the BIOS on the VISTA OS?

    I can imagine you will always find something new and unusual, but please note that Vista is not supported by the OS for Qosmio G20 (Vista drivers are not available on the Toshiba download page) and you can expect that from time to time, you will discover new disturbing behavior.

    I recommend you to install and configure Vista as described in the topic of s Francisco, configure OS for your needs, and be happy if you use Vista without any serious problems. In my opinion, for OS installation and configuration software Qosmio is Toshiba laptop more complicated template, and you will never be able to configure it as a supported and preinstalled WXP MCE. Commands supported are tested and bugs are fixed, but not with Vista on Qosmio G20.

    Sorry my friend. Sounds stupid, but maybe that's just the truth. By the way: I like Qosmio G20. Maybe I'll buy one if the price is Ok.

    Good bye

  • region of refresh on the page parent after closing popup inframe

    Hello

    I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?

    Best regards and thank you

    Hi Gor_Mahia,

    Gor_Mahia wrote:

    Here are the details,

    application ID = 46268

    page ID = 13

    demo123/demo123

    proj2010 = workspace

    Use the links in the second column IR

    Once again thanks for your time.

    Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:

    Monkey on Oracle: Modal popup with dynamic Actions

    Here are the changes:

    • Edited your action dynamic and value:

    In the section "Advanced":

    Scope of the event: Dynamics

    In 'true Actions:

    Action edited your "run the Javascript Code" and "Code" to modified:

    From:

    /* prevent default behavior on click */
    var e = this.browserEvent;
    e.preventDefault();
    /* Trigger JQuery UI dialog */
    var horizontalPadding = 30;
    var verticalPadding = 30;
    $('