Search in sources :

Example 1 with ResponseTextScreen

use of nfc.sample.virtual.target.ui.ResponseTextScreen 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)1 NfcVirtTargScreen (nfc.sample.virtual.target.ui.NfcVirtTargScreen)1 ResponseTextScreen (nfc.sample.virtual.target.ui.ResponseTextScreen)1