LabelField click navigation

Hello world:

I am trying to create a dynamic menu helps in my application.  What I'd really like is some type of display HTML in my application, but appears not to be possible without writing a rendering HTML class.  So instead, what I'm doing is adding a series of RichTextFields and ImageFields my help screen.  The problem that I am running is that I would have a set of LabelFields at the top, such that a user can click on one of them, for example help overview, and it allows to scroll the page to the desired label.

Is there an easy way to do this in the RIM API?

Thank you

~ Scott

By defalut LabelField winn, not be seen of all the update, you have to explicitly set its Focus and LabelField ahev for you thought writing the navigationClick and according to the selection logic you could set the Focus to another LabelField. This should not be a problem.

Apart from this, you can also consider labuching to the browser to display your HTML and also BrowserField that renders HTML code in your application. You could give a demo borwsefield looka t comes with JDE.

Tags: BlackBerry Developers

Similar Questions

  • Click Navigation LabelField problem

    Hello

    in my application if I click a bitmap field I shows a popup screen with labelfields dynamic

    If this label field, click on I want to show the selected text in a text field to another screen

    Below the code I use in the pop up screen to create the label field

    at the moment I get a last element only if I select all...

    can someone tell me where to change to get the text of the selected item

        Vector v=new Vector();
                    v.addElement("515");
                    v.addElement("516");
                    v.addElement("517");
                    v.addElement("518");
                    v.addElement("519");
                    v.addElement("520");
    
                    for(int i=0;i			 

    Standard java error it.

    I think, but haven't tested that the evolution of this

    Create.table.setText (lbl.getText ());

    TO

    Create.table.setText (this.getText ());

    the problem will be solved.

  • ListField: menu appears after clicking navigation

    Hello members of the community.

    I have a problem with the menu displayed on the screen with ListField after navigation click event is raised.

    Here is what I do to reproduce this problem:

    -navigation click on the selected entry of the ListField control,

    -a new screen appears,

    -on this new screen, the menu appears which is defined for the screen on which is placed the ListField control.

    The click of the navigation is managed in the following way:

    protected boolean navigationClick (int status, int time)
    {
    Field = this.getFieldWithFocus ();

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);

    Returns true;
    }

    Return super.navigationClick (status, time);
    }

    protected boolean navigationUnclick (int status, int time)
    {
    Returns false;
    }

    The ListField is declared as follows:

    lstData = new ListField (0, Field.FIELD_HCENTER);
    lstData.setMargin (2, 2, 2, 2);

    Reminder is set in the more standard way - there is nothing special in it.

    I looked for a something, that allows to consume the click for the ObjectListField as ButtonField.CONSUME_CLICK the fact for ButtonField controls, but... so far without success. That's why I decided to write a post here.

    Thanks in advance for any help!

    I solved the problem.

    It was caused by the fact that the screen, on which the ListField control was not closed. After you have added the line, it works fine now:

    If (instanceof ListField field)
    {

    MyAnotherScreen an another = new MyAnotherScreen();

    UiApplication.getUiApplication () .pushScreen (another);
    This.Close ();
    Returns true;
    }

  • Captivate activate 6 - click navigation

    Hello

    Navigation sur-cliquer

    I want to activate 'on click' ability to navigate, rather than define schedules for:

    (1) transitions between slides

    (2) show/hide objects of content, for example to have points of the dot on the slide appear one by one as the user clicks

    (3) other actions, including advanced actions.

    Is there a setting that can disable 'timing' and select 'click '?

    Forums, it seems to only import a Powerpoint presentation allows this option, but I don't see how it can be defined for the formations created from scratch.

    The only solution I can craxton at present involves

    (1) set the ignition of a very long period - for example 9999 seconds for each slide / object / action

    (2) were intelligent forms transparant on each slide as a backdrop, who use As Button = checked and success = "Go to the next slide".

    (3) the items one by one sur-clic or execute advanced actions, to set variables to track the 'progress' by counting the number of clicks.

    I'd rather not have to do of these manual workarounds!

    Bonus question - hide PlayBar

    In order to improve the user experience, I also disable the bar reading for all slides, not only to Quiz slides, for outputs SWF and HTML5. Is this easy to do?

    Thank you

    Sarah.

    Why not put in a box of click hidden which is put on pause for the navigation control?

  • Alt key + navigation click

    I replaced the navigation click metod for my domain (i.e. a date field) but when you press alt isn't in my metod... I mean navigation alt + click does not call navigationClick metod... why... How to detect click navigation with ALT... I need overrride naviation click on in the case of two presses alt and not hurry...

    Kind regards

    kaddy

    Check if ALT + Pearl click results in the nagivationClick of the screen containing invoked method. It may be that the ALT + click is consumed somewhere between the screen and your field.

  • Navigation not work in Weblogic Server but working of JDeveloper.

    Hello

    I created a simple application with a few page navigations (some declarative and sluggish using Managed Bean).
    The navigation works fine when I run of JDeveloper. (Local system)

    So I deploy the application on the Server WebLogic (Local System with a domain configured with ADF name.)

    The pages are turned correctly, bu on the button clicks, navigation is not the case for these pages.

    Could I have missed something or there at - it a way to track what could be the problem?

    JDev: 11.1.1.3
    Web logic server: 11 GR 1 material (1.3) which comes with JDeveloper

    Thanks for any help.
    Sameer

    I guess that put/faces/MainPage as your home page in the web.xml file.

    If you run the http://10.9.73.103:7001 URL / SessionsPOC-ViewController-context-root/faces/MainPage (note, No .jspx on the end), your navigation will work.

    John

  • Navigation problem back to create the Page

    Hello

    We are a CreateShipmentPage createAddressPage (Custom Pages) initialization

    On CreateShipmentPage, we have written faulty logic on EoImpl selection of the ShipmentID based on the sequence, and we have a sub-tab on CreateShipmentPage region where we are redircting to the createAddressPage when you click on the button "create address".
    then enter (return) to the CreateShipmentPage of createAddressPage, shipment id is is filled with the new value when. but our requirement is to have the same value sequence which was settled at the start

    EO shipping page:
    public void create (AttributeList attributeList) {}
    Super.Create (AttributeList);
    Transaction OADBTransaction = getOADBTransaction();
    ShipmentId number = transaction.getSequenceValue ("xxapl_po_shipments_s");
    setShipmentId (shipmentId);
    }

    CO on the page address redirection to the page create:

    {if (null! = PageContext.GetParameter ('Save'))}

    () pageContext.forwardImmediately
    "OA.jsp?page=/xxapl/oracle/apps/oe/shipping/webui/ShippingRequestCreatePG,"
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    true, / / keep AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES);
    }


    Avinash

    Avinash

    When you would be by clicking the browser back button. Then you would call the CreateShipmentPage and its processRequest method will be called. Try to check that you are not calling the create in its necessary to call processRequest.If method. Then try to set a parameter when you click navigation back & in processRequest, check the value of this parameter, if it is then do not call the create method.

    I hope I'm clear!

    Thank you
    AJ

  • Print in the navigation window

    Hello

    I have create a navigation bar for the Option PRINT on a page.
    I want in this navigation bar when I click navigation PRINT link and then print a pop-up window.

    How can I do this

    Hello

    Set the target URL of the link

    javascript:window.print()
    

    BR, Jari

  • BT Yahoo mail will not switch to the new style when using Firefox

    I had to do a re - install under the motherboard has failed. I use BT Yahoo email. On the home page, I get a link "switch to the new BT Yahoo! Mail". That is the link allows to set up the new style and I can then do what the home page and opening in the new style every time. In Firefox help happens nothing other than 'click' navigation and a brief glow and I am still on the old.

    I'm glad to hear that your problem has been resolved.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

    Here are the steps to make a clean reinstall for reference.

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.
  • I can't access the address at the top of the screen bar

    When I look at my home page, Mozilla, Yahoo or something else, I see the toolbar file, etc. and a bar with the homepage listed under the toolbar, but I can't access the address bar I use to type in a Web site.

    is today

    If missing the whole bar that contains the address bar (for example, you don't have the previous/next buttons or at home either), then go to the view menu, click Toolbars, and then click Navigation toolbar. A check mark appears next to this menu item when the toolbar is visible.

    If you have the front/rear and buttons of the House, but not the address bar, see #Adding_removing_and_rearranging_items. The item you want to add on the toolbar is called 'location '.

  • How can I change the default action of record?

    My laptop with Windows vista has curently explores as the default action (because it does not open in a new window which is my chosen prefrence) and opened as the next option. How can I change the default action to open?

    Hello Nekora,
     
    Thanks for posting on the Community Forums of Microsoft Vista.

    Note: to set Windows Explorer to open in a new window, you must have the disabled Navigation pane.

    To Turn Off the Navigation pane, follow the steps.

    1. click on the toolbar button organize in Windows Explorer.
    2. click on page layout.
    3. Turn Off the Navigation pane - click Navigation pane to turn off highlight the icon.

    Later the value folder always options open the folder in a separate window.

    1. access control panel.
    2. open the Folder Options.
    3. Select the option "open each folder in its own window.
    4. click on apply and Ok.
    5. close the Folder Options and Windows Explorer window when finished.

    Restart the computer and check if it opens in a new window.

    It will be useful.

    Thank you and best regards,

    Srinivas
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to create a button in Blackberry?

    I want to create a button through States: off (bitmap1) and, when clicked on it (bitmap2).

    I know how to focus and unFocus. But I want to change the image of the button when it is selected and maiitien this second bitmap.

    It is possible to do in Blackberry?

    This demo of the sample can help you: try this in a separate file;

    public final class LoadingScreen extends MainScreen
    {
        private boolean isClicked=false;
        BitmapField facebook;
        Bitmap facebookBit=Bitmap.getBitmapResource("f.png"),facebookBitHover=Bitmap.getBitmapResource("f_h.png");
        public LoadingScreen()
        {
            isClicked=false;
            createGUI();
        }
    
        private void createGUI()
        {
            add(new LabelField("Click the Below Image",Field.FOCUSABLE));
    
            facebook=new BitmapField(facebookBit,Field.FOCUSABLE)
            {
                protected boolean navigationClick(int status, int time)
                {
                    if(isClicked)
                    {
                        isClicked=false;
                        facebook.setBitmap(facebookBit);
                    }
                    else
                    {
                        isClicked=true;
                        facebook.setBitmap(facebookBitHover);
                    }
                    return super.navigationClick(status, time);
                }
            };
            add(facebook);
    
        }
    }
    

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

    Do not hesitate to click LIKE button if the solution is correct;

  • How to remove otomatis dialog box?

    When I press return on a screen, dialog screen see alert him choice of Pentecost Save, Discard, cancel... I want it to show not when I click navigation back? any solution? Thank you

    Hello

    Replace the onSavePromt function.

    Check out this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/disable-the-prompt-for-save-discard-and-CANC...

    E.

  • Reading of texts

    Apologize if this sounds like a newbie quesiton.

    I tried to read the string in the file that is located in the /res folder. This code is based on the following knowledge base:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    Now, I have tried the code in the Knowledge Base, and it was working fine. I want to code a little, so I have the app in a form, which contains labelfield and a button field. When the button is clicked, I want to read the file.

    The code is as follows:

    public class ReadTextFile extends UiApplication {
        public static void main (String args[]){
            ReadTextFile app = new ReadTextFile ();
            app.enterEventDispatcher();
        }
    
        public ReadTextFile(){
            pushScreen(new ReadTextScreen());
        }
    
    }
    
    final class ReadTextScreen extends MainScreen{
    
        public ReadTextScreen(){
            setTitle(new LabelField("Test Reading File"));
            LabelField labelFld = new LabelField("Click Button");
            add(labelFld);
            ButtonField readButtonFld = new ButtonField("Read");
            readButtonFld.setChangeListener( new FieldChangeListener() {
    
                public void fieldChanged(Field arg0, int arg1) {
                    TextRetriever r = new TextRetriever("text.txt");
                    Dialog.inform("Reading success! " + r.getString());
                }
            });
    
            add(readButtonFld);
        }
    }
    

    TextRetriever.java:

    public class TextRetriever {
        private String _filename;
        private String _read;
    
        public TextRetriever(String filename){
            _filename = filename;
            _read = "";
            run();
        }
    
        private void run(){
            try {
                Class claz = Class.forName("net.realnetworks.blackberry.tutorial.TextRetriever");
                InputStream is = claz.getResourceAsStream("/" + _filename);
                InputStreamReader reader = new InputStreamReader(is);
                char c;
    
                while ((c = (char)reader.read()) != -1) {
                    _read = _read + c;
    //                System.out.print(c);
                }
                reader.close();
                is.close();
            } catch (Exception e) {
                System.out.println("Error in reading text.txt. Error: " + e.toString());
                //e.printStackTrace();
            }
        }
    
        public String getString(){
            return _read;
        }
    
    }
    

    When I tried the code in the BlackBerry Simulator, and when I clicked on the button, the process seems to run forever. I was looking at the console, he printed a lot of things I did not understand, such as...

    JVM: bklt[1] @261804: idle 15
    JVM: bklt @261804: setTimer 15
    VM:PFLAs=1e000
    VM:+GC(f)w=20
    VM:-GCt=10,b=0,r=0,g=f,w=20
    VM:QUOT t=1
    VM:+CR
    VM:-CR=0
    VM:+RP!w=14,a=29M,s=8.1K
    VM:+GC(r)w=5
    VM:-GCt=10,b=0,r=0,g=r,w=5
    VM:-RP!s=37.7M
    VM:PCSTt=0,m=1,o=7,n=7,b=2592934,a=2592934
    

    Which prints over and over again. Where am I wrong? The code looks ok to me.

        // Coded as a static 'helper' method that may be used from other classes
        public final static byte [] readDataFile(String fileName) {
            System.out.println("Reading file from cod: " + fileName);
            InputStream is = null;
            byte [] response;
            try {
                // The class name is the fully qualified package name followed
                // by the actual name of this class
                Class classs = Class.forName("net.realnetworks.blackberry.tutorial.TextRetriever");
                // to actually retrieve the resource, prefix the name of the file with a "/"
                is = classs.getResourceAsStream("/" + _filename);
                //we now have an input stream.
                response = IOUtilities.streamToBytes(is);
                return response;
            } catch(Exception ex) {
                System.out.println("Exception reading file: " + fileName + " : " + ex.toString());
                return null;
            } finally {
                try {
                    if ( is != null ) {
                        is.close();
                    }
                    is = null;
                } catch (Exception e) {
                }
            }
        }
    

    Can't see anything obviously wrong with your code, you have reinforced with her.

    But I must say that this is not the best piece of code I've seen, especially because of the way you concatenate the string.  Because strings are immutable, this will result in a large number of objects String is created and discarded, which would explain Garbage collection, you see.

    (the line in the journal "VM: + GC (f) w = 20" is, I think, a full garbage collection)

    Above is a code I knocked up which will return the data as a byte stream file more efficiently your code I think.  You need a new String (response) to get the string.  Note that there is no need to create an object to do this - you just need to run code, so a static method is fine (and more effective).

    Note that this code that I have written, not tested, may not work, you get the picture...

    Ed.  Sorry, inserted forum code before the notes!

  • set the background on the issue VISUAL_STATE_ACTIVE

    In my custom field, in the costructor, I added the following code:

             setBackground(VISUAL_STATE_NORMAL, _normal);
                setBackground(VISUAL_STATE_FOCUS, _selected);
                setBackground(VISUAL_STATE_ACTIVE, _pressed);
    

    When my field gain/development of lose, the right Background is set. When occurs a click navigation background remains "_normal" and does not change on '_pressed '.

    If I add in the method of 'navigationClick()' ovverrided

               setBackground(_pressed);
    

    It works, but I really don't like this solution. Any ideas?

    I solved this way:

     protected boolean navigationClick(int status, int time) {
            setVisualState(VISUAL_STATE_ACTIVE);
            invalidate();
            return true;
        }
    

    I thought that the system would automatically change the Visual State automatically to the click event (as it should).

    Note: as you can see, I have to manually trigger the invalidate() to see the effect on the screen.

Maybe you are looking for

  • How to recover deleted contacts

    I deleted contacts from my account. I am able to retrieve these? Thank you!

  • Toolbox graphic and assembly language of Saturn on the HP 50 g

    Hello. It's posibble to use instructions of the graphic Toolbox in Saturn on the HP 50 g Assembly language programs? If possible, give an example of the program which draws the filled area.

  • HP Pavilion laptop: WIFI falls randomly

    1 month old notebook comes with windows 10 preinstalled WIFi connection was an issue from the start, driver update enabled him to start work at henriq but it remained a problem - and is unusable WIFI is de-energized at random, all other devices in th

  • How can I fix error 0x800C0133 # for Outlook Express 6

    I had been away from my Outlook Express 6 on this computer for several months and when I went to download e-mail messages that have been accumulated, he kept downloading the same emails again and again until there were about 70 000 e-mails between my

  • Windows mail Inbox messages disappeared

    I have a friend who has vista business os and is using windows mail. She lost him all the messages in his Inbox. There is here an Inbox, but there only the most recent messages. no idea as to what happened to the other messages? some of them were qui