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

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


    mCheckCodeTextView.setText(sResources.getString(CHECK_CODE));

    mCodeArea = new HorizontalFieldManager(FIELD_HCENTER);

    Bitmap bitmap = Bitmap.getBitmapResource("ic_lock_lock.png");
    BitmapField icon = new BitmapField(bitmap, FIELD_VCENTER);

    mCodeTextView = new LabelField("", FIELD_VCENTER);
    mCodeArea.add(icon);
    mCodeArea.add(mCodeTextView);
View Full Code Here


                if( foregroundImage instanceof GIFEncodedImage ) {
                    _foregroundImage = new AnimatedGIFField( (GIFEncodedImage) foregroundImage );
                    ( ( AnimatedGIFField) _foregroundImage ).startAnimation();
                } else {
                    _foregroundImage = new BitmapField( foregroundImage.getBitmap() );
                }

                // Add the _foregroundImage field
                _hfm.add( _foregroundImage );
View Full Code Here

        _isForceClosed = true;
        _dialog.close();
    }

    private void setIcon( Bitmap image ) {
        BitmapField field = null;
        if( image != null ) {
            field = new BitmapField( null, BitmapField.VCENTER | BitmapField.STAMP_MONOCHROME );
            field.setBitmap( image );
        }
        DialogFieldManager dfm = (DialogFieldManager) _dialog.getDelegate();
        dfm.setIcon( field );
    }
View Full Code Here

import net.rim.device.api.ui.container.PopupScreen;

public class MessageScreen extends PopupScreen {
    public MessageScreen(String message) {
        super( new HorizontalFieldManager(), Field.NON_FOCUSABLE);
        final BitmapField logo = new BitmapField(Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS));
        logo.setSpace( 5, 5 );
        add(logo);

        RichTextField rtf = new RichTextField(message, Field.FIELD_VCENTER | Field.NON_FOCUSABLE | Field.FIELD_HCENTER);
        rtf.setEditable( false );
View Full Code Here

         * Creates the home screen with all the UI components on it
         */
        public AppScreen()
        {
            Bitmap icon            = null;
            BitmapField iconField  = null;

            icon = Bitmap.getBitmapResource(IMAGE_LOGO);
            iconField = new BitmapField(icon, Field.FIELD_HCENTER);//Field is centered horizontally
           
            /*
             * Specifies the amount of horizontal
             * and vertical padding placed around
             * this field's contained bitmap image
             */
            iconField.setSpace(5, 5);

            configScreen = new ConfigurationScreen();

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

View Full Code Here

        mi_settings.setCommand(new Command(new SettingsCommand()));
        addMenuItem(mi_settings);

        try {
            if(nfc_service.isNfcEnabled()) {
                nfc_led = new BitmapField(bmp_nfc_led_on);
            } else {
                nfc_led = new BitmapField(bmp_nfc_led_off);
            }
        } catch(NFCException e2) {
            Utilities.log("XXXX " + Thread.currentThread().getName() + " from isNfcEnabled()");
            nfc_led = new BitmapField(bmp_nfc_led_err);
        }
        nfc_led.setPadding(7, 0, 0, 0);

        try {
            ce.initCe(ce.getCurrentSecureElement());
            if(!ce.isSe_obtained()) {
                Utilities.log("XXXX " + Thread.currentThread().getName() + " SecureElement(SIM) not available");
                setUserMessage("Error: could not acquire SE");
                cem_led_err = true;
            } else {
                try {
                    ce_enabled = ce.isCeEnabled(SecureElement.BATTERY_ON_MODE);
                    if(ce_enabled) {
                        cem_led = new BitmapField(bmp_ce_led_on);
                    } else {
                        cem_led = new BitmapField(bmp_ce_led_off);
                    }
                } catch(Exception e) {
                    Utilities.log("XXXX " + Thread.currentThread().getName() + " exception when enabling CE: " + e.getClass().getName() + ":" + e.getMessage());
                    cem_led = new BitmapField(bmp_ce_led_err);
                }
            }
        } catch(NFCException e1) {
            Utilities.log("XXXX " + Thread.currentThread().getName() + " exception when getting SE: " + e1.getClass().getName() + ":" + e1.getMessage());
            setUserMessage("Error: could not acquire SE");
View Full Code Here

        add(_log);

    }

    private void emulateSmartCard() {
        icon = new BitmapField(sc_icon);
        icon_row.add(icon);
        icon_row.add(new LabelField(" - emulating smart card"));
        add(icon_row);
//        mi_response.setCommandContext(this);
//        mi_response.setCommand(new Command(new ResponseTextCommand()));
View Full Code Here

        Utilities.log("XXXX NfcVirtTarg leaving NfcVirtTargScreen constructor");
    }

    private void emulateSmartCard() {
        icon = new BitmapField(sc_icon);
        icon_row.add(icon);
        icon_row.add(new LabelField(" - emulating smart card"));
        add(icon_row);
        mi_response.setCommandContext(this);
        mi_response.setCommand(new Command(new ResponseTextCommand()));
View Full Code Here

        startEmulationOfISO14443ATarget();

    }

    private void emulateReader() {
        icon = new BitmapField(reader_icon);
        icon_row.add(icon);
        icon_row.add(new LabelField(" - emulating reader"));
        add(icon_row);
        startDetectionListener(_detectionListener);
    }
View Full Code Here

        add(_log);

    }

    private void indicateSender() {
        icon = new BitmapField(snd_icon);
        icon_row.add(icon);
        icon_row.add(new LabelField(" - LLCP sender"));
        add(icon_row);
    }
View Full Code Here

TOP

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

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.