Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:59:41+00:00 2026-05-23T11:59:41+00:00

The Blackberry Torch is showing some wierd behaviour. I have subclassed EditField only for

  • 0

The Blackberry Torch is showing some wierd behaviour. I have subclassed EditField only for visual stylings. In the main application, I instantiate 2 of these custom EditFields and set the style bit to EditField.FILTER_REAL_NUMERIC in order to limit input to numbers. These EditFields are then placed in a custom GridFieldManager along with some label fields which are un-focusable.

If I touch (in the simulator) directly on one these EditFields, the full qwerty key pad is displayed. At this point, if I touch either of the EditFields that do not have focus, the correct key pad is displayed. The same is true if I use the trackpad to scroll the focusable fields; the correct key pad is displayed.

Is this a known issue, or did forget something?

NOTE: I have no idea if this is an issue on Torch device, since my office does not yet have a Torch device.

UPDATE: It looks like this related to the custom GridFieldManager that manages this field. This custom code is only for determining where focus should go:

public ExGridFieldManager(int rows, int columns, long style) {
        super(rows, columns, style );
    } // END contructor -----------------------------------------------------------------

    /* PROTECTED METHODS ----------------------------------------------------------------------- */

    // handle focus gain on container
    protected void onFocus( int direction )
    {
        if ( direction > 0 )    // focus came from previous field
        {
            for(int i = 0; i < this.getFieldCount(); i++)
            {
                if (this.getField(i).isFocusable())
                {
                    this.getField(i).setFocus();
                    return;
                }
            }
        }
        else if ( direction < 0 ) // catch case where focus came from following field
        {
            for(int i = this.getFieldCount() - 1; i >= 0 ; i--)
            {
                if (this.getField(i).isFocusable())
                {
                    this.getField(i).setFocus();
                    return;
                }
            }
        }
    } // END onFocus() ------------------------------------------------------------------

    protected void paint( Graphics g ) {
        super.paint(g);
    } // END paint() --------------------------------------------------------------------

    // catch touch on a given inside this manager and set focus appropriately
    protected boolean touchEvent( TouchEvent event ) {
        int index; // for holding index of field where touchEvent ocurred

        if ( event.getEvent() == TouchEvent.CLICK ) {
            index = this.getFieldAtLocation( event.getX(1), event.getY(1) );

            if ( index > -1 )
                this.getField(index).setFocus();
        }
        return false;
    } // END touchEvent() ---------------------------------------------------------------

    /* PUBLIC METHODS -------------------------------------------------------------------------- */

    // determines when this manager should and should not recieve focus
    public boolean isFocusable()
    {
        for(int i = 0; i< this.getFieldCount(); i++)
        {
            if (this.getField(i).isFocusable())
            {
                return true;
            }
        }
        return false;
    } // END isFocusable() --------------------------------------------------------------
} // END class ====================================================================================

UPDATE 2: I am targeting Blackberry OS version 5.0.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:59:41+00:00Added an answer on May 23, 2026 at 11:59 am

    The problem was with the GridFieldManager in Blackberry OS 5.0. I found a custom one here, subclassed directly from net.rim.device.api.ui.Manager, that fixed the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Blackberry application which, when run in some emulators with touch support
I have written an application for BlackBerry devices that stores some files in the
I have a Blackberry Torch 9800 that displays as wallpaper a photo that I
I have some time now working with the BlackBerry's Eclipse Plugin with no issues
Is there a way to detect BlackBerry Model in asp.net, I have made some
On Blackberry 6.0, I have used the following code to delete all the call
I'm developing a BlackBerry 5.0 app. I have an entity to be displayed on
For push notification in blackberry, i got application id from rim. It will valid
I want to zoom image in blackberry torch.For this i am using ZoomScreen predefined
I am developing a Blackberry Java application and I need an update count in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.