Search in sources :

Example 1 with NfcVirtTargScreen

use of nfc.sample.virtual.target.ui.NfcVirtTargScreen in project Samples-for-Java by blackberry.

the class EmulateSrCommand method execute.

public void execute(ReadOnlyCommandMetadata metadata, Object context) {
    synchronized (UiApplication.getUiApplication().getEventLock()) {
        MainScreen screen = new NfcVirtTargScreen(Constants.EMULATE_SR);
        UiApplication.getUiApplication().pushScreen(screen);
    }
}
Also used : NfcVirtTargScreen(nfc.sample.virtual.target.ui.NfcVirtTargScreen) MainScreen(net.rim.device.api.ui.container.MainScreen)

Example 2 with NfcVirtTargScreen

use of nfc.sample.virtual.target.ui.NfcVirtTargScreen in project Samples-for-Java by blackberry.

the class EmulateScCommand method execute.

public void execute(ReadOnlyCommandMetadata metadata, Object context) {
    synchronized (UiApplication.getUiApplication().getEventLock()) {
        MainScreen screen = new NfcVirtTargScreen(Constants.EMULATE_SC);
        UiApplication.getUiApplication().pushScreen(screen);
    }
}
Also used : NfcVirtTargScreen(nfc.sample.virtual.target.ui.NfcVirtTargScreen) MainScreen(net.rim.device.api.ui.container.MainScreen)

Example 3 with NfcVirtTargScreen

use of nfc.sample.virtual.target.ui.NfcVirtTargScreen in project Samples-for-Java by blackberry.

the class ResponseTextCommand method execute.

public void execute(ReadOnlyCommandMetadata metadata, Object context) {
    NfcVirtTargScreen screen = (NfcVirtTargScreen) context;
    synchronized (UiApplication.getUiApplication().getEventLock()) {
        MainScreen text_screen = new ResponseTextScreen(screen);
        UiApplication.getUiApplication().pushScreen(text_screen);
    }
}
Also used : NfcVirtTargScreen(nfc.sample.virtual.target.ui.NfcVirtTargScreen) ResponseTextScreen(nfc.sample.virtual.target.ui.ResponseTextScreen) MainScreen(net.rim.device.api.ui.container.MainScreen)

Aggregations

MainScreen (net.rim.device.api.ui.container.MainScreen)3 NfcVirtTargScreen (nfc.sample.virtual.target.ui.NfcVirtTargScreen)3 ResponseTextScreen (nfc.sample.virtual.target.ui.ResponseTextScreen)1