Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.FocusChangeListener


            public void fieldChanged(final Field field, final int context) {
                menuManager.showSendFireForgetScreen();
            }
        });

        fireForgetSendButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Send messages using fire and forget destination.");

            }
        });

        final FullWidthButton nonBlockSendButton =
                new FullWidthButton("Non-Blocking");
        nonBlockSendButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManager.showMenuSendNonBlockScreen();
            }
        });

        nonBlockSendButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Send messages using non-blocking destination. Message parsing examples are also included.");
            }
        });

        final FullWidthButton blockSendButton = new FullWidthButton("Blocking");
        blockSendButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManager.showSendBlockScreen();
            }
        });

        blockSendButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Send messages using blocking destination.");
View Full Code Here


            public void fieldChanged(final Field field, final int context) {
                menuManager.showReceivePushScreen();
            }
        });

        testButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Receive messages sent from external push server through BES.");

            }
        });

        final FullWidthButton ipcButton =
                new FullWidthButton("IPC/Local Receiver");
        ipcButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManager.showReceiveIPCScreen();
            }
        });

        ipcButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Receive messages sent from other BlackBerry Smartphone device applications using IPC(Inter-Process Communication).");
            }
        });

        final FullWidthButton bpsButton = new FullWidthButton("BPS Push");
        bpsButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManager.showReceiveBPSScreen();
            }
        });

        bpsButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test BPS subscription process. For receiving pushes, this test has to be run on a BlackBerry Smartphone device (will not work on a BlackBerry Smartphone simulator).");
View Full Code Here

            public void fieldChanged(final Field field, final int context) {
                menuManger.showMenuSendScreen();
            }
        });

        sendMessagesButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test communication and message processing for various data protocols.");
            }
        });

        final FullWidthButton receiveMessagesButton =
                new FullWidthButton("Receive Messages");
        receiveMessagesButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManger.showMenuReceiveScreen();
            }
        });

        receiveMessagesButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test push messaging using an external push server, BPDS pushes and IPC communication. ");
            }
        });

        final FullWidthButton cancelMessagesButton =
                new FullWidthButton("Cancel Messages");
        cancelMessagesButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManger.showCancellationScreen();
            }
        });

        cancelMessagesButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test message cancellation with different types of settings. ");
            }
        });

        final FullWidthButton authButton =
                new FullWidthButton("Basic Authentication");
        authButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                menuManger.showAuthenticationScreen();
            }
        });

        authButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test basic authentication. ");
            }
        });

        final FullWidthButton streamButton =
                new FullWidthButton("Stream Data Upload");
        streamButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int eventType) {
                menuManger.showStreamDataScreen();
            }
        });

        streamButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Test handling of stream data.");
View Full Code Here

                UiApplication.getUiApplication().pushScreen(
                        new SendFireForgetScreen(controller));
            }
        });

        sendFireForgetButton.setFocusListener(new FocusChangeListener() {
            /**
             * @see FocusChangeListener#focusChanged(Field, int)
             */
            public void focusChanged(final Field field, final int eventType) {
                setInstructions("Send local messages to applications on the device using Fire-and-Forget destination.");
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.FocusChangeListener

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.