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

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


        _callback = new AuthentificationScreenCallback(this);

        // Initialize UI components
        final FullWidthButton backButton = new FullWidthButton("Back");
        _uriField =
                new EditField("Enter URL:",
                        "http://twitter.com/statuses/user_timeline.json", 140,
                        0);
        _userIdField = new EditField("Username:", "debobb", 140, 0);
        _passwordField = new EditField("Password:", "debo2010", 140, 0);

        backButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
 
View Full Code Here


    public ReceiveBPSScreen(final CommunicationController controller) {
        setTitle("BPS Push");

        // Initialize UI components
        _uriField =
                new EditField("BPS URI:", "http://pushapi.eval.blackberry.com",
                        140, 0);
        _uriReceiverField =
                new EditField("Listen URI:", "local://:11111/test2", 140, 0); // where
                                                                              // 11111
                                                                              // -
                                                                              // is
                                                                              // the
                                                                              // push
                                                                              // port
        _appIdField = new EditField("Application ID:", "", 140, 0);

        final FullWidthButton backButton = new FullWidthButton("Back");
        backButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                ((UiApplication) ReceiveBPSScreen.this.getApplication())
                        .popScreen(ReceiveBPSScreen.this);
            }
        });

        _contentField =
                new EditField("Content provider URI:",
                        "https://10.11.23.45:8443/sample-app/subscribe", 140, 0);

        final FullWidthButton postButton =
                new FullWidthButton("Subscribe for push");
        postButton.setChangeListener(new FieldChangeListener() {
View Full Code Here

        _callback = new StreamDataScreenCallback(this);

        // Initialize UI components
        final LabelField instructions = new LabelField("", Field.NON_FOCUSABLE);
        _uriSenderField =
                new EditField("Upload URI:",
                        CommunicationController.ECHO_SERVER_URI + "TEXT", 140,
                        0);

        final FullWidthButton backButton = new FullWidthButton("Back");
        backButton.setChangeListener(new FieldChangeListener() {
View Full Code Here

         */
        private SmsDemoScreen() {
            setTitle("SMS Demo");

            _address =
                    new EditField("Destination:", "", MAX_PHONE_NUMBER_LENGTH,
                            BasicEditField.FILTER_PHONE);
            add(_address);
            _sendText = new EditField("Message:", "");
            add(_sendText);
            add(new SeparatorField());

            _status = new EditField(Field.NON_FOCUSABLE);
            add(_status);

            // Sends an SMS message
            final MenuItem sendMenuItem =
                    new MenuItem(new StringProvider("Send"), 0x230010, 0);
View Full Code Here

        setTitle("XML");

        _callback = new SendNonBlockXmlScreenCallback(this);

        _uriSenderField =
                new EditField("URI:", CommunicationController.ECHO_SERVER_URI
                        + "XML", 140, 0);
        final FullWidthButton postButton = new FullWidthButton("Get Data");
        postButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

        setTitle("RSS");

        _callback = new SendNonBlockRssScreenCallback(this);

        _uriSenderField =
                new EditField("URI:", CommunicationController.ECHO_SERVER_URI
                        + "RSS", 140, 0);
        final FullWidthButton postButton = new FullWidthButton("Get Data");
        postButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

     */
    public CryptoDemo() {
        final MainScreen screen = new MainScreen();
        screen.setTitle("Crypto Demo");

        _inputField = new EditField("Text: ", "");
        screen.add(_inputField);
        screen.add(new SeparatorField());

        _statusField =
                new RichTextField(
View Full Code Here

                        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");
        _currentLocationField = new EditField("Location: ", "-");
        _lastValidFixField = new EditField("Last Valid Fix: ", "-");
        _lastResetField = new EditField("Last Reset: ", "-");
        _log = new TextField();
        _log.setLabel("Log: ");
    }
View Full Code Here

                                + "Blocking receiver listens only for one message "
                                + "and exits, while non-blocking receives all messages sent to it.",
                        Field.NON_FOCUSABLE);

        _uriReceiverField =
                new EditField("Receiver URI:", "local://" + PATH_STRING, 140, 0);

        _isBlocking = new CheckboxField("Blocking", false);
        _isBlocking.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

            }
        });

        // Set the destination to which messages will be to be sent:
        _uriSenderField =
                new EditField("Destination:",
                        CommunicationController.ECHO_SERVER_URI + "TEXT");

        final FullWidthButton destinationButton =
                new FullWidthButton("Set Destination");
        destinationButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                controller.setNonBlockingSenderDestination(_uriSenderField
                        .getText());
            }
        });

        // First Message
        _contentField1 = new EditField("Message:", "Message One");
        final FullWidthButton postButton1 =
                new FullWidthButton("Send and Cancel (ALL)");
        postButton1.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                controller.testMessageCancellable(_contentField1.getText(),
                        true); // cancellable = true

            }
        });

        // Second Message
        _contentField2 = new EditField("Message:", "Message Two");
        final FullWidthButton postButton2 =
                new FullWidthButton("Send and Cancel (NEVER)");
        postButton2.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

TOP

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

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.