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

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


        add(new RichTextField("Use the menu to clear the text"));
        // #endif

        add(new SeparatorField());

        _textArea = new BasicEditField("Text: ", "");
        add(_textArea);
    }
View Full Code Here


        _memo = memo;

        final PIMList list = memo.getPIMList();

        _uidField =
                new BasicEditField(list.getFieldLabel(BlackBerryMemo.UID)
                        + ": ", "", 128, BasicEditField.FILTER_INTEGER);
        _titleField =
                new BasicEditField(list.getFieldLabel(BlackBerryMemo.TITLE)
                        + ": ", "");
        _notesField =
                new BasicEditField(list.getFieldLabel(BlackBerryMemo.NOTE)
                        + ": ", "");

        // Populate the fields with all available data.
        if (_memo.countValues(BlackBerryMemo.TITLE) > 0) {
            final String title = _memo.getString(BlackBerryMemo.TITLE, 0);
View Full Code Here

                            .getField(PhoneNumberRecord.PHONE_NUMBER);
            long talkTime =
                    ((Long) phoneNumberRecord
                            .getField(PhoneNumberRecord.TALK_TIME)).longValue();

            _phoneNumber = new BasicEditField("Phone Number: ", phoneNumber);
            _phoneNumber.setEditable(false);

            // Convert milliseconds into hh:mm:ss format.
            final int hours = (int) (talkTime / (1000 * 60 * 60));
            talkTime %= 1000 * 60 * 60;
            final int minutes = (int) (talkTime / (1000 * 60));
            talkTime %= 1000 * 60;
            final int seconds = (int) (talkTime / 1000);
            final StringBuffer timeString = new StringBuffer();

            if (hours > 0) {
                if (hours < 10) {
                    timeString.append(0);
                }

                timeString.append(hours).append(':');
            }

            if (minutes < 10) {
                timeString.append(0);
            }

            timeString.append(minutes).append(':');

            if (seconds < 10) {
                timeString.append(0);
            }

            timeString.append(seconds);
            _talkTime =
                    new BasicEditField("Talk Time: ", timeString.toString());
            _talkTime.setEditable(false);
        }
View Full Code Here

        }));
        addMenuItem(_switchLineMenuItem);

        // Edit field for users to enter a phone number
        _basicEditField =
                new BasicEditField("Phone number: ", "", 10,
                        BasicEditField.FILTER_PHONE);
        add(_basicEditField);

        // Instantiate the PhoneMultiLineAction object, which registers itself
        // as the phone multi-line listener.
View Full Code Here

        _orderRecord = orderRecord;

        _date =
                new DateField("Order Date: ", orderRecord.getDate(),
                        DateField.DATE);
        _company = new BasicEditField("Company: ", orderRecord.getCompany());
        _product = new BasicEditField("Product: ", orderRecord.getProduct());
        _numOrdered =
                new BasicEditField("Number Ordered: ", Integer
                        .toString(orderRecord.getNumOrdered()),
                        Integer.MAX_VALUE, BasicEditField.FILTER_INTEGER);

        setFieldsEditable(editable);
    }
View Full Code Here

        private BufferedPlaybackScreen() {
            // Set the title of the window
            setTitle("Buffered Playback Demo");

            // Create and add the field for the URL to be retrieved
            _urlField = new BasicEditField("Media URL: ", "");
            add(_urlField);

            // Create and add the field for the MIME type of the remote file
            _mimeField =
                    new BasicEditField("Mime: ", "audio/mpeg", 10,
                            Field.NON_FOCUSABLE);
            add(_mimeField);

            // Create the START, STOP and RESET buttons
            _startPlayingButton =
                    new ButtonField("Play", ButtonField.CONSUME_CLICK);
            _stopPlayingButton =
                    new ButtonField("Stop", ButtonField.CONSUME_CLICK);
            _resetField = new ButtonField("Reset", ButtonField.CONSUME_CLICK);
            _startPlayingButton.setChangeListener(this);
            _stopPlayingButton.setChangeListener(this);
            _resetField.setChangeListener(this);

            // Add the player control buttons to the screen
            final HorizontalFieldManager buttonlist =
                    new HorizontalFieldManager();
            buttonlist.add(_startPlayingButton);
            buttonlist.add(_stopPlayingButton);
            buttonlist.add(_resetField);
            add(buttonlist);

            // Create and add the field with the load progress
            _loadStatusField =
                    new BasicEditField("Load: ", "0 Bytes", 10,
                            Field.NON_FOCUSABLE);
            add(_loadStatusField);

            // Create and add the field with the player status
            _playStatusField =
                    new BasicEditField("Play: ", "Stopped", 10,
                            Field.NON_FOCUSABLE);
            add(_playStatusField);

            // Create and add the field with the starting buffer
            _startBufferField =
                    new BasicEditField("Starting Buffer: ", "200000", 10,
                            BasicEditField.FILTER_INTEGER | Field.NON_FOCUSABLE);
            add(_startBufferField);

            // Create and add the field with the minimum pause buffer
            _pauseBytesField =
                    new BasicEditField("Pause At: ", "64000", 10,
                            BasicEditField.FILTER_INTEGER | Field.NON_FOCUSABLE);
            add(_pauseBytesField);

            // Create and add the field with the minimum resume buffer
            _resumeBytesField =
                    new BasicEditField("Resume At: ", "128000", 10,
                            BasicEditField.FILTER_INTEGER | Field.NON_FOCUSABLE);
            add(_resumeBytesField);

            // Create and add the field with the read limit
            _readLimitField =
                    new BasicEditField("Read Limit: ", "32000", 10,
                            BasicEditField.FILTER_INTEGER | Field.NON_FOCUSABLE);
            add(_readLimitField);
        }
