Package bm.core.mvc

Examples of bm.core.mvc.View


    protected void process( final ControllerEvent event )
    {
        try
        {
            boolean consumed = false;
            final View source = event.getSource();
            if( source instanceof ListBrowserView )
            {
                consumed = processListBrowserView( event );
            }
            if( !consumed )
View Full Code Here


                // gets built with the appropriate resources
                progressListener = new ProgressView();
                break;

            case 1000: // ViewFactory.EVENT_VIEW_CREATED:
                final View view = (View) event.getAttachment( "view" );
                addView( (String) event.getAttachment( "viewName" ), view, false );
                if( view instanceof DataboundView )
                {
                    ((DataboundView) view).setResolver(
                            DefaultFieldResolver.getInstance()
View Full Code Here

            else
            {
                promptPin();
            }

            View nextView = startDatabase();
            checkDatabaseSanity();
            pe.increment();
            pe.dispatch();
            final Database database = Model.getDatabase();
            DefaultFieldResolver.setDatabase( database );
            if( nextView == null )
            {
                nextView = restoreLastView();
            }
            if( nextView == null )
            {
                nextView = ViewFactory.getMenu( "mainMenu" );
            }
            Event.unregisterAll( Event.PROGRESS );
            Event.register( progressListener, Event.PROGRESS );
            nextView.show();
        }
        catch( RuntimeException e )
        {
            e.printStackTrace();
            log.error( e );
View Full Code Here

     * @param view target view
     * @return true if so
     */
    private boolean comesFrom( final View source, final View view )
    {
        final View caller = source.getCaller();
        return caller != null && (
                    caller.getId() == view.getId() ||
                    comesFrom( caller, view )
        );
    }
View Full Code Here

                // gets built with the appropriate resources
                progressListener = new ProgressView();
                break;

            case 1000: // ViewFactory.EVENT_VIEW_CREATED:
                final View view = (View) event.getAttachment( "view" );
                addView( (String) event.getAttachment( "viewName" ), view, false );
                if( view instanceof DataboundView )
                {
                    ((DataboundView) view).setResolver(
                            DefaultFieldResolver.getInstance()
View Full Code Here

            }
            setup();
            pe.increment();
            pe.dispatch();

            View nextView = startDatabase();
            checkDatabaseSanity();
            pe.increment();
            pe.dispatch();
            final Database database = Model.getDatabase();
            DefaultFieldResolver.setDatabase( database );
            if( nextView == null )
            {
                nextView = restoreLastView();
            }
            if( nextView == null )
            {
                nextView = ViewFactory.getMenu( "mainMenu" );
            }
            Event.unregisterAll( Event.PROGRESS );
            Event.register( progressListener, Event.PROGRESS );
            nextView.show();
        }
        catch( RuntimeException e )
        {
            e.printStackTrace();
            log.error( e );
View Full Code Here

     * @param view target view
     * @return true if so
     */
    private boolean comesFrom( final View source, final View view )
    {
        final View caller = source.getCaller();
        return caller != null && (
                    caller.getId() == view.getId() ||
                    comesFrom( caller, view )
        );
    }
View Full Code Here

            if( keyCount > 3 )
            {
                final ApplicationManager manager = Application.getManager();
                if( manager != null )
                {
                    View view = manager.getBestView();
                    if( view != null )
                    {
                        try
                        {
                            view.show();
                        }
                        catch( Exception e )
                        {
                            view = null;
                        }
                    }
                    if( view == null )
                    {
                        view = manager.getMainView();
                        if( view != null )
                        {
                            try
                            {
                                view.show();
                            }
                            catch( Exception e )
                            {
                                view = null;
                            }
View Full Code Here

TOP

Related Classes of bm.core.mvc.View

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.