Package net.rim.device.api.ui

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


     *            Command-line arguments (not used)
     */
    public static void main(final String[] args) {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        final UiApplication app = new EyelidFieldDemo();
        app.enterEventDispatcher();
    }
View Full Code Here


     *            Command-line arguments (not used)
     */
    public static void main(final String[] args) {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        final UiApplication app = new ZoomScreenDemo();
        app.enterEventDispatcher();
    }
View Full Code Here

     *
     * @param args
     *            Command line arguments (not used)
     */
    public static void main(final String[] args) {
        final UiApplication app = new PaneManagerDemo();
        app.enterEventDispatcher();
    }
View Full Code Here

        /**
         * @see Field#layout(int, int)
         */
        protected void layout(final int width, final int height) {
            final UiApplication uiApp = UiApplication.getUiApplication();
            final MainScreen mainScreen = (MainScreen) uiApp.getActiveScreen();
            final Manager manager = mainScreen.getMainManager();
            int availableHeight = Display.getHeight();
            final int fieldCount = manager.getFieldCount();

            for (int i = fieldCount - 1; i >= 0; --i) {
View Full Code Here

                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
                public void execute(final ReadOnlyCommandMetadata metadata,
                        final Object context) {
                    final UiApplication uiapp =
                            UiApplication.getUiApplication();
                    uiapp.popScreen(uiapp.getActiveScreen());
                }
            }));
        }
View Full Code Here

        public Object run(final Object context) {
            if (context instanceof MapView) {
                _mv = (MapView) context;

                // Get the UiApplication instance and display the GUI screen.
                final UiApplication app = UiApplication.getUiApplication();
                app.pushScreen(new MapsMenuItemScreen(_mv));
                app.requestForeground();
            }

            return null;
        }
View Full Code Here

         *
         * @param time
         *            The time (in millisecons) delay before showing this screen
         */
        public void show(final int time) {
            final UiApplication app = UiApplication.getUiApplication();
            app.invokeLater(_popupPopper, time, false);
            app.pushModalScreen(this);
        }
View Full Code Here

                                        .getSelectedIndex());
                    } else {
                        _contact = null;
                    }

                    final UiApplication uiapp =
                            UiApplication.getUiApplication();
                    uiapp.popScreen(uiapp.getActiveScreen());
                }
            }));
        }
View Full Code Here

    /**
     * @see net.rim.device.api.system.MultiServicePlatformListener#wipe(String,
     *      long)
     */
    public int wipe(final String serviceUid, final long dataType) {
        final UiApplication uiApp = UiApplication.getUiApplication();

        if (uiApp instanceof BlackBerryBalanceDemo) {
            // Take care of any in memory data first
            ((BlackBerryBalanceDemo) uiApp).onWipe(serviceUid, dataType);
        }
View Full Code Here

             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                // If successful, return to contact list.
                if (onSave()) {
                    final UiApplication uiapp =
                            UiApplication.getUiApplication();
                    uiapp.popScreen(uiapp.getActiveScreen());
                }
            }
        }));

        setTitle("Create Contact");
View Full Code Here

TOP

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

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.