Search in sources :

Example 6 with MainScreen

use of net.rim.device.api.ui.container.MainScreen 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 7 with MainScreen

use of net.rim.device.api.ui.container.MainScreen 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)

Example 8 with MainScreen

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

the class CreateSpTagCommand method execute.

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

Example 9 with MainScreen

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

the class CreateTextTagCommand method execute.

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

Example 10 with MainScreen

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

the class CreateUriTagCommand method execute.

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

Aggregations

MainScreen (net.rim.device.api.ui.container.MainScreen)11 NfcVirtTargScreen (nfc.sample.virtual.target.ui.NfcVirtTargScreen)3 NFCException (net.rim.device.api.io.nfc.NFCException)2 CustomTagScreen (nfc.sample.Ndef.Write.ui.CustomTagScreen)1 SpTagScreen (nfc.sample.Ndef.Write.ui.SpTagScreen)1 TextTagScreen (nfc.sample.Ndef.Write.ui.TextTagScreen)1 UriTagScreen (nfc.sample.Ndef.Write.ui.UriTagScreen)1 ClientTextScreen (nfc.sample.llcp.ui.ClientTextScreen)1 NfcSnepResponderScreen (nfc.sample.peer2peer.ui.NfcSnepResponderScreen)1 ProtocolMessageMasterBid (nfc.sample.tictactoe.protocol.ProtocolMessageMasterBid)1 ResponseTextScreen (nfc.sample.virtual.target.ui.ResponseTextScreen)1