Within a single class what steps should I take to implement a selection MenuItem "get"?

I have a single class that extends screen that contains a single menu that contains MenuItems:

  • New
  • Edit
  • View
  • Output

For the New, Edit and display screens, I just want to use a class that extends the screen.

When one of these MenuItems are selected, I need to be:

  1. Get an identifier for the class that extends the screen, looking at the method MenuItem.getId ().
  2. Pass a parameter of the run() method in MenuItem to the class that extends the screen.

The goal of each is well just to get a unique identifier that tells the screen to get the various parameters to change the layout of the screen and repaint.

What is a good design implemented or the best implementation which is recommended?

Thank you

passing the parameter or by calling a setter on the screen are very good.

Tags: BlackBerry Developers

Similar Questions

  • What steps should I take to find out what & where a program is constantly running on my computer. I have a Vista laptop comaq

    Seems that my computer is running more slowly than normal. Went to Microsoft Fix & this was the answer I got from them. They will fix it if I pay a fee. I just don't have the money now. Help!

    Thank you... Bette

    Hello

    Use the startup clean and other methods to try to determine the cause of and eliminate
    the questions.

    ---------------------------------------------------------------

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically


    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Outlook Express 6.0, what steps I must take to separate contact lists for my three e-mail accounts

    I currently use three email addresses in Outlook Express 6.0 - had some problems with my computer recently and now - all three of my email addresses are using the same address book.  I don't want that (2 e-mail addresses are working partner - the other is my personal)... Please clarify for me exactly what steps I must take to separate contact lists addresses of three?  I can't afford to lose any of them and keep them 'shared' is simply too risky... Please... anyone?

    The address book is a wab file and there is a backup of it who has a ~ inside so if you're looking for * ~ * conclude that.  See here for more information about the address book: http://www.insideoe.com/files/wab.htm you can export the list as CSV files as well.

    Steve

  • After a system restore to a time before Windows XP, should I leave Safe Mode and restart normally? What other steps should I take in Mode safe?

    After a system restore to a time before Windows XP, should I leave Safe Mode and restart normally.  Completely restored restore operation the registry both before the intrusion of viruses if the date and time specified as the restore point is earlier than the time of the intrusion, but in the same 'on' the cycle of computer?  I have to do something else before going back to safe mode?

    Time as about 23:00 last night 7/29 restoration, first known intrusion by "XP Home Security 2012" was shortly after midnight 7/30.

    I ended up a sde.exe process, which stopped the pop-ups.  A full scan with Norton quarantine, JS. SecurityTool.  After a restart of the computer, the normal features of the programs has been lost by the "Run" menu or icons on the desktop.  By clicking on the icon for the normal .exe files redirected to the dialog box "select a program to open.

    I restarted in Mode safe mode with networking and then restore.  I tried opening IE and Excel and that they work properly in Mode without failure.  They will work correctly when I leave Safe Mode and restart normally.  Should I test other specific applications.

    XP Home Security 2012 seems to have accessed or modified some files to DropBox (not sure how this program was installed, but it was already on).

    Should I delete all DropBox files, just those showing a modification date corresponding to the intrusion of XP Home Security 2012, or don't you worry about this?

    After a system restore to a time before Windows XP, should I leave Safe Mode and restart normally.  Completely restored restore operation the registry both before the intrusion of viruses if the date and time specified as the restore point is earlier than the time of the intrusion, but in the same 'on' the cycle of computer?  I have to do something else before going back to safe mode?

    Time as about 23:00 last night 7/29 restoration, first known intrusion by "XP Home Security 2012" was shortly after midnight 7/30.

    I ended up a sde.exe process, which stopped the pop-ups.  A full scan with Norton quarantine, JS. SecurityTool.  After a restart of the computer, the normal features of the programs has been lost by the "Run" menu or icons on the desktop.  By clicking on the icon for the normal .exe files redirected to the dialog box "select a program to open.

    I restarted in Mode safe mode with networking and then restore.  I tried opening IE and Excel and that they work properly in Mode without failure.  They will work correctly when I leave Safe Mode and restart normally.  Should I test other specific applications.

    XP Home Security 2012 seems to have accessed or modified some files to DropBox (not sure how this program was installed, but it was already on).

    Should I delete all DropBox files, just those showing a modification date corresponding to the intrusion of XP Home Security 2012, or don't you worry about this?

    System Restore IS NOT the way to remove malware. The reason why you do not see the effects of the malware in safe mode is probably due to the fact that the process for most malware does not load in safe mode, and therefore not active.

    Restart the computer in Safe Mode with network. Click HERE. Download Malwarebytes. Update Malwarebytes and perform a full scan.  Choose to quarantine found nothing. Once completed click HERE and download Superantispyware Portable. Run a full scan quarantined found anything yet. Restart your computer in normal mode and perform a quick scan with Malwarebytes.

  • storage space is 90% full. What steps should take?

    Hi all

    In my 'Users' database, storage space is 90% full. And automatic is activated. in this case I need to take action? and how long it will go I mean auto extend to unlimited (is it a limit that can stop auto extend on my system)


    Thank you

    If the data file is set to autoextend (files can autoextend, storage space only not autoextend) it will be autoextend to the documented maximum datafilesize of your unknown platform, usually 32 GB, or when the disk is full, whichever of the two. Depending on your backup and restore strategy, the data file is the smallest unit of restoration and recovery, then add another data file may be necessary.

    How to do this is still described in the Fine Manual for your unknown version, which is online at http://docs.oracle.com

    ---------------

    Sybrand Bakker

    Senior Oracle DBA

  • to use the help of a friend (distance) the configuration steps should I take?

    Hello

    use the help of a friend remotely, configuration steps I have to take?

    1. I see nothing in the services to enable

    2. I don't see anything in the windows firewall so that it

    3. what one thing I see in the computer properties in the Advanced section, I can help vink (enable) of distance.     Wil only be this option enough to get help from a friend or remotely?

    My second question is

    I know there are third party software to make contact with the client computer (remote assistance).

    are there any simple quiet easy to use for customers and third party free software, if so wat is the name of it?

    Thank you

    Johan

    Hi Johan

    You can use built-in Windows 7 Remote Assistance.

    What is Windows Remote Assistance? :

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-remote-assistance#1TC=Windows-7

    There are also third-party products.

    Access, manage and support computers remotely:

    https://secure.LogMeIn.com/

    TeamViewer:

    http://www.TeamViewer.com/en/index.aspx

    Concerning

  • Satellite Pro A60: what RAM should I take?

    Hello.
    I have a Satellite Pro A60 P4 532, with the following:
    3.06 GHz/XP Pro/256 MB/40 GB/15TFT/DVD-CDRW/LAN/WiFi

    I want to add memory (256 MB).
    On the web site of Toshiba, they lead me to the PA3127U - 1 M 25 (DDR PC2100), but I see that for almost similar laptops they offer the PA3311U - 1 M 25 (PC2700 DDR)

    * 256 MB DDR PC2100 (PA3127U - 1 M 25)
    -P4 532 (3.06 GHz) / XP Pro/256 MB/40 GB/15TFT/DVD-CDRW/LAN/WiFi
    -Celeron D335 (2.8 GHz) / XP Home/256 MB/40 GB/15TFT/CD-RW/DVD-LAN

    * 256 MB DDR PC2700 (PA3311U - 1 M 25)
    -P4 532 (3.06 GHz) / XP Pro/256 MB/40 GB/15TFT/DVD-CDRW/LAN
    -P4 532 (3.06 GHz) / XP Pro/512 MB/60 GB/15TFT/DVD-R/RW/LAN
    -Celeron D335 (2.8 GHz) / XP Pro/256 MB/40 GB/15TFT/CD-RW/DVD-LAN

    Can I take the PC2700?
    Not for the best performance, but it is cheaper!

    In addition, it is the same problem with 512 MB...

    Thank you

    Hello

    Yes, you can take PA3311U - 1 M 25 (PC2700 DDR).

  • BlackBerry Smartphones sell my BB 8120, what precautions should I take

    Is it safe to leave your Sim Card in the phone when it is windy?

    This BB is CBW Cincinnati Bell Wireless network.

    Will it work on other networks?

    Thanks in advance, Pete

    No, remove the SIM card. Keep it or trash. You may have a few contacts saved on it or whatever, but it is not required by the new owner independently.

    1. before to sell, ask your CBW operator to remove the PIN code of your BIS account. Otherwise, it will not be usable for another user.

    2 make a backup of your old device using Desktop Manager. You never know when you might need this data.

    3 do a wipe on the device options > Security > General settings > wipe Handheld.

  • For 2 months to get a pop up that says windows virtual memory and windows is fixing prob... How long should it take? and I don't get much store anything on my computer so how if memory can be low? __

    I used the disk defragment and free of unused programs

    Two months! This error message occurs most often on severely infected computers or on computers where the end-user has changed pagefile settings. Have you changed the virtual memory management settings?

    Start with the basics and make sure that the computer is free of viruses/malware:
    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    If you can't do the work yourself (and there is no shame in admitting this isn't your cup of tea), take the machine to a professional computer repair shop (not your local equivalent of BigComputerStore/GeekSquad). Please be aware that not all shops are skilled at removing malware, and even if they are, your computer may be so infested that Windows will have to be properly installed. If possible, have all your data backed up before taking the machine into a shop. MS - MVP - Elephant Boy computers - don't panic!

  • Sony Vaio VGN-Z31WN Windows Vista Business.  Serial number: 28286061 serial number: J003R5FO IMEI: 355891020417161 I recently had some work to my computer and when I came back, my Adobe suite has been uninstalled.  Should what steps I take

    Sony Vaio VGN-Z31WN

    Windows Vista professional.

    Serial number: 28286061

    Service etiquette: J003R5FO

    IMEI: 355891020417161

    I recently had some work to my computer and when I came back, my Adobe suite has been uninstalled.

    What steps should I take to re - install / checking the codes etc?

    Reinstall from the original with the original serial number disks. There is a good chance it will work. If she says "too many activations", you must contact Adobe.

    Please be aware that this is a public forum and all information that you post can be seen by the world. It's often a bad idea to post the serial numbers, because they can be stolen and Rob you of what you paid for. (Less a matter of concern for the machine numbers, but a real problem for the software). There is nothing that we can do your series of Sony or the serial number, only Sony could use it.

  • I'm upgrading to Adobe CC. Currently, I use Dreamweaver CS5 to my Web site. Should what steps I take to ensure that I can edit my site in Dreamweaver cc?

    I'm upgrading to Adobe CC. Currently, I use Dreamweaver CS5 to my Web site. Should what steps I take to ensure that I can edit my site in Dreamweaver cc?

    You can go to Site > Manage Sites > export to create files .ste with your settings to be imported into the new version of the site. This way your info ftp and other site specific parameters will meet instantly, rather than having to create new definitions of site by hand.

    Other that that, there really nothing that needs to be done for CC to understand your old files.

    When installing CC, make sure you click on the advanced settings in the Installer link and disable "Remove older Versions". You can easily have CS5 and installed CC at the same time to make the transition less sharp. There are some pretty big changes between CS5 and CC can take you awhile to get under your belt. Have the old version will allow you to continue to work with something that you know while you do the adjustment with the new software.

    CC has more Spry example, if whatever it is done using the framework Spry will no longer offer that you dialogue windows when you want to change. You will need to either open the old program or switch to the jQuery version (if it is available in the DW interface). It won't 'break' your Spry effects, it just will not allow you to change from the windowed interface (adjustments should be coded manually or in the old software).

  • My dreamweaver has no provisions such as Center template fixed to a single column, what should I do?

    My dreamweaver has no provisions such as Center template fixed to a single column, what should I do?

    Here is a screenshot of CC 2015.  I would stay away from the layouts that contain legacy fluid grid code.  The sample files, personally, I prefer Bootstrap models because they are more complete.

    Nancy O.

  • I did all my selections for feathering, but should not be. What step am I missing?

    I did all my selections of pen, but should not be. What step am I missing?

    Please provide more information. What are you doing?

  • I have just replaced my computer and now need to reinstall Dreamweaver. I can't for the life of me find anywhere on the Adobe site to download again. Should what steps I take to download and reinstall the software I pay for every month?

    I have just replaced my computer and now need to reinstall Dreamweaver. I can't for the life of me find anywhere on the Adobe site to download again. Should what steps I take to download and reinstall the software I pay for every month?

    Download/install the desktop application, connect and install applications subscription.

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications
    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • Should what steps I take to convert a PDF file in an exel file?

    Should what steps I take to convert a PDF file in an exel file?

    Hi bsmith72549,

    1. Open a file in Acrobat XI.
    2. Choose Tools > content edition > export the Microsoft Excel workbook file.
    3. Name the Excel file and save it to a desired location.

    Please check: vert-pdf-to-microsoft-office-word-tutorial_ue.pdf http://wwwimages.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-con

    Kind regards

    Rave

Maybe you are looking for

  • Firefox crashes on opening

    When trying to open Firefox, it just hangs and I have to force to leave. I trashed the earlier application and downloaded and installed a new application. Same result in opening.

  • Mouse-keyboard blocked

    Hey I have a lenovo ideapad Z570. I was very happy with the product... But, today my mousepad has been stuck at regular intervals... When I press a key on the keyboard, the mouse comes off... and then after a few minutes, its stuck again. Keys on my

  • Cannot print using Works 4.5

    Original title: works 4.5 I use Works 4.5 for my bussines for more than 10 years. Now I have problems printing, and the DHS of mouse wheel no longer work with works 4.5.

  • I can't get updates for Windows through automation, someone help?

    I have the program update Windows, including Microsoft updates, but the two do work ' t, can anyone help?

  • Shared variables with touchscreen of TPC-2106

    I can't work with a TPC-2106 Touch Panel shared Variables.  I am hosting a Board 9642 sbRIO variables.  I built a test VI to run from the hard drive, and I can edit and read variables that VI.  When a generation a VI to run it on the touch screen wor