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

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


            global = ( (Boolean) args[ 3 ] ).booleanValue();
        }

        try {
            // create dialog
            Dialog d = new Dialog( message, choices, values, defaultChoice, null /* bitmap */, global ? Dialog.GLOBAL_STATUS : 0 /* style */);
            _currentDialog = new DialogRunner( d, global );

            // queue
            UiApplication.getUiApplication().invokeAndWait( _currentDialog );

View Full Code Here


            defaultChoice = DialogNamespace.getDefaultChoice( type );
        }

        try {
            // create dialog
            Dialog d = new Dialog( type, message, defaultChoice, null /* bitmap */, global ? Dialog.GLOBAL_STATUS : 0 /* style */);
            _currentDialog = new DialogRunner( d, global );

            // queue
            UiApplication.getUiApplication().invokeAndWait( _currentDialog );

View Full Code Here

     * @param global the global status
     * @param callback the callback function
     * @return the Runnable responsible for opening the dialog
     */
    public static Runnable getCustomAskRunnable(String message, String[] buttons, int defaultChoice, boolean global /* style, false */, ScriptableFunction callback) {
        Dialog d = new Dialog( message, buttons, null, defaultChoice, null /* bitmap */, global ? Dialog.GLOBAL_STATUS : 0 /* style */);
        return new DialogAsyncRunnable( d, callback );
    }
View Full Code Here

     * @param global the global status
     * @param callback the callback function
     * @return the Runnable responsible for running the dialog
     */
    public static Runnable getStandardAskRunnable(String message, int type, int defaultChoice, boolean global /* style, false */, ScriptableFunction callback) {
      Dialog d = new Dialog( type, message, defaultChoice, null /* bitmap */, global ? Dialog.GLOBAL_STATUS : 0 /* style */);
        return new DialogAsyncRunnable(d, callback);
    }
View Full Code Here

            if (download) {
              UiApplication.getUiApplication().popScreen(
                  waitScreen);
            }

            final Dialog eventLogScreen = new Dialog(
                OmniLinkBBClient
                    .getString(OmniLinkClientResource.EVENTLOG),
                null, null, 0, null);

            for (int i = 0; i < eventLogEntries.length; i++) {
              EventLogResponse eventLogEntry = eventLogEntries[i];
              long eventLogEntryDate = eventLogEntry.getDate();
              String eventLogEntryText = getEventLogDescription(eventLogEntry);
              DateField date = new DateField("",
                  eventLogEntryDate, DateFormat
                      .getInstance(DateFormat.DATE_SHORT
                          | DateFormat.TIME_SHORT),
                  DateField.DATE_TIME | DateField.READONLY);
              RichTextField text = new RichTextField(
                  eventLogEntryText,
                  RichTextField.NON_FOCUSABLE);
              eventLogScreen.add(date);
              eventLogScreen.add(text);
            }

            eventLogScreen.doModal();
          }
        });
      }
    };
    new Thread(exec).start();
View Full Code Here

                }
            });
        }
   
    public static void showMessageServicesWarning() {
        Dialog warning = new Dialog(Dialog.D_OK,
                                    "No message services configured. Please activate the BlackBerry Email service in order to sync mail messages too",
                                    1,
                                    Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),
                                    Manager.LEAVE_BLANK_SPACE);
       
View Full Code Here

        super("Show Dialog", 0, 100);
      }

      public void run() {
        try {
          Dialog dialog = new Dialog(Dialog.D_OK, "Banner Test", 0, null, 0);
          BatteryStatus battery = new BatteryStatus();
          battery.setDisplaySetting(BatteryStatus.BATTERY_VISIBLE_ALWAYS);
          dialog.add(battery);
          dialog.add(new WirelessStatus());
          dialog.add(new WirelessStatus(WirelessStatus.DISPLAY_DESCRIPTOR, false));
          dialog.add(new WirelessStatus(WirelessStatus.DISPLAY_SIGNAL, true));
          dialog.add(new WirelessStatus(WirelessStatus.DISPLAY_WIFI, true));
          dialog.add(new Notifications());
          dialog.add(new TimeDisplay());
          UiApplication.getUiApplication().pushGlobalScreen(dialog, UiApplication.GLOBAL_SHOW_LOWER, 0);
          Application.getApplication().requestBackground();
        } catch (Exception e) {
          log(e.toString());
        }
View Full Code Here

                    final Object context) {
                // Display selected device in a pop up dialog
                final TableModel tableModel = richList.getModel();
                final Object[] objArray =
                        (Object[]) tableModel.getRow(richList.getFocusRow());
                final Dialog dialog =
                        new Dialog(Dialog.D_OK,
                                (String) objArray[DISPLAY_NAME], 0,
                                (Bitmap) objArray[BITMAP], 0);
                dialog.doModal();
            }
        }));
    }
View Full Code Here

                _keywordFilterField.setKeyword("");

                // Create a Dialog instance which will allow a user to add a new
                // country to the keyword list.
                final String[] selections = { "Add", "Cancel" };
                final Dialog addDialog =
                        new Dialog("Add Country", selections, null, 0, null);
                final EditField inputField = new EditField("Country: ", "");
                addDialog.add(inputField);

                // Display the dialog and add a new element to the list
                // of countries.
                if (addDialog.doModal() == 0) // User selected "Add"
                {
                    _app.addElementToList(new Country(inputField.getText(), "",
                            ""));
                }
            }
View Full Code Here

            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."
                                        + " This memo will be deleted and this screen closed.",
                                0, null, 0);
                dialog.doModal();
                this.popScreen(activeScreen);
            }
        }

        persist();
View Full Code Here

TOP

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

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.