Package net.rim.device.api.ui.component

Examples of net.rim.device.api.ui.component.SeparatorField


        _views[0] =
                ActivityIndicatorFactory.createActivityIndicator(0, bitmap, 5,
                        0, "with border", Field.FIELD_HCENTER);
        _views[0].setBorder(border);
        add(_views[0]);
        add(new SeparatorField());

        // Add an ActivityIndicatorView with label and animation centered in a
        // horizontal layout
        bitmap = Bitmap.getBitmapResource("spinner.png");
        _views[1] =
                ActivityIndicatorFactory.createActivityIndicator(
                        new HorizontalFieldManager(), Field.FIELD_HCENTER,
                        bitmap, 5, 0, "horizontal centered layout",
                        Field.FIELD_HCENTER);
        add(_views[1]);
        add(new SeparatorField());

        // Add a centered ActivityIndicatorView between two focusable fields
        add(new LabelField("focusable field", Field.FOCUSABLE));
        bitmap = Bitmap.getBitmapResource("spinner2.png");
        _views[2] =
                ActivityIndicatorFactory.createActivityIndicator(
                        Field.FIELD_HCENTER, bitmap, 6, Field.FIELD_HCENTER,
                        "centered between focusable fields",
                        Field.FIELD_HCENTER);
        add(_views[2]);
        add(new LabelField("focusable field", Field.FOCUSABLE));
        add(new SeparatorField());

        // Add a right justified ActivityIndicatorView
        bitmap = Bitmap.getBitmapResource("spinner.png");
        _views[3] =
                ActivityIndicatorFactory.createActivityIndicator(
                        Field.USE_ALL_WIDTH, bitmap, 5, Field.FIELD_RIGHT,
                        "right justified layout", Field.FIELD_VCENTER);
        add(_views[3]);
        add(new SeparatorField());

        Background background; // Reuse this reference

        // Add an ActivityIndicatorView featuring a solid black background
        bitmap = Bitmap.getBitmapResource("orchid.png");
        background = BackgroundFactory.createSolidBackground(Color.BLACK);
        _views[4] =
                ActivityIndicatorFactory.createActivityIndicator(0, bitmap, 6,
                        0);
        _views[4].setBackground(background);
        add(_views[4]);
        add(new LabelField("solid background"));
        add(new SeparatorField());

        // Add an ActivityIndicatorView to another ActivityIndicatorView
        bitmap = Bitmap.getBitmapResource("progress.png");
        background = BackgroundFactory.createSolidBackground(Color.DARKGRAY);
        _views[5] =
View Full Code Here


        // Change the display time from the default 1.2s
        _eyelidFieldManager.setEyelidDisplayTime(2000);

        // Add components to the north eye-lid of the blinker
        _eyelidFieldManager.addTop(new CustomLabelField("Eyelid Field Demo"));
        _eyelidFieldManager.addTop(new SeparatorField());
        _eyelidFieldManager.addTop(new CustomLabelField(
                "You can add any fields..."));
        _eyelidFieldManager.addTop(new CustomEditField("Type something here: ",
                "abc", 100, BasicEditField.FILTER_DEFAULT));
View Full Code Here

        super(Manager.NO_VERTICAL_SCROLL);

        setTitle("Rich List Screen");

        add(new LabelField("BlackBerry Devices", Field.FIELD_HCENTER));
        add(new SeparatorField());

        // Get this screen's main manager (VerticalFieldManager)
        final Manager mainManager = getMainManager();

        // Create a RichList which will be added to the provided manager
View Full Code Here

        _searchButton = new ButtonField("Search");
        _searchButton.setChangeListener(this);
        add(_searchButton);

        add(new SeparatorField());

        _resultsField = new LabelField();
        add(_resultsField);
    }
View Full Code Here

        _dateField =
                new DateField("Date/time: ", System.currentTimeMillis(),
                        DateField.DATE_TIME);
        fieldManager.add(_dateField);

        fieldManager.add(new SeparatorField());

        // Add UI elements to the VerticalFieldManager, including fields
        // which will allow a user to make selections from date/time and
        // custom spinners.
        final LabelField dateTimeLabel =
                new LabelField("Date Time Picker", Field.FIELD_HCENTER);
        dateTimeLabel.setBackground(background);
        fieldManager.add(dateTimeLabel);

        _editFieldDefault = new SelectionField("Default: ");
        fieldManager.add(_editFieldDefault);

        _editFieldDate = new SelectionField("Date only: ");
        fieldManager.add(_editFieldDate);

        _editFieldTime = new SelectionField("Time only: ");
        fieldManager.add(_editFieldTime);

        _editFieldLong = new SelectionField("Long date: ");
        fieldManager.add(_editFieldLong);

        _editFieldExpiry = new SelectionField("Expiry date: ");
        fieldManager.add(_editFieldExpiry);

        fieldManager.add(new SeparatorField());

        final LabelField textSpinLabel =
                new LabelField("Text Spin Box Field", Field.FIELD_HCENTER);
        textSpinLabel.setBackground(background);
        fieldManager.add(textSpinLabel);
