Examples of EditField


Examples of de.matthiasmann.twl.EditField

    x = getOX() + 10 + 21;
    y += resourceDispTo.getHeight() + 9;
    fields = new HashMap<Resource, EditField>();
    Resource[] resources = Resource.values();
    for (Resource r : resources) {
      EditField ef = new NumberField();
      ef.setTheme("editfield");
      ef.setPosition(x, y += 25);
      ef.setSize(120, 15);
      twlRootPane.add(ef);
      fields.put(r, ef);
    }

    x = Settings.WIDTH / 2 - 5 - TextButton.DEFAULT_WIDTH;
View Full Code Here

Examples of de.matthiasmann.twl.EditField

      }
    });
    cancelColonyButton.hide();
    add(cancelColonyButton);

    this.colonyNameField = new EditField();
    this.colonyNameField.setVisible(false);
    this.getRootPane().add(this.colonyNameField);

    if (GameData.getSelectedColony() != null) {
      this.selectedColony = GameData.getSelectedColony();
View Full Code Here

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

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

    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

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

    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

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

              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

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

    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

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

    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

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

        _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

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

                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
TOP
Copyright © 2018 www.massapi.com. 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.