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

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


            setChangeListener(this);
            _view = view;
            _topSpinning = true;

            _buttonFieldStopStart =
                    new ButtonField("Stop Top Spinner", Field.FIELD_HCENTER
                            | ButtonField.CONSUME_CLICK);
            _buttonFieldStopStart.setChangeListener(this);
            _view.add(_buttonFieldStopStart);

            _buttonFieldClose =
                    new ButtonField("Close Popup", Field.FIELD_HCENTER
                            | ButtonField.CONSUME_CLICK);
            _buttonFieldClose.setChangeListener(this);
            _view.add(_buttonFieldClose);
        }
View Full Code Here


        public ProgressIndicatorDemoScreen() {
            super(Field.FIELD_HCENTER);
            setTitle("Progress Indicator Demo");

            _progressButton =
                    new ButtonField("Show Progress Indicator Screen",
                            ButtonField.NEVER_DIRTY | ButtonField.CONSUME_CLICK);
            _progressButton.setChangeListener(this);
            add(_progressButton);

            _activityButton =
                    new ButtonField("Show Activity Indicator Screen",
                            ButtonField.NEVER_DIRTY | ButtonField.CONSUME_CLICK);
            _activityButton.setChangeListener(this);
            add(_activityButton);
        }
View Full Code Here

        view.setLabel("Progress");
        view.createProgressBar(Field.FIELD_HCENTER);

        // Initialize buttons
        _processButton =
                new ButtonField("Process data", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _processButton.setChangeListener(this);
        _cancelButton =
                new ButtonField("Cancel", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _cancelButton.setChangeListener(this);
        _resumeButton =
                new ButtonField("Resume", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _resumeButton.setChangeListener(this);

        // Add buttons to manager
        final HorizontalFieldManager hfm =
View Full Code Here

                            | Field.FIELD_HCENTER);
            model.addPane(new Pane(iconTextLabelField, vfm));

            // Create a third pane
            vfm = new VerticalFieldManager();
            final ButtonField button =
                    new ButtonField("Button", ButtonField.CONSUME_CLICK
                            | ButtonField.NEVER_DIRTY);
            button.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(final Field field, final int context) {
                    Dialog.inform("Button activated.");
                }
            });
            vfm.add(button);
View Full Code Here

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

        add(new SeparatorField());

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

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

            add(new SeparatorField());

            // Add a button to display the FilePicker
            _buttonField =
                    new ButtonField("Choose File", Field.FIELD_HCENTER
                            | ButtonField.CONSUME_CLICK);
            _buttonField.setChangeListener(new FieldChangeListener() {
                /**
                 * @see FieldChangeListener#fieldChanged(Field, int)
                 */
 
View Full Code Here

     */
    public UiToolkitDemoScreen() {
        setTitle("UI Toolkit Demo");

        _speedBumpBtn =
                new ButtonField("Speed Bump Screen", Field.FIELD_HCENTER
                        | ButtonField.NEVER_DIRTY);
        _speedBumpBtn.setChangeListener(this);
        add(_speedBumpBtn);

        _adjustmentBtn =
                new ButtonField("Adjustment Screen", Field.FIELD_HCENTER
                        | ButtonField.NEVER_DIRTY);
        _adjustmentBtn.setChangeListener(this);
        add(_adjustmentBtn);

        _titleBarBtn =
                new ButtonField("Title Bar Screen", Field.FIELD_HCENTER
                        | ButtonField.NEVER_DIRTY);
        _titleBarBtn.setChangeListener(this);
        add(_titleBarBtn);

        _trackpadBtn =
                new ButtonField("Trackpad Gestures Screen", Field.FIELD_HCENTER
                        | ButtonField.NEVER_DIRTY);
        _trackpadBtn.setChangeListener(this);
        add(_trackpadBtn);
    }
View Full Code Here

         */
        LocationPickerDemoScreen() {
            // Initialize screen
            setTitle("Location Picker Demo");
            _buttonField =
                    new ButtonField("Choose location", ButtonField.NEVER_DIRTY
                            | ButtonField.CONSUME_CLICK);
            _buttonField.setChangeListener(this);
            add(_buttonField);
            _nameLabel = new LabelField();
            _descLabel = new LabelField();
View Full Code Here

        _emailEdit = new BasicEditField("Recipient Email: ", "");
        add(_emailEdit);

        _okButton =
                new ButtonField("OK", Field.FIELD_HCENTER
                        | ButtonField.CONSUME_CLICK);
        _okButton.setChangeListener(this);
        _cancelButton =
                new ButtonField("Cancel", Field.FIELD_HCENTER
                        | ButtonField.CONSUME_CLICK);
        _cancelButton.setChangeListener(this);

        final HorizontalFieldManager hfm =
                new HorizontalFieldManager(Field.FIELD_HCENTER
View Full Code Here

        // Create list field
        _listField = new ObjectListField();

        // Initialize buttons
        _addButton = new ButtonField("Add Data", ButtonField.CONSUME_CLICK);
        _addFromFileButton =
                new ButtonField("Add From File", ButtonField.CONSUME_CLICK);
        _publishButton =
                new ButtonField("Publish Data", ButtonField.CONSUME_CLICK);
        _searchButton = new ButtonField("Search", ButtonField.CONSUME_CLICK);
        _addButton.setChangeListener(this);
        _publishButton.setChangeListener(this);
        _addFromFileButton.setChangeListener(this);
        _searchButton.setChangeListener(this);
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.