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

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


            add(checkBox);

            // Add a choice field for specifying file filter type
            String[] choices = new String[] { "All", "MP3", "JPG", "MPG" };
            _filterTextChoiceField =
                    new ObjectChoiceField("Filter extension: ", choices, 0);
            add(_filterTextChoiceField);
            _filterTextChoiceField.setChangeListener(new FieldChangeListener() {
                /**
                 * @see FieldChangeListener#fieldChanged(Field, int)
                 */
                public void fieldChanged(final Field field, final int context) {
                    FilePickerDemoScreen.this.setFilter(true);
                }
            });
            _filterTextChoiceField.setEditable(false);

            // Initialize a choice field for highlight style selection
            choices =
                    new String[] { "Default", "Pictures", "Ring Tones",
                            "Music", "Videos", "Voice Notes" };
            _viewChoiceField =
                    new ObjectChoiceField("View: ", choices,
                            FilePicker.VIEW_ALL);
            _viewChoiceField.setChangeListener(new FieldChangeListener() {
                /**
                 * @see FieldChangeListener#fieldChanged(Field, int)
                 */
 
View Full Code Here


                    "Encodings and file systems must be non-null and non-empty");
        }

        setTitle("Setup screen");

        _encodings = new ObjectChoiceField("Encoding:", encodings, 0);
        add(_encodings);

        _fileSystems = new ObjectChoiceField("File System", fileSystems, 0);
        add(_fileSystems);

        _launchRecorder =
                new ButtonField("Start Video Camera", Field.FIELD_RIGHT
                        | ButtonField.CONSUME_CLICK);
View Full Code Here

        add(_desc);

        add(new SeparatorField());
        final String choices[] =
                { "None", "Daily", "Weekly", "Monthly", "Yearly" };
        _recur = new ObjectChoiceField("Recurrence: ", choices, 0);
        add(_recur);

        addMenuItem(inviteContactMenuItem);
        addMenuItem(saveMenuItem);
    }
View Full Code Here

        _app = app;
        setTitle("Phone Multi Line Demo");
        populateChoices();

        _choiceField =
                new ObjectChoiceField("Select a line", _choices,
                        getActiveChoice());
        add(_choiceField);

        // Menu item to initiate outgoing call with the selected line
        final MenuItem _callWithSelectedLineMenuItem =
View Full Code Here

    /**
     * Lays out the ChoiceField with a list of available animations.
     */
    private void setChoiceField() {
        final String[] items = { "Bouncing Ball", "Running Stick", "Planets" };
        _options = new ObjectChoiceField("Samples:", items);

        _options.setChangeListener(new FieldChangeListener() {
            public void fieldChanged(final Field field, final int context) {
                if ((context & ChoiceField.CONTEXT_CHANGE_OPTION) != 0) {
                    String elementId = null;
View Full Code Here

    /**
     * Initializes the UI fields
     */
    private void initFields() {
        _modeField =
                new ObjectChoiceField("Mode: ", new String[] {
                        "Stand Alone(s)", "Stand Alone(m)", "Data Optimal(m)",
                        "Speed Optimal(m)", "MS-Based(m)",
                        "Accuracy Optimal(s)", "PDE Calculate(s)",
                        "Cellsite(s)", "Cellsite(m)", "AFLT(s)",
                        "SmartMode(m)", "Default(s)", "Default(m)",
View Full Code Here

        public StyleChangeDialog() {
            super(Dialog.D_OK_CANCEL, "Choose Style", Dialog.OK, null,
                    Dialog.GLOBAL_STATUS);

            _borderStyle =
                    new ObjectChoiceField("Border Style: ", _borderStyles, 0);
            _regionHorizontalAlign =
                    new ObjectChoiceField("Horizontal Alignment: ",
                            _horizontalAlignments, 0);
            _regionVerticalAlign =
                    new ObjectChoiceField("Vertical Alignment: ",
                            _verticalAlignments, 0);

            add(new SeparatorField());
            add(_borderStyle);
            add(_regionHorizontalAlign);
View Full Code Here

        // Create input field and choice field and add to a
        // JustifiedHorizontalFieldManager
        final BasicEditField searchInput = new BasicEditField("Search: ", "");
        final String[] choices = new String[] { "Value 1", "Value 2" };
        final ObjectChoiceField searchProvider =
                new ObjectChoiceField("", choices, 0, Field.FIELD_RIGHT);
        final JustifiedHorizontalFieldManager jhfm =
                new JustifiedHorizontalFieldManager(searchInput,
                        searchProvider, false);

        // Add the JustifiedHorizontalFieldManager to the screen
View Full Code Here

     */
    private void initFields() {
        _log = new TextField();
        _log.setLabel("Log: ");
        _primaryModeField =
                new ObjectChoiceField("Mode: ", new String[] {
                        "Stand Alone(s)", "Stand Alone(m)", "Data Optimal(m)",
                        "Speed Optimal(m)", "MS-Based(m)",
                        "Accuracy Optimal(s)", "PDE Calculate(s)",
                        "Cellsite(s)", "Cellsite(m)", "Default(s)",
                        "Default(m)", "Optimal Geolocation(s)",
                        "Optimal Geolocation(m)", "Cell Geolocation(s)",
                        "Cell Geolocation(m)", "WLAN Geolocation(s)",
                        "WLAN Geolocation(m)" }, 1);
        _enableGeolocationFallbackField =
                new CheckboxField("Enable Geolocation Fallback", false);
        _enableConcurrentGeolocationField =
                new CheckboxField("Enable Concurrent Geolocation", false);
        _isMapLocationField = new CheckboxField("Map Location", false);
        _useGPSRestartIntervalField =
                new CheckboxField("GPS Restart Interval?", false);
        _isSatelliteInfoRequiredField =
                new CheckboxField("Satellite information required?", false);
        _isVerizonField = new CheckboxField("Verizon?", false);
        _failOverModeField =
                new ObjectChoiceField("Failover Mode: ",
                        new String[] { "Stand Alone", "Data Optimal",
                                "Speed Optimal", "MS-Based",
                                "Accuracy Optimal", "PDE Calculate", "None" },
                        6);
        _subsequentModeField =
                new ObjectChoiceField("Subsequent Mode: ",
                        new String[] { "Stand Alone", "Data Optimal",
                                "Speed Optimal", "MS-Based",
                                "Accuracy Optimal", "PDE Calculate", "None" },
                        6);
        _zoomLevelField = new BasicEditField("Zoom: ", "1");
View Full Code Here

            _duration =
                    new BasicEditField("Duration (seconds): ", Integer
                            .toString(callLog.getDuration()),
                            Integer.MAX_VALUE, BasicEditField.FILTER_INTEGER);
            _status =
                    new ObjectChoiceField("Call Status: ", choices, callLog
                            .getStatus());
        }
View Full Code Here

TOP

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

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.