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

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


            _menuFont = _fontFamilies[0].getFont(FontFamily.SCALABLE_FONT, 20);

            // Initialize radio buttons for menu customization and add to screen
            final RadioButtonGroup radioButtonGroup = new RadioButtonGroup();
            _radioButtonImage =
                    new RadioButtonField("Menu with image", radioButtonGroup,
                            true);
            _radioButtonSubMenu =
                    new RadioButtonField("Menu with sub menu",
                            radioButtonGroup, false);
            _radioButtonDecor =
                    new RadioButtonField(
                            "Menu with custom border, background and font",
                            radioButtonGroup, false);
            _radioButtonDecor.setChangeListener(this);
            add(_radioButtonImage);
            add(_radioButtonSubMenu);
View Full Code Here


        public ImageEffectDialog(final String effect) {
            super(new VerticalFieldManager());

            // Create radio buttons for the image effect choices
            _options = new RadioButtonGroup();
            final RadioButtonField none =
                    new RadioButtonField("None", _options, effect == null);
            final RadioButtonField greyscale =
                    new RadioButtonField("Greyscale", _options,
                            (effect != null && effect.equals("monochrome")));
            final RadioButtonField sepia =
                    new RadioButtonField("Sepia", _options,
                            (effect != null && effect.equals("sepia")));

            // Add fields to the dialog
            add(new RichTextField("Choose Effect", Field.NON_FOCUSABLE));
            add(new SeparatorField());
View Full Code Here

            final EncodingProperties[] encodingProperties,
            final CameraScreen parentScreen, final int currentSelectedIndex) {
        _parentScreen = parentScreen;
        _radioButtonGroup = new RadioButtonGroup();
        for (int i = 0; i < encodingProperties.length; i++) {
            final RadioButtonField buttonField =
                    new RadioButtonField(encodingProperties[i].toString());
            _radioButtonGroup.add(buttonField);
            this.add(buttonField);
        }
        _radioButtonGroup.setSelectedIndex(currentSelectedIndex);
    }
View Full Code Here

TOP

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

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.