Package bm.core.event

Examples of bm.core.event.ProgressEvent


    {
        super( controller );
        this.pageSize = pageSize;
        this.viewId = viewId;

        final ProgressEvent pe = new ProgressEvent( this, new Integer( pageSize ), 0 );
        pe.setTitle( ResourceManager.getResource( "global.Searching" ) );
        pe.setPhase( ResourceManager.getResource( "global.Searching" ) );

        final List list = new List( title, List.IMPLICIT );
        list.setCommandListener( this );
        list.setFitPolicy( Choice.TEXT_WRAP_ON );
        displayable = list;
View Full Code Here


                   RecordStoreFullException,
                   RSException
    {
        final int page = this.page;
        final List list = (List) displayable;
        final ProgressEvent pe = this.pe;

        onBeforeFillPage();

        list.deleteAll();
        final ScrollSet set = this.set;
        if( set != null )
        {
            try
            {
                set.openSource();
                final int speed = speedOptionsAction.size();
                for( int i = 0; i < speed; i++ )
                {
                    list.append(
                            ResourceManager.getResource( (String)
                                    speedOptionsText.elementAt( i )
                            ),
                            null
                    );
                }
                if( page > 0 )
                {
                    list.append(
                            ResourceManager.getResource( "listBrowserView.prevPage" ),
                            null
                    );
                }
                final int pageSize = this.pageSize;
                int count = 0;
                int index = page * pageSize;
                pe.setValue( new Integer( 0 ) );
                pe.dispatch();
                //noinspection MethodCallInLoopCondition
                while( count < pageSize && index < size )
                {
                    final String label = buildLabel( set.getRowAt( index ) );
                    if( label != null )
                    {
                        list.append( label, null );
                        count++;
                    }
                    index++;
                    pe.increment();
                    pe.dispatch();
                }
                if( page < (pageCount -1) )
                {
                    list.append(
                            ResourceManager.getResource( "listBrowserView.nextPage" ),
View Full Code Here

    {
        // Local variable to improve speed on CDC
        final Log log = MainController.log;
        bm.core.ErrorHandler.setHandler( new ErrorHandler() );
        Event.register( this, Event.LANGUAGE_CHANGE );
        ProgressEvent pe = new ProgressEvent( this, new Integer( 4 ), 0 );
        pe.setTitle( ResourceManager.getResource( "main.StartApplication" ) );
        pe.dispatch();
        try
        {
            init();
            pe.increment();
            pe.dispatch();

            log.debug( "Starting application" );
            if( !checkConfig() )
            {
                exitApplication();
                return;
            }
            setup();
            pe.increment();
            pe.dispatch();

            if( LoginManager.getEncryptedPassword() == null )
            {
                createPin();
            }
            else
            {
                promptPin();
            }

            View nextView = startDatabase();
            checkDatabaseSanity();
            pe.increment();
            pe.dispatch();
            final Database database = Model.getDatabase();
            DefaultFieldResolver.setDatabase( database );
            if( nextView == null )
            {
                nextView = restoreLastView();
View Full Code Here

            throws DBException,
                   SerializationException,
                   RecordStoreFullException,
                   RSException
    {
        final ProgressEvent pe = new ProgressEvent();
        pe.setAnimate( true );
        pe.setTitle( ResourceManager.getResource( "sysinfo.Title" ) );
        pe.dispatch();

        final StringBuffer buffer = new StringBuffer();
        final long totalMemory = Runtime.getRuntime().totalMemory() / KB;
        final long freeMemory  = Runtime.getRuntime().freeMemory() / KB;
        final Database db = Model.getDatabase();
View Full Code Here

TOP

Related Classes of bm.core.event.ProgressEvent

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.