Package net.rim.device.api.ui

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


    }
    contextMenu.addItem(deleteItem);
  }

  void pushScreen(Screen s) {
    Screen screen = getScreen();
    UiApplication app = (UiApplication) screen.getApplication();
    app.pushScreen(s);
  }
View Full Code Here


    public WidgetFieldManager( long style ) {
        super( style );
    }

    private BrowserFieldScreen getBrowserFieldScreen() {
        Screen bfScreen = getScreen();

        // Get the screen object.
        if( bfScreen instanceof BrowserFieldScreen ) {
            return (BrowserFieldScreen) bfScreen;
        }
View Full Code Here

  public void reset() {
    infoModel.reset();
  }

  private void getEventLog(final boolean download) {
    final Screen waitScreen = new MessageScreen(OmniLinkBBClient
        .getString(OmniLinkClientResource.EVENTLOG_DOWNLOADING));
    if (download) {
      UiApplication.getUiApplication().invokeLater(new Runnable() {
        public void run() {
          UiApplication.getUiApplication().pushScreen(waitScreen);
View Full Code Here

        final PopupScreen satPopup = new PopupScreen(new VerticalFieldManager()){

          protected boolean keyDown(int keycode, int time) {
            int key = Keypad.key(keycode);
            if(key==Keypad.KEY_ESCAPE){
              Screen screen = getScreen();                                     
              UiApplication.getUiApplication().popScreen(screen);             
            }
            return true;
          }         
        };
View Full Code Here

        /**
         * Removes a TransitionScreen from the stack
         */
        void pop() {
            synchronized (Application.getEventLock()) {
                final Screen activeScreen = getActiveScreen();
                popScreen(activeScreen);
                _pushed = false;
            }
        }
View Full Code Here

                // We've finished playing the audio file, close the player and
                // update screen
                _audioPlayer.close();
            }

            final Screen screen = getActiveScreen();
            if (screen instanceof MainScreen) {
                final Field field = screen.getField(0);
                if (field instanceof LabelField) {
                    final LabelField labelField = (LabelField) field;
                    invokeLater(new Runnable() {
                        public void run() {
                            labelField.setText("End of media reached.");
View Full Code Here

    /**
     * @see FieldChangeListener#fieldChanged(Field, int)
     */
    public void fieldChanged(final Field field, final int context) {
        Screen screen = null;

        if (field == _speedBumpBtn) {
            screen = new SpeedBumpScreen();
        } else if (field == _adjustmentBtn) {
            screen = new AdjustmentScreen();
View Full Code Here

        // This particular application is only concerned with protecting data
        // that is flagged as corporate. Other implementations may want to
        // make a further distinction between personal/undecided data.
        if (!MultiServicePlatformManager.isCorporateServiceUid(serviceMode
                .getServiceUid())) {
            final Screen activeScreen = getActiveScreen();

            if (activeScreen instanceof MemoScreen) {
                return activeScreen.suggestServiceMode(serviceMode);
            }
        }

        return super.suggestServiceMode(serviceMode);
    }
View Full Code Here

    /**
     * @see net.rim.device.api.system.Application#getServiceMode()
     */
    public ServiceMode getServiceMode() {
        final Screen activeScreen = getActiveScreen();

        if (activeScreen instanceof MemoScreen) {
            return activeScreen.getServiceMode();
        }

        return super.getServiceMode();
    }
View Full Code Here

            if (serviceUid.equals(memo.getMode())) {
                _screen.getModel().removeRowAt(i);
            }
        }

        final Screen activeScreen = getActiveScreen();

        if (activeScreen instanceof MemoScreen) {
            final Memo activeMemo = ((MemoScreen) activeScreen).getMemo();
            final int index = ((MemoScreen) activeScreen).getMemoIndex();

            if (index == -1 || !activeMemo.getMode().equals(serviceUid)) {
                // New memo with no wipable data, OK to save it.
                activeScreen.onClose();
            } else {
                final Dialog dialog =
                        new Dialog(
                                Dialog.D_OK,
                                "Application has been instructed to wipe corporate data."
View Full Code Here

TOP

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

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.