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

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


            setTitle(new LabelField(sdh.getLanguage("configure-sync4j-bb")));

            Log.debug("Username:" + c.userName);
            Log.debug("Sync Calendar: " + c.syncCalendar);
           
            userNameField           = new BasicEditField
                                        (sdh.getLanguage("user") + " " , c.userName );

            passwordField           = new PasswordEditField
                                        (sdh.getLanguage("password") + " " , c.password );

            homePageField           = new BasicEditField
                                        (sdh.getLanguage("homepage") + " \n" , c.syncUrl );
                                       
            listeningPortField      = new BasicEditField
                                        (sdh.getLanguage("alerting-port") + "  " ,
                                        c.listeningPort);
           
            mailIDField             = new BasicEditField
                                        (sdh.getLanguage("email-id") + "  " , c.mailAddress);
                                       
           
                                       
            mailSourceUriField      = new BasicEditField
                                        (sdh.getLanguage("source-uri-mail") + "  "  ,
                                        c.mailSourceUri);
            contactSourceUriField   = new BasicEditField
                                        (sdh.getLanguage("source-uri-contact") + "  "  ,
                                        c.contactSourceUri );

            calendarSourceUriField  = new BasicEditField
                                        (sdh.getLanguage("source-uri-calendar") + "  " ,
                                        c.calendarSourceUri );
                                       

            syncContactField        = new CheckboxField
                                        (sdh.getLanguage("enable-sync-contact")       ,
                                        c.syncContact );

            syncCalendarField       = new CheckboxField
                                        (sdh.getLanguage("enable-sync-calendar")      ,
                                        c.syncCalendar );
                                       
            syncMailField           = new CheckboxField
                                        (sdh.getLanguage("enable-sync-mail")      ,
                                        c.syncMail);
                                       
            pollingField            = new CheckboxField(
                                        sdh.getLanguage("enable-polling"),
                                        c.enablePolling);
                                      
            smsField                = new CheckboxField(
                                        sdh.getLanguage("enable-sms-server-alerted-sync"),
                                        c.enableSmsSync);
                                      
            gatewayApnField         = new BasicEditField
                                        (sdh.getLanguage("gateway-apn") + " "        ,
                                        c.gatewayApn );

            gatewayIpField          = new BasicEditField
                                        (sdh.getLanguage("gateway-ip") + " "         ,
                                        c.gatewayIp );

            gatewayPortField        = new BasicEditField
                                        (sdh.getLanguage("gateway-port") + " "      ,
                                        c.gatewayPort  ,
                                        6              ,
                                        EditField.FILTER_INTEGER );
           
View Full Code Here


     * Creates a new ReverseGeocodeScreen object and initializes UI elements
     */
    public ReverseGeocodeScreen() {
        setTitle("Reverse Geocode");

        _editFieldLatitude = new BasicEditField("Latitude: ", "");
        _editFieldLongitude = new BasicEditField("Longitude: ", "");
        _blockingCheckBox = new CheckboxField("Blocking:", false);
        _bearingEditField =
                new BasicEditField("Bearing: ", "-1", 4,
                        BasicEditField.FILTER_INTEGER);

        add(_editFieldLatitude);
        add(_editFieldLongitude);
        add(_blockingCheckBox);
View Full Code Here

     * Creates a new GeocodeScreen object and intializes UI components
     */
    public GeocodeScreen() {
        setTitle("Geocode");

        _editFieldLatitude = new BasicEditField("Latitude: ", "");
        _editFieldLongitude = new BasicEditField("Longitude: ", "");
        add(_editFieldLatitude);
        add(_editFieldLongitude);

        _blockingCheckbox = new CheckboxField("Blocking:", false);
        add(_blockingCheckbox);
View Full Code Here

     * @return Manager containing UI components
     */
    private Manager createStructuredManager() {
        final VerticalFieldManager manager = new VerticalFieldManager();

        _addressEditField = new BasicEditField("Address: ", "");
        manager.add(_addressEditField);

        _cityEditField = new BasicEditField("City: ", "");
        manager.add(_cityEditField);

        _districtEditField = new BasicEditField("Province: ", "");
        manager.add(_districtEditField);

        _countryEditField = new BasicEditField("Country: ", "");
        manager.add(_countryEditField);

        _zipEditField = new BasicEditField("Postal Code: ", "");
        manager.add(_zipEditField);

        return manager;
    }
View Full Code Here

     * @return Manager containing UI components
     */
    private Manager createFreeFormManager() {
        final VerticalFieldManager manager = new VerticalFieldManager();

        _freeFormEditField = new BasicEditField("Freeform: ", "");
        manager.add(_freeFormEditField);

        return manager;
    }
View Full Code Here

        // The int values returned by getLatitude() and getLongitude() are
        // 100,000 times
        // the values specified by WGS84.
        _latitudeField =
                new BasicEditField("Latitude:      ", _mapview.getLatitude()
                        / 100000.0 + "", 9, BasicEditField.FILTER_REAL_NUMERIC);
        _logitudeField =
                new BasicEditField("Longitude:   ", _mapview.getLongitude()
                        / 100000.0 + "", 10, BasicEditField.FILTER_REAL_NUMERIC);
        _zoomField =
                new NumericChoiceField("Zoom: ", 0, MapView.MAX_ZOOM, 1,
                        _mapview.getZoom());
View Full Code Here

        if (focusField instanceof BasicEditField && !focusField.isDirty()) {
            if (key >= Characters.DIGIT_ZERO && key <= Characters.DIGIT_NINE
                    || key == Characters.BACKSPACE
                    || key == Characters.HYPHEN_MINUS) {
                final BasicEditField bef = (BasicEditField) focusField;
                bef.clear(10);

                if (key != Characters.BACKSPACE) {
                    bef.setText(key + "");
                }

                bef.setDirty(true);

                return true;
            }
        }
View Full Code Here

        add(new RichTextField("Upload " + _fileHolder.getFileName(),
                Field.NON_FOCUSABLE | Field.FIELD_LEFT));
        add(new SeparatorField());

        _emailEdit = new BasicEditField("Recipient Email: ", "");
        add(_emailEdit);

        _okButton =
                new ButtonField("OK", Field.FIELD_HCENTER
                        | ButtonField.CONSUME_CLICK);
View Full Code Here

    /**
     * @see FieldChangeListener#fieldChanged(Field, int)
     */
    public void fieldChanged(final Field field, final int context) {
        if (field == _searchInput) {
            final BasicEditField searchField = (BasicEditField) field;
            final String keyword = searchField.getText().trim();

            if (keyword.length() > 0) {
                final Thread worker = new Thread(new Runnable() {
                    /**
                     * @see Runnable#run()
View Full Code Here

         *            The country to display secondary information about
         */
        InfoScreen(final Country country) {
            // Set up and display UI elements
            setTitle(country.toString());
            final BasicEditField popField =
                    new BasicEditField("Population: ", country.getPopulation(),
                            20, Field.NON_FOCUSABLE);
            final BasicEditField capField =
                    new BasicEditField("Capital: ", country.getCapitalCity(),
                            20, Field.NON_FOCUSABLE);
            add(popField);
            add(capField);
        }
View Full Code Here

TOP

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

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.