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);
}
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);
}
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);
}
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();
}
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);
}
Aggregations