How do you prevent updateLayout during screen change.

I don't know if I thought that, but I think I read somewhere once that it is possible to 'lock' the layout as you work in it.

For example, I now call you deleteAll() in a Manager custom that I created, just to add a few new custom fields and add even some abandoned fields.

The problem is that when I call deleteAll() for this, a call to sublayout and custom fields are not there and then he complained abuot that. * Bleep *, I know that they are not there and I don't want to put a giant if around them in the method sublayout, just to see if they are childs of the Manager or not.

Is there something else I can do? as:

stopUpdatingLayout();

reArrangeEverything();

nowYouCanUpdateLayoutAgain();

THX

RGS,

Dan

I have an idea: do the first level or even screen Manager custom with the following substitution of sublayout:

protected void sublayout(int width, int height) {
  boolean layoutDisabled = false;
  synchronized (this) {
    layoutDisabled = this._layoutDisabled;
  }
  if (layoutDisabled) {
    setExtent(width, height); // makes sense for MainScreen, FullScreen etc.
  } else {
    super.sublayout(width, height);
  }
}

Protect the place where you do all your deleteAll() / add manipulations like this:

myMainScreen.layoutDisable(true); // a synchronized method setting _layoutDisabled (see above)
UiApplication.getUiApplication().suspendPainting(true);
//...
// Adding / deleting fields goes here
//...
UiApplication.getUiApplication().suspendPainting(false);
myMainScreen.layoutDisable(false);
UiApplication.getUiApplication().relayout(); // force the re-layout after we enabled it

Just some pseudo-code - hope you can see what I mean...

Tags: BlackBerry Developers

