Search in sources :

Example 1 with BitmapField

use of net.rim.device.api.ui.component.BitmapField in project Samples-for-Java by blackberry.

the class ActivityScreen method indicateSender.

private void indicateSender() {
    icon = new BitmapField(snd_icon);
    icon_row.add(icon);
    icon_row.add(new LabelField(" - LLCP sender"));
    add(icon_row);
}
Also used : BitmapField(net.rim.device.api.ui.component.BitmapField) LabelField(net.rim.device.api.ui.component.LabelField)

Example 2 with BitmapField

use of net.rim.device.api.ui.component.BitmapField in project Samples-for-Java by blackberry.

the class ClientActivityScreen method emulateSmartCard.

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()));
//        addMenuItem(mi_response);
}
Also used : BitmapField(net.rim.device.api.ui.component.BitmapField) LabelField(net.rim.device.api.ui.component.LabelField)

Example 3 with BitmapField

use of net.rim.device.api.ui.component.BitmapField in project Samples-for-Java by blackberry.

the class Banner method addIcon.

/**
	 * Add an icon using the Bitmap. Will scale the image if it is larger than
	 * the space available.
	 * 
	 * @param icon
	 */
public void addIcon(Bitmap icon) {
    if (icon == null) {
        return;
    // TODO does the API throw an Exception?
    }
    // Scale to same height as the other elements.
    Bitmap image = scaleImage(icon);
    if (this.icon != null) {
        this.icon.setBitmap(image);
    } else {
        this.icon = new BitmapField(image);
    }
    add(this.icon);
}
Also used : Bitmap(net.rim.device.api.system.Bitmap) BitmapField(net.rim.device.api.ui.component.BitmapField)

Example 4 with BitmapField

use of net.rim.device.api.ui.component.BitmapField in project Samples-for-Java by blackberry.

the class NfcVirtTargScreen method emulateSmartCard.

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()));
    addMenuItem(mi_response);
    startEmulationOfISO14443ATarget();
}
Also used : BitmapField(net.rim.device.api.ui.component.BitmapField) StartCommand(nfc.sample.virtual.target.commands.StartCommand) Command(net.rim.device.api.command.Command) ResponseTextCommand(nfc.sample.virtual.target.commands.ResponseTextCommand) StopCommand(nfc.sample.virtual.target.commands.StopCommand) LabelField(net.rim.device.api.ui.component.LabelField) ResponseTextCommand(nfc.sample.virtual.target.commands.ResponseTextCommand)

Example 5 with BitmapField

use of net.rim.device.api.ui.component.BitmapField in project Samples-for-Java by blackberry.

the class NfcVirtTargScreen method emulateReader.

private void emulateReader() {
    icon = new BitmapField(reader_icon);
    icon_row.add(icon);
    icon_row.add(new LabelField(" - emulating reader"));
    add(icon_row);
    startDetectionListener(_detectionListener);
}
Also used : BitmapField(net.rim.device.api.ui.component.BitmapField) LabelField(net.rim.device.api.ui.component.LabelField)

Aggregations

BitmapField (net.rim.device.api.ui.component.BitmapField)6 LabelField (net.rim.device.api.ui.component.LabelField)5 Command (net.rim.device.api.command.Command)1 Bitmap (net.rim.device.api.system.Bitmap)1 ResponseTextCommand (nfc.sample.virtual.target.commands.ResponseTextCommand)1 StartCommand (nfc.sample.virtual.target.commands.StartCommand)1 StopCommand (nfc.sample.virtual.target.commands.StopCommand)1