View Full Code Here

        // Creates a new MenuDemoScreen object
        MenuDemoScreen() {
            setTitle("Menu Demo");
            add(new LabelField(
                    "Press the menu key to view the customized menu."));
            add(new SeparatorField());

            // Initialize font family and menu font
            _fontFamilies = FontFamily.getFontFamilies();
            _menuFont = _fontFamilies[0].getFont(FontFamily.SCALABLE_FONT, 20);

            // Initialize radio buttons for menu customization and add to screen
            final RadioButtonGroup radioButtonGroup = new RadioButtonGroup();
            _radioButtonImage =
                    new RadioButtonField("Menu with image", radioButtonGroup,
                            true);
            _radioButtonSubMenu =
                    new RadioButtonField("Menu with sub menu",
                            radioButtonGroup, false);
            _radioButtonDecor =
                    new RadioButtonField(
                            "Menu with custom border, background and font",
                            radioButtonGroup, false);
            _radioButtonDecor.setChangeListener(this);
            add(_radioButtonImage);
            add(_radioButtonSubMenu);
            add(_radioButtonDecor);

            add(new SeparatorField());

            // Initialize choice field for font selection and add to screen
            _fontChoiceField =
                    new ObjectChoiceField("Select a font:", _fontFamilies, 0,
                            Field.FIELD_HCENTER);
View Full Code Here

        super(Manager.NO_VERTICAL_SCROLL);

        setTitle("Simple List Screen");

        add(new LabelField("BlackBerry Devices", Field.FIELD_HCENTER));
        add(new SeparatorField());

        // Get this screen's main manager (VerticalFieldManager)
        final Manager mainManager = getMainManager();

        // Instantiate the SimpleList
View Full Code Here

        hfm.add(_processButton);
        hfm.add(_cancelButton);
        hfm.add(_resumeButton);

        add(hfm);
        add(new SeparatorField());
        add(view);
    }
View Full Code Here

        final LabelField directions =
                new LabelField(
                        "Use the spin box to change the RGB values of the color displayed in the bottom field.");
        add(directions);

        add(new SeparatorField());

        final ColorBox colorBox = new ColorBox(Field.FIELD_HCENTER);

        final Integer[] choices = new Integer[256];
        for (int i = 0; i < choices.length; ++i) {
            choices[i] = new Integer(i);
        }

        final MySpinBoxField spinBoxFieldRed = new MySpinBoxField(choices);
        spinBoxFieldRed.setListener(colorBox);
        _adjustmentRed = spinBoxFieldRed.getAdjustment();

        final MySpinBoxField spinBoxFieldGreen = new MySpinBoxField(choices);
        spinBoxFieldGreen.setListener(colorBox);
        _adjustmentGreen = spinBoxFieldGreen.getAdjustment();

        final MySpinBoxField spinBoxFieldBlue = new MySpinBoxField(choices);
        spinBoxFieldBlue.setListener(colorBox);
        _adjustmentBlue = spinBoxFieldBlue.getAdjustment();

        final SpinBoxFieldManager spinBoxManager = new SpinBoxFieldManager();
        spinBoxManager.add(spinBoxFieldRed);
        spinBoxManager.add(spinBoxFieldGreen);
        spinBoxManager.add(spinBoxFieldBlue);
        spinBoxManager.setVisibleRows(3);
        spinBoxManager.setRowHeight(ROW_HEIGHT);

        final VerticalFieldManager vfm =
                new VerticalFieldManager(Field.FIELD_HCENTER);
        vfm.setBackground(BackgroundFactory.createSolidBackground(Color.BLACK));
        vfm.add(spinBoxManager);
        add(vfm);

        add(new SeparatorField());

        add(colorBox);
    }
View Full Code Here

         */
        AutoCompleteFieldDemoScreen() {
            setTitle("Auto Complete Field Demo");

            add(new LabelField("Type in a field to search"));
            add(new SeparatorField());

            // Create the filtered lists
            _filteredListContacts = new BasicFilteredList();
            final BasicFilteredList filteredListMedia = new BasicFilteredList();
            final BasicFilteredList filteredListMonths =
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.component.SeparatorField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.