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

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


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

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


        _homeScreenLocationPicker = HomeScreenLocationPicker.create();
        add(_homeScreenLocationPicker);

        // Create a button to add a shortcut to this screen on the home screen
        _shortcutButton =
                new ButtonField("Add shortcut", Field.FIELD_HCENTER
                        | ButtonField.CONSUME_CLICK);
        _shortcutButton.setChangeListener(new FieldChangeListener() {
            public void fieldChanged(final Field field, final int context) {
                addShortcut();
            }
View Full Code Here

            if (DeviceInfo.hasCamera()) {
                add(new RichTextField("\n...or invoke the camera application",
                        Field.NON_FOCUSABLE));
                _invokeButtonField =
                        new ButtonField("Invoke Camera App",
                                ButtonField.CONSUME_CLICK | Field.FIELD_HCENTER) {
                            /**
                             * @see net.rim.device.api.ui.component.ButtonField#fieldChangeNotify(int)
                             */
                            protected void fieldChangeNotify(final int context) {
View Full Code Here

     * Initializes the screen's UI elements and defines the button actions
     */
    private void initializeUiComponents() {
        _frequencyTextField = new TextField("Frequency [MHz]: ", "");

        _setFrequencyButton = new ButtonField("Set Frequency");
        _seekUpButton = new ButtonField("Seek >");
        _seekDownButton = new ButtonField("< Seek");
        _increaseRSSIButton = new ButtonField("RSSI +");
        _decreaseRSSIButton = new ButtonField("- RSSI");
        _playButton = new ButtonField("Play");

        _rssiLabel = new LabelField(_fmRadioDemoPlayer.getRSSI());

        _rdsTextField = new TextField(Field.NON_FOCUSABLE);
        _rdsTextField.setLabel("RDS: ");
View Full Code Here

    /**
     * Lays out the button that starts the current animation.
     */
    private void setButtonField() {
        _playButton = new ButtonField("Play", ButtonField.CONSUME_CLICK);
        _playButton.setChangeListener(new FieldChangeListener() {
            public void fieldChanged(final Field field, final int context) {
                activateElement(_currentAnimation);
            }
        });
View Full Code Here

                            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
View Full Code Here

        final MainScreen screen = new MainScreen();
        screen.setTitle("Application Permissions Demo");

        if (_eventInjectorButton == null) {
            _eventInjectorButton =
                    new ButtonField("Event Injector", ButtonField.NEVER_DIRTY
                            | ButtonField.CONSUME_CLICK);
            _eventInjectorButton.setChangeListener(this);
        }

        if (_phoneButton == null) {
            _phoneButton =
                    new ButtonField("Phone", ButtonField.NEVER_DIRTY
                            | ButtonField.CONSUME_CLICK);
            _phoneButton.setChangeListener(this);
        }

        if (_deviceSettingsButton == null) {
            _deviceSettingsButton =
                    new ButtonField("Device Settings", ButtonField.NEVER_DIRTY
                            | ButtonField.CONSUME_CLICK);
            _deviceSettingsButton.setChangeListener(this);
        }

        if (_emailButton == null) {
            _emailButton =
                    new ButtonField("Email", ButtonField.NEVER_DIRTY
                            | ButtonField.CONSUME_CLICK);
            _emailButton.setChangeListener(this);
        }

        screen.add(_eventInjectorButton);
View Full Code Here

    private void createUI() {
        delete(_statusField);

        _hfm1 = new HorizontalFieldManager(Field.FIELD_HCENTER);
        _controlButton =
                new ButtonField("Start", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _controlButton.setChangeListener(this);
        _hfm1.add(_controlButton);

        _hfm2 = new HorizontalFieldManager(Field.FIELD_HCENTER);
View Full Code Here

        add(_streamingManager);

        // Add HorizontalFieldManager for buttons
        final HorizontalFieldManager buttonManager =
                new HorizontalFieldManager(FIELD_HCENTER);
        _snapshotButton = new ButtonField("Snapshot");
        _calibrateButton = new ButtonField("Calibrate");
        _snapshotButton.setChangeListener(this);
        _calibrateButton.setChangeListener(this);
        buttonManager.add(_snapshotButton);
        buttonManager.add(_calibrateButton);
        add(buttonManager);
View Full Code Here

        add(new SeparatorField());

        // Instantiate button fields
        _buttonFieldOne =
                new ButtonField("1", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldTwo =
                new ButtonField("2", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldThree =
                new ButtonField("3", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldFour =
                new ButtonField("4", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldFive =
                new ButtonField("5", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldSix =
                new ButtonField("6", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldSeven =
                new ButtonField("7", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldEight =
                new ButtonField("8", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldNine =
                new ButtonField("9", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldStar =
                new ButtonField("*", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldZero =
                new ButtonField("0", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _buttonFieldPound =
                new ButtonField("#", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);

        // Add button fields to the GridFieldManager
        gridFieldManager.add(_buttonFieldOne);
        gridFieldManager.add(_buttonFieldTwo);
View Full Code Here

TOP

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

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.