View Full Code Here

    public MMSDemoReceiveScreen() {
        setTitle("MMS Demo");
        _statusField = new RichTextField("Waiting...");
        add(_statusField);
        add(new SeparatorField());
        _subjectField = new BasicEditField("Subject: ", "");
        add(_subjectField);
        _messageField = new BasicEditField("Message: ", "");
        add(_messageField);
        _bitmapField = new BitmapField();
        add(_bitmapField);
    }
View Full Code Here

                        "Cellsite(s)", "Cellsite(m)", "AFLT(s)",
                        "SmartMode(m)", "Default(s)", "Default(m)",
                        "NULL Criteria(s)", "NULL Criteria(m)" }, 1);
        _enableMapLocationField = new CheckboxField("Map Location", false);
        _isVerizonField = new CheckboxField("Verizon?", false);
        _zoomLevelField = new BasicEditField("Zoom: ", "1");
        _horizontalAccuracyField =
                new BasicEditField("Horizontal Accuracy (meters): ", "100", 6,
                        BasicEditField.FILTER_INTEGER);
        _preferredResponseTimeField =
                new BasicEditField("Pref'd Response Time (sec): ", "16", 6,
                        BasicEditField.FILTER_INTEGER);
        _frequencyField =
                new BasicEditField("Fix Frequency (sec): ", "5", 5,
                        BasicEditField.FILTER_INTEGER);
        _timeoutField =
                new BasicEditField("Timeout (sec): ", "-1", 5,
                        BasicEditField.FILTER_INTEGER);
        _maxAgeField =
                new BasicEditField("MaxAge (sec): ", "-1", 5,
                        BasicEditField.FILTER_INTEGER);
        _maxInvalidTimeField =
                new BasicEditField("Max Invalid Time (sec): ", "90", 5,
                        BasicEditField.FILTER_INTEGER);
        _currentModeField = new BasicEditField("Current Mode: ", "-");
        _currentSatelliteCountField = new BasicEditField("Satellites: ", "-");
        _pdeIPField = new BasicEditField("PDE IP: ", "");
        _pdePortField = new BasicEditField("PDE Port: ", "");
        _numberUpdatesField = new EditField("Total Updates: ", "0");
        _numberAssistedUpdatesField = new EditField("Assisted: ", "0");
        _numberUnassistedUpdatesField = new EditField("Unassisted: ", "0");
        _numberValidUpdatesField = new EditField("Valid Updates: ", "0");
        _numberInvalidUpdatesField = new EditField("Invalid Updates: ", "0");
View Full Code Here

                    + " - This field is in the scrolling region"));
        }

        // Create edit field for input
        final TextField bottomInputField =
                new BasicEditField("Enter text: ", "");

        // Add the VerticalFieldManager and input field to a
        // JustifiedVerticalFieldManager
        final JustifiedVerticalFieldManager jvfm =
                new JustifiedVerticalFieldManager(topScrollingManager,
View Full Code Here

        final GridFieldManager gridFieldManager =
                new GridFieldManager(rows, cols, Field.FIELD_HCENTER);

        // Add a field to the screen to display a phone number
        _phoneNumberField =
                new BasicEditField("Phone number: ", "", 15,
                        Field.NON_FOCUSABLE);
        add(_phoneNumberField);

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

TOP

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

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.