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

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


                        | ButtonField.CONSUME_CLICK);
        _controlButton.setChangeListener(this);
        _hfm1.add(_controlButton);

        _hfm2 = new HorizontalFieldManager(Field.FIELD_HCENTER);
        _currentTime = new LabelField("-");
        _duration = new LabelField("- s");
        _volumeDisplay =
                new LabelField("Volume : " + _volumeControl.getLevel());
        _hfm2.add(_currentTime);
        _hfm2.add(new LabelField(" / "));
        _hfm2.add(_duration);
        _hfm2.add(new LabelField("\t\t"));
        _hfm2.add(_volumeDisplay);

        add(_videoField);
        add(_hfm1);
        add(_hfm2);
View Full Code Here


        // Center a field on the screen using managers
        final HorizontalFieldManager hfm =
                new HorizontalFieldManager(USE_ALL_HEIGHT);
        final VerticalFieldManager vfm =
                new VerticalFieldManager(USE_ALL_WIDTH | FIELD_VCENTER);
        vfm.add(new LabelField("Centered text", FIELD_HCENTER));
        hfm.add(vfm);
        add(hfm);
    }
View Full Code Here

        /**
         * Creates a new TableAndListDemoScreen object
         */
        public TableAndListDemoScreen() {
            add(new LabelField("Please select an item from the menu"));

            addMenuItem(new ListScreenMenuItem());
            addMenuItem(new RichListScreenMenuItem());
            addMenuItem(new TableScreenMenuItem());
            addMenuItem(new TableAdapterScreenMenuItem());
View Full Code Here

            strBuffer.append(" and longitude ");
            strBuffer.append(coordinates.getLongitude());
            strBuffer.append(" with ");
            strBuffer.append(GEOFENCE_RADIUS);
            strBuffer.append(" meter radius");
            _geofenceInfoField = new LabelField(strBuffer.toString());
            add(_geofenceInfoField);
        }
View Full Code Here

                        new GeomagneticField(latitude, longitude,
                                (int) altitude);
            }
        } catch (final InterruptedException iex) {
            synchronized (_app.getAppEventLock()) {
                add(new LabelField("Interrupted : " + iex.toString()));
            }
        } catch (final LocationException lex) {
            synchronized (_app.getAppEventLock()) {
                add(new LabelField("Location Error: " + lex.toString()));
            }
        }
    }
View Full Code Here

     */
    public MenuReceiveScreen(final MenuManager menuManager) {
        setTitle("Receive Messages");

        // Initialize UI components
        _instructions = new LabelField("", Field.NON_FOCUSABLE);

        final FullWidthButton testButton = new FullWidthButton("BES Push");
        testButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

     */
    public ReceiveIPCScreen(final CommunicationController controller) {
        setTitle("IPC/Local Receiver");

        // Initialize UI components
        final LabelField instructions =
                new LabelField(
                        "Register receiver to listen for pushes on local:///<path>."
                                + " The push message should be sent from Send Messages section "
                                + "of this app or the Communication API Local Helper app . "
                                + "The sender destination URI for the push message "
                                + "should be: local://<AppName>/<path>."
View Full Code Here

                } else {
                    text = fileholder.getFileName();
                }

                final Field[] fields =
                        { new LabelField(text, DrawStyle.ELLIPSIS
                                | Field.NON_FOCUSABLE) };

                return fields;
            }
        };
View Full Code Here

        _controller = new TableController(_tableModel, _tableView);
        _tableView.setController(_controller);

        setStyle();

        add(new LabelField("BlackBerry Devices", Field.FIELD_HCENTER));

        add(new SeparatorField());

        add(_tableView);
View Full Code Here

    public GPSDemoAdvanced() {
        final MainScreen screen = new MainScreen();

        // Initialize UI components
        screen.setTitle("GPS Advanced Demo");
        final LabelField apiChoiceMessage =
                new LabelField("Please select an API to test:",
                        Field.USE_ALL_WIDTH | Field.FIELD_HCENTER);
        _coreTestButton =
                new ButtonField("Core GPS API Test", ButtonField.NEVER_DIRTY
                        | ButtonField.CONSUME_CLICK);
        _extendedTestButton =
View Full Code Here

TOP

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

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.