Search in sources :

Example 1 with Command

use of net.rim.device.api.command.Command 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)

Aggregations

Command (net.rim.device.api.command.Command)1 BitmapField (net.rim.device.api.ui.component.BitmapField)1 LabelField (net.rim.device.api.ui.component.LabelField)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