Make the fields within a focusable VerticalFieldManager

This should be rather trivial, but I can't get fields inside a verticalfieldmanager accept and behave focusable and allow the cursor movement is visible.

I have a popupscreen. He has created with a verticalfieldmanager (code to follow).

Inside that I need another manager of vertical field so I can view a list of fields in a section with scrolling and always allowed to display items at the top or at the bottom of the context menu without being invaded by the central list.

After having none of the fields in the list has the focus.

The environment is JRE4.5 + 8300 on the Simulator.

Appreciate any comment. /Jeff

Code for popup:

public static class ScrollingPopup extends PopupScreen {}
VerticalFieldManager innerFieldManager;

public ScrollingPopup() {}
Super (new VerticalFieldManager());
innerFieldManager = new VerticalFieldManager (VerticalFieldManager.FOCUSABLE |) VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR) {}
protected void sublayout (int maxWidth, maxHeight int) {}
int newHeight = (int) (Display.getHeight () * 0.5);
Super.sublayout (maxWidth, newHeight);
setExtent (maxWidth, newHeight);
}
};
I tried with a VerticalFieldManager default, but it made no difference
innerFieldManager = new VerticalFieldManager (VerticalFieldManager.FOCUSABLE |) VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
for (int i = 0; i)< 10;="" ++i)="">
innerFieldManager.add (new LabelField ("item" + i));
}
Add (innerFieldManager);
innerFieldManager.setFocus ();
Add (new SeparatorField());
Add (new LabelField ("label attached to the bottom"));
super.onDisplay ();
}
}

Sorry only looked at this briefly, but remember that the Blackberry does not focus on managers, he focuses on the fields.  It "scrolls" focusable field to the field focusable.  In this case, you add LabelFields loads, which are not, by default, the object of focus.  So I suggest you must make them active, or add some NullFields, that are focusable but no presence of the user interface.  I hope this helps.

Tags: BlackBerry Developers

