Tab of the static Menu on the scrolling of the list

I have 4 legs, and I have a list. The list is scrollable, I want tho... scrolling tabs above to stay and to scroll just through the list?

How can I fix my code?

package mypackage;

import java.util.Vector;

import net.rim.device.api.system.EncodedImage;
import net.rim.device.api.ui.DrawStyle;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.FocusChangeListener;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.BasicEditField;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.component.SeparatorField;
import net.rim.device.api.ui.component.Status;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.container.VerticalFieldManager;

public class TabControl extends MainScreen implements FocusChangeListener {

        private LabelField tab1;

        private LabelField tab2;

        private LabelField tab3;

        private LabelField tab4;

        private LabelField spacer1;

        private LabelField spacer2;

        private LabelField spacer3;

        private VerticalFieldManager tabArea;

        private LabelField tab1Heading;

        private BasicEditField tab1Field1;

        private BasicEditField tab1Field2;

        private LabelField tab2Heading;

        private BasicEditField tab2Field1;

        private BasicEditField tab2Field2;

        private LabelField tab3Heading;

        private BasicEditField tab3Field1;

        private BasicEditField tab3Field2;

        private BasicEditField tab4Field1;

        private BasicEditField tab4Field2;

        private LabelField tab4Heading;

        private VerticalFieldManager tab1Manager;
        private VerticalFieldManager tab2Manager;
        private VerticalFieldManager tab3Manager;
        private VerticalFieldManager tab4Manager;
        private int catId = 0;
        public TabControl(int id) {
            catId = id;
            HorizontalFieldManager hManager = new HorizontalFieldManager();
            tab1 = new LabelField("Top20", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
            tab2 = new LabelField("Artists", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
            tab3 = new LabelField("History", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
            tab4 = new LabelField("Tab 4", LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
            spacer1 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
            spacer2 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
            spacer3 = new LabelField(" | ", LabelField.NON_FOCUSABLE);

            tab1.setFocusListener(this);
            tab2.setFocusListener(this);
            tab3.setFocusListener(this);
            tab4.setFocusListener(this);
            hManager.add(tab1);
            hManager.add(spacer1);
            hManager.add(tab2);
            hManager.add(spacer2);
            hManager.add(tab3);
            hManager.add(spacer3);
            hManager.add(tab4);

            add(hManager);
            add(new SeparatorField());
            tab1Manager = new VerticalFieldManager();
            tab2Manager = new VerticalFieldManager();
            tab3Manager = new VerticalFieldManager();
            tab4Manager = new VerticalFieldManager();

            tabArea = displayTab1();
            add(tabArea);

        }

        public void focusChanged(Field field, int eventType) {
            if (tabArea != null) {
                if (eventType == FOCUS_GAINED) {
                    if (field == tab1) {
                        System.out.println("Switch to Tab 1");
                        delete(tabArea);
                        tabArea = displayTab1();
                        add(tabArea);
                    } else if (field == tab2) {
                        System.out.println("Switch to Tab 2");
                        System.out.println("Switch to Tab 1");
                        delete(tabArea);
                        tabArea = displayTab2();
                        add(tabArea);
                    } else if (field == tab3) {
                        System.out.println("Switch to Tab 3");
                        System.out.println("Switch to Tab 1");
                        delete(tabArea);
                        tabArea = displayTab3();
                        add(tabArea);
                    }
                    else if (field == tab4) {
                        System.out.println("Switch to Tab 3");
                        System.out.println("Switch to Tab 1");
                        delete(tabArea);
                        tabArea = displayTab4();
                        add(tabArea);
                    }
                }
            }

        }

        public VerticalFieldManager displayTab1() {

            Vector v0 = new Vector();
            MAMClient.getTop20(v0, catId);
            SingersListField listField = new SingersListField(v0);
            listField.setSelectedIndex(-1);
            listField.setSize(v0.size());

        tab1Manager.deleteAll();
            tab1Manager.add(listField);
            return tab1Manager;
        }

        public VerticalFieldManager displayTab2() {
            if (tab2Heading == null) {
                tab2Heading = new LabelField("Password Recovery");
                tab2Manager.add(tab2Heading);
            }
            if (tab2Field1 == null) {
                tab2Field1 = new BasicEditField("Security Question: ", "Mother's Maiden Name?");
                tab2Manager.add(tab2Field1);
            }
            if (tab2Field2 == null) {
                tab2Field2 = new BasicEditField("Password: ", "");
                tab2Manager.add(tab2Field2);
            }
            return tab2Manager;
        }

        public VerticalFieldManager displayTab3() {
            if (tab3Heading == null) {
                tab3Heading = new LabelField("Interests");
                tab3Manager.add(tab3Heading);
            }
            if (tab3Field1 == null) {
                tab3Field1 = new BasicEditField("Hobbies: ", "");
                tab3Manager.add(tab3Field1);
            }
            if (tab3Field2 == null) {
                tab3Field2 = new BasicEditField("Memberships: ", "");
                tab3Manager.add(tab3Field2);
            }
            return tab3Manager;
        }
        public VerticalFieldManager displayTab4() {
            if (tab4Heading == null) {
                tab4Heading = new LabelField("Registration");
                tab4Manager.add(tab4Heading);
            }
            if (tab4Field1 == null) {
                tab4Field1 = new BasicEditField("Username: ", "");
                tab4Manager.add(tab4Field1);
            }
            if (tab4Field2 == null) {
                tab4Field2 = new BasicEditField("Password: ", "");
                tab4Manager.add(tab4Field2);
            }
            return tab4Manager;
        }
    }

I solved it now

Yes, you do the first floating and other horizontalmanager scrolling.

but in the constructor of your form, you must specify this too
Super(NO_VERTICAL_SCROLL |) NO_VERTICAL_SCROLLBAR);

Tags: BlackBerry Developers

Similar Questions

  • I need to open the web site even in two separate tabs. Since I've upgraded to Firefox 6 when I try to open the web page in a new tab in the list in the drop down in the address window it gives that the opportunity to move to the already open tab.

    When I get off the fall from the address window, rather than display the URL of the Web site I want to open in a second tab says "switch to the tab '. But I don't want to move to the tab - I want to open a second tab on the same URL. If I want to open it a second time, I have to manually enter the address. Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu? I was always able to do this with the previous versions of Firefox.

    "Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu?

    You can install this add-on: https://addons.mozilla.org/en-US/firefox/addon/switch-to-tab-no-more/

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • How to get the names of the tabs in the void?

    Hi all

    Could someone tell me how to get the names of all the tabs of void?

    I have Parent tab T1. T1 has 3 tabs sup T1_1, T1_2 and T1_3.

    I would like to have T1_1, T1_2 and T1_3 names tab in the list.

    Thanks in advance!

    Dip

    Dip,

    You can get the name of the tab of the apex, apex_application_tabs & apex_application_parent_tabs dictionary views. Thank you.

    Kind regards
    Manish

  • cannot move tabs from the bookmarks menu, if I close menu bm and reopen, I can drag tabs to it temporarily, but it will fail again soon.

    Title pretty much everything said. I can't drag to the menu bookmark tabs without closing and re-opening then menu bm. Then it will last for a while that I can drag the tabs to the menu but at some point I can no longer drag the tabs. When I drag a tab, I get a little picture of the tab url page but no line that shows where the tab can be moved.

    A corollary of this problem, I think, is that bookmarks bar won't remember from one day to the next the changes I made. He remembered the changes through a reboot and so far, for the rest of the day. But the next morning, the bookmarks are back to what they were, just confused upward.

    I've deleted and reinstalled FF, I refreshed it, I took ALL the Add-ons to the wide (including one I use all the time roboform) and the problem persisted for several days. I don't remember when exactly it started, but a week ago, everything was fine, I was not using problem and one day I could no longer be synchronized with xmarks xmarks and roboform and my favorites were all messed up.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Tab of the menu in the Menu bar does not open in Firefox 38.0.1.

    When I try to open the Menu tab in the Menu bar, nothing happens. If something when I click Menu a very small square appears under the underlined M, then disappears when I click on it again. All the other tabs on the Menu bar of the HelpFile works just fine. I uninstalled Firefox 38.0.1 the reinstalled again and the problem persist. I even went back to 37.0.2 but the problem persists even if it didn't happen when I was running 37.0.2 before installing 38.0.1. It is worth noting that I've actually upgraded to 38.0.1 17/05/2015 and everything has worked fine until today.

    I don't have a Menu on my menu bar, just:

    File Edition display history bookmarks tools help

    Is this something created by one of your extensions? What was this about?

  • I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    Hello
    I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    I use Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the Intel Core i7 2.7 GHz and 1333 MHz DDR3 8 GB memory.

    Thanks in advance,
    Pat

    You have a "Community Toolbar" extension installed? Which has been reported by other users of Mac as affecting the new tab feature in Firefox 30.

  • TabGroups Manager use/uninstall deleted view - toolbars - tabs on the top menu.

    After using the TabGroups Manager addon for a short period, I decided to remove again. One of the options that it allows him to use tabs on the high function, I was using. He puts his own groups of toolbar in the title bar, but it seems buggy, so I removed it, with tabs on top still operational. I had been using it via the main menu, by using Alt-V-T-T. After you remove TabGroups Manager according to the normal procedure, from the extensions page and restart, I realized that I had tabs on top and went to restore it, but the element is missing from the menu. I don't know any other way to change this, but the biggest concern is that the menu items have been removed at some point. Please could you tell me what may have caused this and how to restore the option.

    The status bar is no longer used in current Firefox releases and is replaced by the add-on bar (view > toolbars).

    Current versions of Firefox only show the menu entry "Tabs" at the top menu "view > toolbars" and "Firefox > Options ' and in the shortcut menus toolbar if the tabs are not in the default position on the top.

    If the notches located on the top and the menu entry is not available and you want to move the tabs under the navigation toolbar, then you have to toggle the pref browser.tabs.onTop false on the subject: config page.
    A restart of Firefox is necessary for updating the menu entry to display or remove.

    Note that this pref will no longer effect when the code Australis lands on the output channel (which will be in Firefox 29,0).

    Some menu entries in the main menu bar are hidden if you are using the mouse and only appear if you use the keyboard to open the menu.

    Some entries in the View menu and history have been deleted to clean up the UI, because studies showed that it was low-use items.

    On Windows and Linux, these were already hidden when serve you the mouse to enter the bar of menus and only appeared when you used the keyboard.

    You can click on the button Home (far-right on the Navigation bar) or the keyboard (Alt/Option + Home).

    You can find backward, forward and reload from the context menu in the navigation area or the use of the buttons on the Navigation toolbar.

    See also "help keyboard shortcuts >.

  • How to scroll through the tabs with the mouse wheel?

    I used to be able to scroll the selection of tabs when the tab bar is filled using my wheel mouse (like the arrows on each side navigation), but recently it changes the tab I look as if I physically clicked on this subject.

    I'd appreciate help on how to make it work as he did.

    That should still work if you hover over with the mouse, the tab bar.

    Make the scroll buttons on the tab bar work?

    You have maximized the window of Firefox?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • When I click on the tab with a + on it, located next to the current tab, a new page does not open. If I click on 'New tab' in the file menu, a new tab do not ope

    When I click on the tab with a + on it, located next to the current tab, a new page does not open. If I click on 'New tab' in the file menu, a new tab does not open.

    Thanks for posting the details of your system. I'm skeptical about the "CompTool0234 Community Toolbar". Could you disable some add-ons and see if that helps.

    On this tab:

    Firefox orange (or the Tools menu) button > addons > Plugins category

    Disable «Conduit Plugin»

    On this tab:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Disable the CompTool0234 community toolbar.

    Then very probably a link will appear to restart Firefox to make the change. Does make a difference?

  • How to remove options open all in tabs from the bookmarks menu

    Hello

    I have Firefox 17.0.1.

    Is it possible to remove or disable the all open at the point of tabs in the bookmarks menu submenus? I chose during it by mistake, and a lot of unwanted tabs appear as enraged politicians.

    Thank you.

    Jack

    You can set the pref to 1 browser.tabs.maxOpenBeforeWarn on the topic: config page in order to get a warning in such cases (works with one click setting on a folder).

    You can add this code in the file userChrome.css below default @namespace.

    Customization files (interface) userChrome.css and userContent.css (Web sites) are located in the chrome folder in the user profile folder.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #PlacesToolbarItems .openintabs-menuitem,
    #placesContext>menuitem[id="placesContext_openContainer:tabs"],
    #placesContext>menuitem[id="placesContext_openContainer:tabs"]:not([hidden])+menuitem+#placesContext_openSeparator {visibility:collapse!important}
    
  • Tabs at the top of the page option does not appear in the menu when I control-click on a blank section of the tab strip in Firefox MacBook on 15.

    I've just updated my Firefox version 15.0 browser on my MacBook. I'm really used to having the tabs under the address bar. However, when I Ctrl-click on a blank section of the band to tabs, there no option "Tabs" at the top on the shortcut menu.

    Any suggestion on how to find this option would be appreciated.

    That changed in 15 Firefox and is now a hidden preference; the default is for tabs on top to be on. To disable the tabs on top, you use about: config. The instructions are the last item on the next page. I've also included a link on how to use about: config

  • How can I reomove the tabs of the band to tabs, there are too many and I can't scroll right or left.

    I do not understand how the tabs have been selected for a place in the band of my tab, but it is full. I want to remove tabs for sites that I rarely use to make room for those that I use a lot. Article help said me I can move within the band and scroll right or left to see more tabs, but there is no arrow on the ends of the strip of my tab.

    You talk tabs on the tab bar that displays the currently open web pages or bookmarks in the bookmarks toolbar?

  • Why 'Bookmaks' menu choice "to bookmark all tabs", removed the 5.o version, I have loved and used this valuable feature almost every day!

    This feature was version 3.6.18, why you would remove version 5.0! It allowed users to mark all the tabs open on the current window and give it a name. This impressive
    feature allowed the user to save all open tabs in the event of a failure of the system or power failure, or other.

    Bookmark all tabs is always available:

    • Right-click on a tab and choose "bookmark all tabs".
    • CTRL + SHIFT + D
    • Using the menu bar
      • Press the ALT or F10 key to temporarily show the menu bar
      • While the menu bar is displayed, click bookmarks > bookmark all tabs

    Information included in your message shows that you use Firefox 3.0.19 to ask your question. This version of Firefox is old, is no longer supported and probably has security problems. You should switch to Firefox 3.6.18 or Firefox 5, the only versions currently supported.

  • I can't get the tabs of the previous session of the return when I reopen it Firefox. The header of the window, or 'Quit' in the file Menu using 'Close' of Firefox not working. Note that "Restoration of previous Session" on my Menu history is grayed out so

    Question
    I can't get the tabs of the previous session of the return when I reopen it Firefox. I tried closing with 'Close' header of Firefox window, but also 'Quit' in the file Menu. Note that "Restoration of previous Session" on my Menu history is grayed out so I can't use it. In addition, there is no tab at the top of my window to open Firefox Firefox - only a menu bar that shows "File", "Edit", "View", "History", "Favorites", "Tools" and "Help". I am running Windows 7 Home Professional and Firefox 4.01

    "I can't do the tabs from the previous session of the return when I reopen it Firefox.

    Remember that you are not private browsing or they are in permanent private browsing mode. See: https://support.mozilla.com/en-US/kb/Private%20Browsing (2nd and 3rd options menu on this page)

    Make sure that you are not clearing history during a session or when Firefox is closed. See:

    • Clear recent history: https://support.mozilla.com/en-US/kb/Clear%20Recent%20History
    • Clear history of Firefox closing: uncheck 'Clear history of Firefox closing' options > Privacy panel (the first item under "History" on this Panel should be set on "Firefox will be: use the custom settings for history" to see that point to uncheck)

    "There is no Firefox tab at the top of my Firefox window open - only a menu bar.

    The Firefox button is supposed to be on by default in Vista and Windows 7.

    In Firefox 4, you have the choice of using the Firefox (orange or grey) button in the upper left or the menu bar (File, Edit, View, history, Favorites, tools.) Help).

    • The selections on the Firefox button are distinguished by the menu bar options.
    • You can easily switch between the Menu bar and the Firefox button or leave one or the other active.
    • One used depends on if the Menu bar is enabled
      • Bar menu checked = Bar Menu on, Firefox off button
      • Bar menu unchecked = Menu Bar off, Firefox button on

    When the Firefox button appears and you want to temporarily view and use the menu bar, press ALT or F10 displays the menu bar and you can make your selections in the Menu bar displayed temporarily.

    To check (or uncheck) the menu bar, do one of the following:

    • using the Firefox button: click on the Firefox button > Options > Menu bar
    • using the Menu bar: click on view > toolbars > Menu bar
    • Hold DOWN the ALT key while pressing the VTM keyboard letters
  • Firefox 3.6 has been a "bookmark all tabs" in the Favorites drop-down menu. How can I "bookmark all tabs", using Firefox 4.0.1

    I've recently updated to Firefox 4.0.1 of Firefox 3.6. Firefox 3.6 had a "bookmark all tabs" in the menu bookmark in the menu dropdown. It is not a "bookmark all tabs" in the bookmarks menu of Firefox 4.0.1 on the menu drop down. This feature has been removed since Firefox 4.0.1? If I want to save 24 tabs in a window of Firefox and 14 tablets in another window of Firefox, should I save all tabs individually? How can I set options, preferences, etc. so that I can "bookmark all tabs" at the same time in a window of Firefox 4.0.1. I use Firefox 4.0.1 on a desktop computer with Windows7 professional OS with Firefox as my default browser.

    Right-click on a tab and you will be able to bookmark all tabs. Or use the Alt + B keyboard that opens old style menu. You can make changes to Firefox, as explained in this post: /questions/799856 #answer - 155765

Maybe you are looking for