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

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


  public EnterKeyScreen() {
    setTitle(sResources.getString(ENTER_KEY_TITLE));
    VerticalFieldManager manager = new VerticalFieldManager();
    mDescriptionText = new LabelField(sResources.getString(ENTER_KEY_HELP));
    mAccountName = new EditField(EditField.NO_NEWLINE);
    mAccountName.setLabel(sResources.getString(ENTER_ACCOUNT_LABEL));
    mKeyEntryField = new EditField(EditField.NO_NEWLINE);
    mKeyEntryField.setLabel(sResources.getString(ENTER_KEY_LABEL));
    mType = new ObjectChoiceField(sResources.getString(TYPE_PROMPT), OtpType
        .values());
    mStatusText = new LabelField() {
      protected void paint(Graphics graphics) {
View Full Code Here


    private PasswordEditField passwordField;
    private boolean cancelled;

    public AuthenticationScreen( String host, String domain ) {
        super( Dialog.D_OK_CANCEL, loginMessage( host ), 1, Bitmap.getPredefinedBitmap( Bitmap.QUESTION ), Manager.FOCUSABLE );
        usernameField = new EditField( "User Name: ", "", 50, EditField.EDITABLE );
        domainField = new EditField( "Domain: ", domain != null?domain:"", 50, EditField.EDITABLE );
        passwordField = new PasswordEditField( "Password: ", "", 50, EditField.EDITABLE );

        cancelled = false;

        add( usernameField );
View Full Code Here

    restartField = new ButtonField("Restart Tracking", Field.FIELD_RIGHT);
    restartField.setChangeListener(this);
    satellitesField = new ButtonField("Satellites");
    satellitesField.setChangeListener(this);
   
    locationField = new EditField("Location: ", "-");   
    locationTypeField = new EditField("Location Type: ", "-");   
    fixCountField = new EditField("Fix Count: ", "-");   
    gpsFixCountField = new EditField("\tGPS: ", "-");   
    geoFixCountField = new EditField("\tGeolocation: ", "-");   
    statusField = new EditField("Status: ", "-");   
    logField = new EditField("Log: ", "-");
   
    add(modeField);   
    add(new SeparatorField());
    add(retryFactorField);
    add(new SeparatorField());
View Full Code Here

              UiApplication.getUiApplication().popScreen(screen);             
            }
            return true;
          }         
        };
        EditField satField = new EditField("", "");
        satPopup.add(satField);
        StringBuffer buffer = new StringBuffer();
        Enumeration satEnum = location.getSatelliteInfo();
        if(satEnum!=null && satEnum.hasMoreElements()){
          buffer.append("ID\tAzimuth\tElevation\tSignal\n");
          while(satEnum.hasMoreElements()){
            SatelliteInfo satInfo = (SatelliteInfo)satEnum.nextElement();   
            if(satInfo!=null && satInfo.isValid()){
              buffer.append(satInfo.getId() + "\t" + satInfo.getAzimuth() + "\t" + satInfo.getElevation() + "\t" + satInfo.getSignalQuality() + "\n");
            }
          }
          satField.setText(buffer.toString());
        } else{
          buffer.append("No satellite information available for current location fix");
          satField.setText(buffer.toString());
        }
        UiApplication.getUiApplication().invokeLater(new Runnable(){
          public void run(){
            UiApplication.getUiApplication().pushScreen(satPopup);
          }
View Full Code Here

    add(new SeparatorField());
    add(new SeparatorField());
    add(new SeparatorField());

    // An EditField to let the user type in the text to share.
    textField = new EditField("", "Share this please.");
    textField.setBorder(BorderFactory.createRoundedBorder(new XYEdges(3, 3, 3, 3)));
   
    // A button that initiates the Text Share
    shareTextButton = new ButtonField("Text Share", Field.FIELD_HCENTER) {
      protected boolean navigationClick(int arg0, int arg1) {
View Full Code Here

    public ReceivePushScreen(final CommunicationController controller) {
        setTitle("BES Push");

        // Initialize UI components

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

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

        _horizontalDistances = new float[GRADE_INTERVAL];

        _screen = new GPSDemoScreen();
        _screen.setTitle("GPS Demo");

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

        // Attempt to start the location listening thread
        if (startLocationUpdate()) {
            _screen.setState(_locationProvider.getState());
View Full Code Here

                Field.NON_FOCUSABLE));
        add(new SeparatorField());

        // Need to get the local host name from the user because access to
        // 'localhost' and 127.0.0.1 is restricted.
        _hostField = new EditField("Local Host: ", "");
        add(_hostField);

        _useDirectTcpField =
                new CheckboxField("Use Direct TCP",
                        RadioInfo.getNetworkType() == RadioInfo.NETWORK_IDEN);
View Full Code Here

        setTitle("SOAP");

        _callback = new SendNonBlockXmlScreenCallback(this);

        _uriSenderField =
                new EditField("URI:", CommunicationController.ECHO_SERVER_URI
                        + "SOAP", 140, 0);

        final FullWidthButton postButton = new FullWidthButton("Get Data");
        postButton.setChangeListener(new FieldChangeListener() {
            /**
 
View Full Code Here

        setTitle("ATOM");

        _callback = new SendNonBlockAtomScreenCallback(this);

        _uriSenderField =
                new EditField("URI:", CommunicationController.ECHO_SERVER_URI
                        + "ATOM", 140, 0);
        final FullWidthButton postButton = new FullWidthButton("Get Data");
        postButton.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.