Examples of MainScreen


Examples of net.rim.device.api.ui.container.MainScreen

     * @see blackberry.core.ScriptableFunctionBase#execute(Object, Object[])
     */

    public Object execute( Object thiz, Object[] args ) throws Exception {
        // Get the screen that currently owns the BrowserField
        MainScreen screen = (MainScreen) MenuExtension.getBrowserField().getScreen();
        Object[] list = MenuItemObjectManager.getMenuItemObjects();

        for( int i = 0; i < list.length; i++ ) {
            screen.removeMenuItem( ( (MenuItemObject) list[ i ] ).getMenuItem() );
        }
        MenuItemObjectManager.clearMenuItemObjects();

        return UNDEFINED;
    }
View Full Code Here

Examples of net.rim.device.api.ui.container.MainScreen

    /**
     * @see blackberry.core.ScriptableFunctionBase#execute(Object, Object[])
     */
    public Object execute( Object thiz, Object[] args ) throws Exception {
        // Get the screen that currently owns the BrowserField
        MainScreen screen = (MainScreen) MenuExtension.getBrowserField().getScreen();
        MenuItemObject menuItem = (MenuItemObject) args[ 0 ];

        boolean addSucceed = MenuItemObjectManager.addMenuItemObject( menuItem );

        if( addSucceed ) {
            screen.addMenuItem( menuItem.getMenuItem() );
        }
        return UNDEFINED;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.