Similar Questions

  • How do you prevent Muse to install when you run the exceptiondeployer

    How do you prevent Muse to install when you run the exceptiondeployer

    Hi Richard,

    You can select no Muse when creating a package.

    In addition, the Muse is therefore more a part of the Exceptions folder. It is only installed through the build configuration.

    Release notes | Adobe Muse CC

    Kind regards

    Sheena

  • How do you toggle playback full screen?

    How do you toggle playback full screen? (In the two video windows) I use first Pro CC with a Macbook Pro with OS 10.10 Yosemite (beta version). I would like to see my screen full of clips, but I can't figure out how.

    control + ~.

    Cabin

  • How can I prevent the splash screen to disappear after a few seconds?

    I have a HP Touchsmart all in one by using Windows 7. The machine is brand new.

    Whenever I get the splash screen, if I am not for nothing, after that a few seconds, the screen turns off and then I can make it back by pressing any key and then click on my name from the entrance to ge the rear screen startup.

    Hello jimtiger: I'm not familiar with the Touchsmart version 4 software. It works with version 3 of Touchsmart. Left click mouse any where on the screen click on customize. The opening of new windows screen saver goto adjust the wait time for a longer period of time.  Can also change the settings of computer power. Control in the lower right panel, you will see tools and information on the performance up until it clicks. Top of next window right-click on the adjustment of the parameters of energy.  Check high performance box.  Who will now have a blue dot. Just beside it, you will see the settings of plan up until it clicks.  You will see the screen dims: click the box next to it. My is set to 10 minutes below. Turn off the display: click the box my is fixed to 15 minutes. Put the computer to sleep: click the box my is defined. Never. Brightness is right-wing. Under that, you will see the change, click on advance power settings. Everything has a greater mark in it. Click ok. Close all windows should be all set now.

  • How can you remove a wallpaper (no change).

    I added a wallpaper to a picture I scanned a few months ago. I wanted to get rid of the background as my laptop is rather slow and I don't want anything it slows further. I tried to delete it but when I stopped the laptop it appears again briefly during the closing process.

    I could not find in vista how to remove an image, only how to change. See below for the options, I can see.

    Thanks, SB

    I added a wallpaper to a picture I scanned a few months ago. I wanted to get rid of the background as my laptop is rather slow and I don't want anything it slows further. I tried to delete it but when I stopped the laptop it appears again briefly during the closing process.

    I could not find in vista how to remove an image, only how to change. See below for the options, I can see.

    Thanks, SB

    Same method when you want to remove a file or folder...

    Go to the folder that stores the image.
    Right click it > click on delete.

  • How do you prevent ads from appearing when I'm on Firefox?

    Ads appear whenever I am on a Web page and are distracting. They usually appear on the right side of my computer screen. How can I avoid them? Thank you.

    Hi, please try an add-on ad-blocker like Adblock Plus.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • How do you prevent Photos to launch whenever I plug into any camera

    I know that you can prevent pictures of launch for particular devices by selecting "No Application" of the Image Capture, but I work with a lot of cards media from various sources and I don't want pictures to automatically launch ever.  How can I keep the Photos to launch whenever I plug in any camera or a camera card?

    Use Image Capture to disable for each device.

    In addition, see of this Léonie post in this discussion:

    How to prevent the automatic import of Photos

  • How do you prevent PDF presets to alter the quality of the image

    Experimenting different PDF presets, I noticed with grayscale images in Photoshop, save to PDF using different presets, change image quality, more precisely the contrast.

    So, it seems that saving an image in the 'bad' PDF preset could undo a lot of pre-press work. Is there a better way/format?

    To get an idea of brute: there is a decrease of 8.7% in the percentage of black between 10% and 50% of the values (the beach) on a corner of the stage between the original in Photoshop and PDF high quality, who showed the same values, and PDF/X-1, which has compressed the range of 4 (about a decline of 8.7%) percentage points.

    A visual assessment and idiosyncratic, four versions of the same image (Photoshop in grayscale, High Qualtiy PDF, PDF/X-1a and PDF/X-3), which included a step wedge and the color ramp, would rank the fidelity to the best original, high quality, at worst, PDF/X-1a.

    The same image to grayscale in Photoshop CS6 was distilled (file > print > Adobe PDF) to PDF using without changing settings predefined PDF in distiller Acrobat XI.

    The screenshot next composit (all four images images on the screen copy screen, rearrange them, and then reduce the image to a 120 dpi to 4.2 "wide (including the text) gives an idea of the differences, but much was lost, it's here.)

    Walton

    I can't pretend that it's simple. There was a lot of choices to accommodate the many different requirements of professional pre-press. Same people experienced can fight to get the color corresponding to the work because they know that it should.

    The key thing to remember is that in the color management, it is never a profile in question. There are always two (or four, or six...). One, the source profile, described the colors in your document. The other, the destination profile, describes a device. This device could be the screen that you discover on the printer you are printing on, or a device that is simulated.

    So, by looking at three PDF files on-screen.

    'High quality '. Source: mast 20%. Target: your screen. It's probably closer to the color displayed by Photoshop, which will do something similar.

    PDF / X 3. Source: mast 20%. Target: output mode, coated FOGRA27. Then you must convert more using two profiles to see on the screen.

    PDF/X-1 a. DeviceGray (no marking). This (by the rules of PDF / X, but not PDF in general) is the gray channel of the output mode, coated FOGRA27. So no converson up here, but it will be converted using two profiles to see on the screen.

    Why FOGRA27? Because you him to choose, or in default, in your settings to distill. This is not a good idea, unless you know that it is the correct output for your printing needs device. This information must come from your printer, and you can't do really good PDF / X files without it. If you choose at random, you can expect more and unpredictable color changes.

  • How can you make a background image change to a State faded at some point in scrolling?

    I am referring to a technique that I have seen used in the relevant Magazine iPad app if someone used it. I understand having a shape behind text that presents a gradient feathers and when you scroll down the form vanishes little by little the background image. But this is not the effect I'm trying to achieve. On some articles, the screen is a complete image and when you scroll type to the top, the bottom everything fades away when you scroll up to a point.

    I tried to search for hours, but I feel that I don't get the case because I don't really know what to look for. I feel like it requires something else than DPS is capable of. I hope this makes sense and I would be very happy to suggestions and help!

    Thank you!

    Try to apply the gradient of feathers to the structure of content scrollable, not the backstory. It will appear to change the color of the shading.

  • How do you prevent Siri to send text messages?

    My children told me just show a problem with my iPhone 6 and Siri:

    My phone is locked, my child picks up the phone, press the home button and said "Send by David SMS", Siri let him write a voice message: "what is your social security number?   Siri sends, my other child shows me it seems I just send the message from my iPhone.

    David sends what looks like his social security number (it is not, we test all this), and the message appears on my locked iPhone.

    So if I left my phone sitting around, everyone could use Siri to do things like this for the information of anyone in my Contacts, even though I have a 6-digit code and fingerprints id put in place.

    What settings I need to change on my iPhone 6 to ensure that ever happening?

    Where they have found out about this: http://www.liveleak.com/view?i=c73_1475783202

    Post edited by: Phlac - add source my children found.

    Disable Siri "access on the lock screen.

    Settings > Siri

  • How do you prevent Firefox to go sleep and re - enter password required?

    The screen, I watch turns off after a while if no activity and I need to type my password to return... My computer settings are all set to never sleep or turn off.

    This isn't Firefox. It is the computer screen saver.

    • Set the screen saver for a longer timeout
    • Disable the screen saver asking for a password

    PS, what Firefox is doing during that time?

  • How do you prevent Firefox to use random, incorrect icons? (Win8.1)

    I have a strange problem where Firefox (v30.0) uses icons incorrect, random, both in GUI and on some web pages (including Gmail). When I use the mouse to hover over the icon, then go to the correct icon. I tried to restart Firefox, reinstall Firefox, reinstall Firefox with reboot, nothing helps. I can't find anything on this in the user forums. These seem to come to occur during the last 2 weeks, do not know if there was an update of Firefox involved.

    Thank you very much for the help!

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You must close and restart Firefox after enabling/disabling this setting.

  • How do you prevent bookmarks (library) to appear on each page of the Web site I visit?

    The library takes the 'focus' and blocks the view of what I'm watching on the web page. I use Windows 7, Firefox 25.0 "up-to-date".

    To disable the protected mode you edit or create a configuration file in the Flash under C:\Windows folder. The folder where you are editing varies depending on whether your Windows 7 is 32-bit or 64-bit. Maybe this will help.

    (1) in a window of my computer or Windows Explorer, open this folder:

    C:\Windows\SysWOW64\Macromed\Flash
    

    If this folder does not exist, then you are using 32-bit Windows, and you can open the following folder instead:

    C:\Windows\System32\Macromed\Flash
    

    (Note: this folder exists on Windows 32-bit and 64-bit, but on 64-bit Windows Firefox use the Flash player in the place SysWOW64 folder.)

    (2) check a file named mms.cfg:

    (A) If mms.cfg exists, drag it in your Documents folder , where you can change it without being bothered on administrator privileges

    (B) If there is no such thing as mms.cfg open your Documents folder, right click > new > text file and the name of the new file mms.cfg

    (3) mms.cfg Documents opened in a text editor such as Notepad. Add this on its own line (I have the latter):

    ProtectedMode=0
    

    Save the file and close Notepad.

    (4) press and hold the Ctrl and the mms.cfg file reglisser to the Flash folder to make a copy, keep the original documents

    This change should take effect the next time you restart Firefox.

    I hope it's a little lighter than the instructions from Adobe. (??)

  • How do you get the smaller screen I can see the theme?

    I downloaded a theme from Charlie Brown and because the Firefox screen is so large, I see only the top of the head of Charlie Brown, Snoopys.

    Assuming you're talking about a light Theme (formerly Personas), the picture above will not fully be displayed unless you have 6 to 9 toolbars displayed on the top of the browser window.

    https://addons.Mozilla.org/en-us/Firefox/themes/

    If you want to see more of this image, add empty toolbars via the function "Customize."

    https://support.Mozilla.org/en-us/KB/customize-Firefox-controls-buttons-and-toolbars

    You will need to add at least one empty space to each new toolbar, you create, or the new toolbar will not only save may not be completely empty.

  • How do you store high quality screen (1080) using quicktime player?

    My quicktime player doesn't have a choice of quality option.

    After you are done save your screen, click on file > export

    Then, it gives you options for resolution. Your computer screen is better than 1080 p, so it is always saved in HD, but it must be "dumbed down" to sites like YouTube.

    It would also be useful to know what model of MacBook Pro and the operating system you are using so that we know which version of Quicktime Player you use. My hypothesis is El Capitan and Yosemite.

Maybe you are looking for