Package net.rim.blackberry.api.phone.phonegui

Examples of net.rim.blackberry.api.phone.phonegui.ScreenModel


            // Try to obtain BlackBerryContact associated with the call
            contact = phoneCall.getContact();
        }

        // Obtain ScreenModel for current call
        final ScreenModel model = getScreenModel(callID, contact, screenType);

        if (model != null) {
            // Send data contained in ScreenModel to the screen
            model.sendAllDataToScreen();
        }
    }
View Full Code Here


     *         landscape and portrait modes, or null
     */
    private static ScreenModel getScreenModel(final int callID,
            final BlackBerryContact contact, final int screenType) {
        // Obtain ScreenModel for current call
        final ScreenModel screenModel = new ScreenModel(callID);

        // Create a PhoneScreen in portrait view
        PhoneScreen portraitPhoneScreen;
        try {
            portraitPhoneScreen =
                    screenModel
                            .getPhoneScreen(PhoneScreen.PORTRAIT, screenType);
        } catch (final ControlledAccessException e) {
            return null;
        }

        if (portraitPhoneScreen != null) {
            setUpPhoneScreen(portraitPhoneScreen, contact);
        }

        // Create a PhoneScreen in landscape view
        PhoneScreen landscapePhoneScreen;
        try {
            landscapePhoneScreen =
                    screenModel.getPhoneScreen(PhoneScreen.LANDSCAPE,
                            screenType);
        } catch (final ControlledAccessException e) {
            return null;
        }

View Full Code Here

            // Try to obtain BlackBerryContact associated with the call
            contact = phoneCall.getContact();
        }

        // Obtain ScreenModel for current call
        final ScreenModel model = getScreenModel(callID, contact, screenType);

        if (model != null) {
            // Send data contained in ScreenModel to the screen
            model.sendAllDataToScreen();
        }
    }
View Full Code Here

     *         landscape and portrait modes, or null
     */
    private static ScreenModel getScreenModel(final int callID,
            final BlackBerryContact contact, final int screenType) {
        // Obtain ScreenModel for current call
        final ScreenModel screenModel = new ScreenModel(callID);

        // Create a PhoneScreen in portrait view
        PhoneScreen portraitPhoneScreen;
        try {
            portraitPhoneScreen =
                    screenModel
                            .getPhoneScreen(PhoneScreen.PORTRAIT, screenType);
        } catch (final ControlledAccessException e) {
            return null;
        }

        if (portraitPhoneScreen != null) {
            setUpPhoneScreen(portraitPhoneScreen, contact);
        }

        // Create a PhoneScreen in landscape view
        PhoneScreen landscapePhoneScreen;
        try {
            landscapePhoneScreen =
                    screenModel.getPhoneScreen(PhoneScreen.LANDSCAPE,
                            screenType);
        } catch (final ControlledAccessException e) {
            return null;
        }

View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.phone.phonegui.ScreenModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.