Examples of SeparatorField


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

         */
        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

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

        super(Manager.NO_VERTICAL_SCROLL);

        setTitle("Tree Screen");

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

        // Initialize the model if it has not yet been loaded
        _tableModel =
                new SortedTableModel(StringComparator.getInstance(true), 2);
View Full Code Here

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

                        "Illuminate with round border",
                        "Illuminate with square border", "Square border",
                        "Magnify lens", "Shrink lens",
                        "Illuminate with magnify lens",
                        "Illuminate with shrink lens" };
        add(new SeparatorField());
        add(new LabelField("Select highlight style", Field.FIELD_HCENTER));
        _choiceField =
                new ObjectChoiceField("", choices, HighlightStyle.ILLUMINATE,
                        Field.FIELD_HCENTER);
        _choiceField.setChangeListener(this);
        add(_choiceField);

        add(new SeparatorField());

        // Initialize a check box for toggling the center lens
        _centerLensCheckBox =
                new CheckboxField("Enable center lens", false,
                        Field.FIELD_HCENTER);
View Full Code Here

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

                    { "New York", "Paris", "Barcelona", "Beijing", "Moscow",
                            "Brasilia", "Melbourne" };
            _spinBoxField = new TextSpinBoxField(choices);
            _spinBoxField.setVisibleRows(3);
            add(new LabelField("Choose city:"));
            add(new SeparatorField());
            final HorizontalFieldManager hfm =
                    new HorizontalFieldManager(Field.FIELD_HCENTER);
            hfm.add(_spinBoxField);
            add(hfm);
        }
View Full Code Here

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

                new ObjectChoiceField("Search Type: ", new String[] {
                        "Freeform", "Structured" }, 0);
        _choiceField.setChangeListener(this);
        add(_choiceField);

        add(new SeparatorField());

        _structuredManager = createStructuredManager();
        _freeFormManager = createFreeFormManager();

        // Add the free form manager as default
        add(_freeFormManager);

        add(new SeparatorField());

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

        add(new SeparatorField());

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

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

            strBuff.append(LABEL_X);
            strBuff.append(bitmapOrig.getHeight());
            add(new LabelField(strBuff.toString()));
            add(bitmapFieldOrig);

            add(new SeparatorField());

            // Display the scaled Bitmap on the screen
            final BitmapField bitmapFieldScaled1 =
                    new BitmapField(bitmapScaled, Field.FOCUSABLE);
            strBuff.delete(0, strBuff.length());
            strBuff.append("\nScaled - ");
            strBuff.append(bitmapScaled.getWidth());
            strBuff.append(LABEL_X);
            strBuff.append(bitmapScaled.getHeight());
            strBuff.append(" - FILTER_LANCZOS - Aspect ratio not preserved");
            add(new LabelField(strBuff.toString()));
            add(bitmapFieldScaled1);

            add(new SeparatorField());

            // Redefine the scaled Bitmap
            bitmapScaled =
                    new Bitmap(Bitmap.ROWWISE_32BIT_ARGB8888, scaledX, scaledY);

            // Scale the original Bitmap into the new Bitmap using
            // a bilinear filter and maintaining aspect ratio.
            bitmapOrig.scaleInto(bitmapScaled, Bitmap.FILTER_BILINEAR,
                    Bitmap.SCALE_TO_FILL);

            // Display the newly scaled Bitmap on the screen
            final BitmapField bitmapFieldScaled2 =
                    new BitmapField(bitmapScaled, Field.FOCUSABLE);
            strBuff.delete(0, strBuff.length());
            strBuff.append("\nScaled - ");
            strBuff.append(bitmapScaled.getWidth());
            strBuff.append(LABEL_X);
            strBuff.append(bitmapScaled.getHeight());
            strBuff.append(" - FILTER_BILINEAR - Aspect ratio preserved");
            add(new LabelField(strBuff.toString()));
            add(bitmapFieldScaled2);

            add(new SeparatorField());

            // Redefine the scaled Bitmap
            bitmapScaled =
                    new Bitmap(Bitmap.ROWWISE_32BIT_ARGB8888, scaledX, scaledY);
View Full Code Here

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

        super(Manager.NO_VERTICAL_SCROLL);

        setTitle("Table Adapter Screen");

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

        _devices = new Vector();

        _tableModel = new DeviceTableModelAdapter();
View Full Code Here

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

                    }
                }
            });
            add(_viewChoiceField);

            add(new SeparatorField());

            // Add a button to display the FilePicker
            _buttonField =
                    new ButtonField("Choose File", Field.FIELD_HCENTER
                            | ButtonField.CONSUME_CLICK);
View Full Code Here

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

     */
    public FileExplorerDemoScreenFileInfoPopup(
            final FileExplorerDemoFileHolder fileholder) {
        super(new VerticalFieldManager());
        add(new LabelField("File Information"));
        add(new SeparatorField());
        add(new LabelField(fileholder.getFileName()));
        add(new LabelField(""));

        // Use the MIMETypeAssociations class to determine information about the
        // file
View Full Code Here

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

        add(startButton);
        add(pauseButton);
        add(resumeButton);
        add(releaseButton);
        add(destroyButton);
        add(new SeparatorField());
        add(instructions);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.