BB10: Element of Focus

Do anyone know how to focus, for example, code-behind in BB10 TextArea?

Thank you!

In the Cascades as finally released (10.0 and later), there are requestFocus() on all controls.

Tags: BlackBerry Developers

Similar Questions

  • Assignment of an element of the application when an element loses focus

    I'm trying to implement this feature in my APEX application:
    When the user enters a value in a text element loses focus, a RadioGroup on the form should be greyed out.
    But the problem is that I need to access the value of the RadioGroup so that the code which is then executed to work properly, but that the value is therefore more accessible if the RadioGroup is disabled.
    So I thought that if I put the value of the Radio group in an application-level element before I turn it off, the code can access the value.
    But how can I do this? It must arrive at the point where a value is entered in the text element and the focus is lost.
    But, as far as I know, the only thing I can implement at this time there is an onblur statement that calls a Javascript function.
    And I don't think I can assign a value to a javascript application-level item, can I?
    Bottom line: I need a way of executing the command
    : F100_Category: =: P1_Category (where P1_Category is the RadioGroup) - what it does to a place in time.
    Any ideas?

    'FALSE' must be all lowercase as 'false '. Without the quotes are necessary

    CITY

    Published by: City aissaoui on December 10, 2008 11:07

  • Elements 8 Focus Stacking

    Can you focus stacking in the new Photoshop Elements 8?

    No - you will need to use a third-party tool.

  • Position of the element, no focused

    In my login page, I have the username and password elements and a background image.
    the elements of user name and password are not centered, how to change their display position?

    I have placed them in #REGION_POSITION_08 #, (using the theme 15). No matter what region, I chose, they are all not centered horizontally.

    Instead of:

    ---------------------------------------------username------------------------------------------------

    It displays:

    -------------------username--------------------------------------------------------------------------

    Thanks for any help,
    Yivon

    Create a copy of a region in your templates / type of region. Change the model by adding the following to this part of the html template:

    #BODY #.

    Apply this model of region in your area on your login page. Your items will be placed in the center of the region.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Detect when the element loses focus?

    Hi all

    I'm expanding a text box when someone clicks in and you try to resize again when they interact elsewhere.e.g.,.

    < mx:TextInput x = "403" y = "16" width = "21" id = "txt_busy" click = "expand_b.end (); expand_b.play (); "backgroundAlpha ="0.5"/ >
    < mx:Resize id = "expand_b" target = "{txt_busy}" LargeurPour = "120" / >
    < mx:Resize id = "contract_b" target = "{txt_busy}" LargeurPour = "21" / >

    But I can't find anything on the detection of a "losefocus" or similar?

    Thanks for your help!

    Use the Focusout/focusouthandler() event.

  • APEX 5 - region to refresh IR without losing the focus on the region of origin

    I have several interactive reports that are on a page. When you select a line in the above report, it updates all other reports. It works very well. However, it changes the focus to the last report which has been refreshed. So basically done scroll all the way to the bottom of the page. I want to focus at the top of the page, but allow the user to scroll down to see additional information if they want to.

    Also, I added a selector to display area directly under the body of the report to allow the user to determine what Sub reports they see. When the user selects a specific report to display (instead of all) I see the following in the console error message:

    TypeError: that.element.find (...) [0] is undefined1 widget.interactiveReport.min.js:1:27035

    When I look in widget.interactiveReport.min.js:1:27035 to this place, I see that he wanders on the following:


    that. Element.Find (": focusable") [0] .focus ())

    I guess she's trying to set the focus to the last region that has been updated and it can't because this region is not currently displayed.

    The positive point is that it seems to be updated even if it is not displayed and the error is not obvious for the end users.

    However, I would really like to be able to update areas without losing the focus on my region of origin. Is this possible?

    Jennifer

    Hi Jen,

    Thanks for reporting this. I agree that it is a question that the update steals focus, where emphasis is already defined elsewhere on the page and filed bug #21214580 to do this, the fix for which we intend to include in the first set 5.0.1 patch.

    For your information, we also have a future feature filed to improve the way that interactive reports are currently managing the focus. Currently always set us the focus to the first focusable element in the report (and now in 5.0.1 with this fix is going to be a registered caveat not to do where emphasis is already defined elsewhere), but what would be better would be to focus, if possible, be restored where it was previously (for example search field buttons next / previous pagination) ), which is the plan for the future.

    When 5.0.1 comes out, you can remove your workaround solution as who will not be necessary.

    Kind regards

    Anthony.

  • Problem with the order of focus of keyboard on the form of Muse (UPDATE)

    Hello.

    I used the standard form of Muse on a Web site. Everything works fine, except for the order of keyboard focus.

    I mean, it's after a name entry, you press TAB and you go on the field of the e-mail. That's ok. BUT, when you press TAB once again, it will not in the message field. He goes to the button send and then starts to go through the links in the navigation bar and only after all of them it goes on the message field.

    I suspect that my form is not align vertically (and shot the message field to the right) Muse is just after a vertical order. As there is nothing under the email field, it goes back to the navigation bar (which is fixed at the top and has interactive elements / links) and then again to find the message field.

    I think the image as an attachment can explain this better. The URL is Bytezone - Digital goods better to do besides.

    Is the cause of the order of the fields in the form, or is there a way for me to control the order of keyboard somehow focus?

    UPDATE - I just realized that the FIRST element to focus on the use of the TAB key is the message, then the name and e-mail (which is weird). How can I solve this?

    Thanks in advance.


    PS - as a 'bonus' problem, I can't find a way to edit the FOCUS State of the Submit button also. Is this normal?

    form_focus_problem.png

    Muse assigns values to index tab in a 'left to right', then order "top to bottom". Then tab order should follow the same regardless of the creation of fields or placement in design mode.

    Thank you

    Sanjit

  • remove the borders mx:TextInput (focus)

    Hi all

    I have this TextInput element that I want to use without its borders. I can remove the borders, but when I click in the textfield it gets orange borders.

    So the question is how to remove these borders when the TextInput element has focus?

    Here is the code that I currently have:

    < mx:TextInput " text = ' My default text'x ='97"y ="10 "" ".

    "" borderStyle = "none"

    "" borderColor = "#FFFFFF"

      borderSkin="{null}"

    "" dropShadowColor = "0xFFFFFF"

    "" dropShadowEnabled = "false"

      borderThickness="0"

    " fontFamily ="Arial"fontSize ="15"/ >

    thnx

    Luca

    Hello

    Please check the code below


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"
       
            private function setBorderThickness (): void {}
    this.tIn.styleName = "textInput";
    }
    ]]>
       

       
    .textInput {}
    Focus-thickness: 0.
    }
       

       
    borderStyle = "none" borderColor = "#FFFFFF" = "{null}" borderSkin
    dropShadowColor = "0xFFFFFF" dropShadowEnabled = "false" borderThickness = "0".
    fontFamily = "Arial" fontSize = "15" focusIn = "setBorderThickness ()" / > "

    Setting the focusThickness 0 on focusIn event will meet your expectations.

    Kind regards

    Anitha

  • How to avoid the focus problem when browsing via browser back button

    Hello

    I am facing a problem in setting focus on the buttons.
    Please see application: http://apex.oracle.com/pls/otn/f?p=47869:2

    login details:
    Workspace: vsanthanam
    user: vijay
    PSWD: apex_demo

    In this application, I have 2 pages.
    #2 has the "submit" button
    Page no. 3 contains the Cancel button

    The two buttons are basic HTML and can be accessed using access key ALT + s and ALT + c.

    The problem is:
    When I go back to the previous page (pgid #2) of the application using back button of the browser pgid IE #3.
    due to the onFocus event located in the button "submit", control returns to pgid #3.

    Is there a possible way to set the focus to other elements. so that whenever IE brower back button, application would stay in
    page #2.


    I took approaches:
    -------------------------
    If we use onclick, onfocus instead and then the problem remains because we have onfocus = "this.click (); in equipping the Accesskey.
    Another way is onKeyup event. If we use onKeyup, we can avoid this browser back problem, but disappears from the access keys functions.

    Pointers on this would be a great help.

    Thank you very much
    -Vijay

    PLEASE NOTE: I have created intentionally two buttons on each page. It is necessary to have HTML buttons with the key features of access,
    otherwise application gives a few flaws in HTML accesskey.

    Hi Vijay,

    Crikey, aren't annoying browsers! It took a while to get out, but I've updated your SUBMIT1 button attributes:

    class="t20Button" AccessKey="s" tabindex="-1" onclick="javascript:this.blur();doSubmit('SUBMIT1');" onfocus="javascript:this.blur();doSubmit('SUBMIT1');"
    

    Note that I removed the spare semicolons you after each attribute - these are only required in javascript code.

    The important point to note are the statements of "this.blur" () - this tells the browser to move away from the current item to the next. On your page, only for this purpose, I have added a text element of Temp - I am assuming that your actual page will have at least one other element on the page that will accept the focus? Everything gets focus of the call "this.blur ()", should be the element with focus when the Back button is used.

    Andy

  • ScrollBar is more scrolling, scrolling in IE

    I'm working on the conversion of a Wordpress template to correct my design. In the process, I added a scroll bar via CSS. It was very well run and now it scrolls is no longer.

    It only happens in Firefox, other browsers such as IE and Chromo scroll correctly.

    The site is not yet completed, but I have encountered this problem and can't seem to understand why Firefox is no longer allows it to scroll.

    If elements on a page do not respond to mouse clicks, then that is always due to other elements that you cover them and manage these events. In your case, it's the #coreContent DIV has a float property and a height of 650px and which covers the scroll bar.

    You need to add a style = "clear: both"to the DIV.pageNav to make it work. "

    You can use the DOM Inspector to see what element gets focus if you click on this part of the page.

    DOM Inspector: https://addons.mozilla.org/firefox/addon/6622

  • Scrolling lists problem

    Hello!

    I have a list of simple fixed size created with

      and
    • Tags. I can test on my Bold 9700, but on this device, it can not scroll the list. What is the problem?




         


           


                     

                            
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                     
      • ....

      •                

            


      even I have the same peoblem so what I did is

      added the onUp and onDown

      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....
      • ....

      and in the script, I managed this onUp and onDown to scroll the div

      function scroll(){
      
          var elm = document.getElementById("mainBodyDiv");    var lastFocusId = parseInt(blackberry.focus.getFocus());
      
          switch(blackberry.focus.getDirection()){         case 2 : // up            if(lastFocusId < 1 && lastFocusId > 9) //lastFocusId less than first element and greater than last element                blackberry.focus.setFocus((lastFocusId-1)+"");            elm.scrollTop -= 50; //height of single 
    • element break; case 3 : // down if(lastFocusId > 0 && lastFocusId < 9) blackberry.focus.setFocus((lastFocusId+1)+""); elm.scrollTop += 50; break; }}
    • I recommend you generate javascript dynamically list in a table and give this table as input to the scrolling feature so that even if you want to add elements of the latter or to generate the list based on a response from the server, it will be very useful

  • Add HorizontalFieldManager to ObjectListField

    Is this possible?

    I think I came up with a solution that seems to work.

    Basically what I've done is created a class that extends HorizontalFieldManager.

    Inside of this, I outweigh the function of painting as follows:

        protected void paint(Graphics graphics)    {     if(this.isFocus())                        {         graphics.setColor(0x00FFFFFF);            graphics.setBackgroundColor(0x0000a8ff);      }     else                      {         graphics.setBackgroundColor(0x00FFFFFF);              }
    
           graphics.clear();     super.paint(graphics);        invalidate();       }
    

    Then I added the other managers / text boxes / bitmaps to the Senior Manager, but I got them all the non-focusable.

    Then I added * a * element focusable all at the bottom of the Senior Manager, but I did the actual height of the Senior Manager under then there, which shows that when this element received focus in the Senior Manager, the background color change, acting as a "hightlight. You can on this element features, then click send you to different screens or Watt, you want to do.

    My only question for now seems to be affecting all areas of text to a color once the Senior Manager is put in evidence... but im still working on it.

  • Problems of UI to render with scrolling

    Hello experts!

    I developed an application that has a child field of verticalManager with a specific height, example:

    VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR | Manager.USE_ALL_WIDTH) {
           protected void sublayout(int maxWidth, int maxHeight) {
            int width = maxWidth;
            int height = 200;
    
            super.sublayout(width, height);
            setExtent(width, height);
        }};
    

    Then, I added a few manager´s with label fields and confines internally, example:

    HorizontalFieldManager hfm = new HorizontalFieldManager(Field.FIELD_LEFT);
    hfm.setBorder(anyborder);
    final LabelField idLabel = new LabelField("BLA ");
    hfm.add(idLabel);
    final LabelField idValue = new LabelField(" BLA");
    hfm.add(idValue);
    

    Well, unfortunately when appear scrolls and I scroll the last element with focus doesn´t appear.

    If I scroll down again the element which should have appeared focusing appear without focus and update the point passed to the order of the day and he didn t show again, unless the item is the last one.

    Any sugestion?

    Best regards, Rampelotti.

    I hoped the calculation would be obvious, but here are a few tips.  This means that the field is added directly to the Manager within which you want to Center.  If this isn't the case, travel managers of the field via getManager() until you get to the one you need and adjust the position of your domain with each Manager (add their x to x of your domain and their y-to-y in your domain).

    1. decide in which Manager you want to visually Center your target area.  Discover the height as using int visualHeight = . getHeight();

    2. find out the scope of your targeted using XYRect fieldExtent = . getExtent().

    This is where you can browse your field managers until you get to the one you need.

    3 calculate the position to reach:

    int newScrollPosition = Math.max (fieldExtent.y - (visualHeight - fieldExtent.height) / 2, 0); cannot access a negative position

    .setVerticalScroll (newScrollPosition);

    If you find it useful, please mark this message as a solution for the benefit of others who may come here via search.

  • List drop-down auto

    Seasons greetings,

    I was wondering if it is possible to have a drop-point list 'automatically' drop-down list when the element has focus?

    Pretty sure this isn't a parameter of APEX, but ensure that JavaScript could do.

    Didn't need to select a default entry.  Just need to expand to highlight the fact that the user must choose a.

    11g - WIN - APEX 4.2

    Thank you

    Hi Samuistu,

    Samuistu wrote:

    Seasons greetings,

    I was wondering if it is possible to have a drop-point list 'automatically' drop-down list when the element has focus?

    Pretty sure this isn't a parameter of APEX, but ensure that JavaScript could do.

    Didn't need to select a default entry.  Just need to expand to highlight the fact that the user must choose a.

    11g - WIN - APEX 4.2

    Seasons greetings to you as well.

    By this do you mean that this selection list should show the options when the mouse is hovered over the selection list?

    If so, here is a small demo made some time ago:

    https://Apex.Oracle.com/pls/Apex/f?p=25147:1

    Here is the related thread where the explanation on how to do this is given.

    Reference: Re: hide/show features in Oracle Apex

    Kind regards

    Kiran

  • Developer of forms 4.5 - bring item displayed in the front when running

    I have 10 items displayed square lined with 2 x 5 to represent a form of rectangle on my form. Individual display elements represent 10 posts on a pallet. Other display items are then used to represent an item it takes placed on a position on a pallet, so affectivly your dragging a point display ontop of another element of the screen.

    My problem: it allows you to drag the item on it but it will not allow you do the reverse. Even if it looks like your selection of the top which is under discussion, forms think your draggin the square behind him? How can I change the focus of the display elements when running?

    I hope that your PC does not fail. You might have trouble to install forms 4.5 on Windows 7 or 8 platforms.

    If I remember correctly, the only way to really check that an item displayed at the top of all the others is to put it on his own Web stacked with the same dimensions as the element. You can move the canvas integer autour rather than on the question, and if the focus is ON the element (by using go_item, for example), while the point will be on top of all the others.

    As soon as another element receives focus which is located behind the canvas, the canvas will disappear.

Maybe you are looking for