Similar Questions

  • Not able to see the fields within a custom resources optimization

    Hi all

    I am not able to see the fields within a custom value.

    Here is my code for the custom resource optimization:

    public class CustomContentContainer extends VerticalFieldManager{
    
        String content_header;
        int container_height;
        int displayWidth = Display.getWidth();
        int displayHeight = Display.getHeight();
    
        public CustomContentContainer(String content_header,int height){
            super(Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL);
            this.content_header = content_header;
            container_height = displayHeight-height;
        }
    
        protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, container_height);
            setExtent(maxWidth,container_height);
        };
    
        protected void paint(Graphics graphics)
        {
            int X_POS = 20;
            int Y_POS = 20;
    
            int width = displayWidth;
            int height=container_height;
            int[] xPts = {0, width, width, 0};
            int[] yPts = {0, 0, height, height};
            int[] colors = { 0xffffff, 0xf7f7f6, 0xd4d0cc, 0xb0a9a2 };
            graphics.drawShadedFilledPath(xPts, yPts, null, colors, null);
    
            graphics.setColor(0xc0c0c0);
            graphics.drawRoundRect(X_POS, Y_POS, getWidth()-40, container_height-40, 10,10);
    
            int stringWidth = getFont().getAdvance(content_header);
            graphics.setColor(0xF8F8F8);
    
            graphics.fillRect(35, 5, stringWidth+10, 30);
    
            graphics.setColor(0xFF0000);
            graphics.drawText(content_header, 40, 5);
        };
    
    }
    

    Here is the Code inside the class from the main screen

    settingsContainer = new CustomContentContainer("Settings",vodavaultLogo.getHeight());
            contentContainer = new VerticalFieldManager(Manager.VERTICAL_SCROLL|USE_ALL_WIDTH);
    
            passwd1 = new CustomEditField();
            passwd2 = new CustomEditField();
            contentContainer.add(passwd1);
            contentContainer.add(passwd2);
            contentContainer.setMargin(35,35,35,35);
    
            mainContainer.add(vodavaultLogoField);
            settingsContainer.add(contentContainer);
            mainContainer.add(settingsContainer);
            add(mainContainer);
    

    You must call the super.paint (.) in your paint (...) optimization of resources, if you paint all areas which are added.

  • How to make the field as a table display only?

    A form on a table, I can do the display as field: "view only".

    In a tabular presentation, it doesn't seem to be the option "View only" view. In tabular form attributes, I set a default value, and I have no users to edit this field. So, how can we make the field only do "display"?

    V4.1

    You can change the definition of the column and change the Display as in "Display text (saved state)" attribute whose value will be the column will be saved with the other columns and the default way.

    Thank you
    -Jorge

  • How to make the fields from the drop-down list required to make a selection before you save a PDF file

    I have a PDF form where I entered a JAVA script in some areas by using the option ON BLUR under 'Actions' and it works very well to prevent users to go to another site if they leave the field with the empty JAVA Script in place.

    My question is that I have other form fields that have a drop down menu where they can choose several options. I would also like to make these fields to where they can't move forward on the form unless they choose an option in the list. However, because with the option in the list "choose a ' is a default option entered into the field (field is not empty), script JAVA of BLUR ON option I used in my empty fields does not work to block the user to move beyond the matter without selecting an option. They are able to save the form with all the drop down menus staying to 'pick '.

    I made the field "Required fields" then they are highlighted with the red area around, but is there another tool to force them to choose an option for each in the drop down menus before you save the form, instead of being able to save with leaving the 'choose One' in the field by default?

    The best way to do this without knowing the default value of the field is to compare the value of the field to the default value of the field... You must make sure that your default value is not part of the possible acceptable answer. It works with most of the field types that a user can fill.

    If (event.value! = event.defaultValue) {}

    do something;

    App.Alert ("required field not completed. \nField name: "+ event.target.name, 1, 0);

    }

  • Can I make the fields that I created in Acrobat Pro MS justified downtown?

    Hi everyone it should be so simple but really hitting my head. I try to get the fields that I created in Acrobat Pro ms to center then justify text when user types it is the Center not on the left side. I can set the size of text and other but cannot find how to make the above... Thank you

    Yes, it can be done. Go to the properties of the field and under the Options box tick the box 'Allow Rich Text Formatting'.

    Leave the form editing mode, click the field and press Ctrl + E. This will open the properties bar where you can set several formatting options for text, including to set it as "align justified."

  • Make the field on opening document readonly

    I don't know where to put the Javascript code to do this.  There is a Document Javascripts I called a script 'Disable' and in this function, wrote: this.getField("myfield").readonly = true;

    Then, I closed the document, it has reopened, and the field is NOT readonly.  How to make this work?

    Thank you.

    I thought about it.  Code should not reside inside a function so that it will run at startup.

  • How to make the field read udf only in IOM 10 g

    Hello

    Can we read only in IOM 10 g field of the udf. I couldn't see an option during the creation of the UDF. We can customize the formmeta to make the udf read-only?

    Thank you

    update in FormMetaData.xml

    find the formula 3 default for the form of the USR

    update below
    Editable = false

    Published by: Zaba Nayan on 8 February 2012 23:32

  • make the field looks like a gray field "ReadOnly".

    Hello

    Hey anybdy please help me regarding my business requirement is
    1. in the activities I do the subject field as read only IE not edit/change when the status field is 'done '.

    2. how culd I do the above subject field resembles a 'read only' in the grey field and pop - up of Validation must be disalbed.


    I did the 1st task bt needed help in task 2.

    Help, please.

    Thank you and best regards,

    Asif

    Subject is one of the required fields on the Activity object, so you can't make it read-only. What you can do is ' apply restrictions (through field validations / before the modified workflow) on the field object and make sure that the subject is not changed for the completed activities.

    You can't have the subject field to appear in gray.

  • Make the field required using the Validation

    Hello

    I use R17 and want to make a field required by the adding validation [< field >] IS NOT NULL

    Strangely, this does not work on a new Record. a NULL value is always accepted. It only works for a modified record.

    has anyone in front of it too? or is this a BUG in my environment.

    Any ideas?

    Just to check if it works, I tried a [< field >] validation IS NULL and it worked correctly on New and updated records.

    Thank you
    Royston

    Hello

    There is a solution to achieve this. PL download the configuration steps of the below mentioned link.

    http://DL.dropbox.com/u/3971519/make%20A%20Field%20Required%20Using%20Advanced%20Field%20Management.doc

    Let me know if you have any questions.

    Rgds,
    Amit samir

  • MAKE THE FIELD TAB AUTO SHAPE

    So I have this PDF form with several fields. The form I'm working with is used as a record of vehicle sheet and the area concerned is the section of the vehicle identification number (VIN). A wine is 17 digits and I have 17 different fields limited to a number max of 1, what the problem is when I use a standard JavaScript code in the document

    function goNext (article, event, cName)

    {AFNumber_Keystroke (0, 0, 0, 0, "", TRUE);}

    If (event.rc & &)

    AFMergeChange (event) .length is event.target.

    charLimit)

    item.getField (cName) .setFocus ();

    }

    and in the properties of the field, I selected the tab format

    Custom format category

    Custom script from typo: goNext (this, event, "Vin2");

    My problem is I can use only numbers and if I try to use a normal wine as 1cg745bs743825167 he was going to let me use the letters. Also I'm trying to figure out how to click on the first form field for the first character of the wine, then press Ctrl + V to paste the WINE and it won't let me someone for directions on how to do these two things happen?

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    The AFNumber_Keystroke requires or allows only numeric values to be enterefd. The sample form has been to enter digital data like SSN.

    This approach has been used before 'comb' fields become available. You should be able to use a field of comb with a user writes the validation script and a charater of 17 characters limit.

  • How to make the field 'Description' biggest area? (3 to 4 lines in height compared to the present 1 line)

    I'm guessing that in CSS or HTML in the Editor of Landing Page I can do form field seems bigger than just the single line. Ideally, I would like to than the text about 3 to 4 rows height box.

    Please help me solve this problem! Means the simplest would be the best, but I'll take any answer at this stage.

    Thanks Topliners community!

    Figured out that you go to "Custom Fields" then hit paragraph box and replace the HTML name, as well as card in the stages of treatment, in the field "Description". PM me if you want more details and this has been a concern for you as well.

  • JavaScript to make the fields to fill in the form read-only?

    How the fields to fill out my form read-only? I created the form, send to clients. Clients fill out the fields and click the submit button. The submit button pulls an automatically generated email and send the pdf file. I want the pdf file to send with the fields read-only. How then?

    This code should do the trick:

    for (var i=0; i		   
  • Make the field of form required only if the criteria

    I have a form in Acrobat 9 Pro which has a yes / no radio button and then a "If Yes, please give details below...". "on the ground. Is it possible to do the "If Yes...' required field, but only if the user selected Yes in the previous questions?" Should it be not required if they have selected No.

    It's just well beyond my level of knowledge so if someone has any ideas?

    See you soon!

    You can use the script although I am

    not sure how to write.

    But Radio buttons (which also can be formatted to look like a box an option button is always given to use default value.

    If you have one and two touch a yes no if one is on the other is off and the other direction as well.  How wever both receive a value of Yes.

    so no matter what you press because its value is Yes your hidden field appears. You need to do the no no, what is hidden value field will only appear on the Yes value. for job like that.  should no the names of the fields related to the same thing when it is similar to all the same name will be deposited as well.

  • How to make the fields of metadata required when creating folders

    Hi all...

    Related issue with SR 3-6472229431 and 3-6471130611 SR.
    We use SAY 11.1.6 64 - bits (2011_11_29 (rev 9756) 11.1.6.97) in a Workstation Windows 7 64-bit (with the AAU 11.1.1.5 in a Linux machine). Check-in of images at the Complutense University of MADRID's fine.
    I'm doing some metadata fields required when creating a folder. These fields are required at check-in, but not in the creation of records.
    Folders_g is enabled. DesktopTag too.
    EDIT: The Patch: 14695303 - COE 11.1.1.5.0 BUNDLE (MLR 16) November 6, 2012 applied.

    Is this possible?

    Thank you for all.

    Published by: fgomes on 11/22/2012 03:24

    After reading your response and re-reading the original question a bit closer, the function of metadata guidance does not apply to the creation of new files, only content.

    Again, however, I think that the focus is in the wrong place. The metadata applied to a folder are intended to be applied to the content. You can create global rules that fire on submitting content to check if a field has a value and throws an error if the value is empty.

    If you expect that users create folders (and apply effectively all the metadata in the file real itself), you will be disappointed. Experience shows that users are not interested in this level of detail when creating content, not to mention records. Leave typical users to create folders is a bad idea anyway, because they tend to create the same ineffective folder structures, they created previously in shares within Content Server.

    If you need control over the attributes of the file, you will be better served by locking the ability to create new folders. Otherwise, you are looking at some kind of customization. Remember that you will not be able to customize the behavior of right click and SAY. Any changes to the SAID should be an enhancement request.

  • Is it possible to make the field of browser to fit the actual size of the screen of the device?

    In the HTML code of the web page, add the meta tag with the minimum scale set to 0

    content = "maximum scale = 10.0, minimum scale = 0, scalable user = yes" > "

    On the client side, we can reduce the web page using the method of the initial key.

    config.setProperty (BrowserFieldConfig.INITIAL_SCALE, new Float (value));

    In my case, the following meta tag wasn't there and if the initial scale option did not work after a certain limit. This is defined in the html code, we can scale to any value between the minimum/maximum defined scales.

    With that, my problem has been resolved.

    But, if you want to adapt it to the screen of the device, you will need to calculate the value of the scale to make it suited to the size of the screen in all devices regardless of the resolutions.

Maybe you are looking for

  • When the capacity of the battery falls Satellite Pro U300 occasionally lose power

    Hello I suspect you have a defective battery (standard installed on the laptop) on my new Satellite Pro U300 - 11 k and I wonder if someone had a similar problem.When the power drops to 10%, my laptop occasionally loses power. In the range of less th

  • Need a new mothherboard for Equium A60

    I tried suggestion given in the forum but I am always sick, I think I need a new mothherboard for Equium A60, I searched on the Toshiba site but tere does'nt seem to be links or place where it is said you can buy a home, HELP!

  • Take the last value of the timer

    Hello Looking for a help store the timer values. Set the backround: will be used to gather data for tests on mechanical switch lifecycle sump pumps. Needs to: number of cycles (lit-shut down-lit), Count time stuck we or off (authorized in time is the

  • Why I can't access my Hotmail on Internet Explorer?

    At about 13:45 Pacific time, I clicked on Internet Explorer which is my homepage at hotmail.com and click on it to open my Inbox - a message came stating that Microsoft was not able to do so - fix this problem ASAP - thanks.

  • Printer with Fax

    If I buy a printer with fax capacity how it connects to the outside world?  Telephone line, via computer?