Package palmed.io

Examples of palmed.io.RecordFactory


     */
    public PalmEd()
    {
        display_ = Display.getDisplay( this );
        textBox_ = new TextBox();
        final RecordFactory mainFactory = new RecordFactory( "palmed" );
        final RecordFactory buffersFactory = new RecordFactory( "palmed.buffers" );
        final IBufferFactory factory = new BufferFactory( buffersFactory, textBox_ );
        final IBufferManager manager = new RecordBufferManager( factory );
        try
        {
            exit_ = new ExitCommand( this, manager, mainFactory );
        }
        catch( RecordException e )
        {
            mainFactory.purge();
            buffersFactory.purge();
            throw new RecordException( "Incompatible buffer format detected : quit and restart", e );
        }
        textBox_.add( createToolbar( manager ) );
    }
View Full Code Here


        toolbar.add( new CutCommand( copyPaste ), "/icons/edit-cut.png" );
        toolbar.add( new CopyCommand( copyPaste ), "/icons/edit-copy.png" );
        toolbar.add( new PasteCommand( copyPaste ), "/icons/edit-paste.png" );
        toolbar.add( new UndoCommand( textBox_ ), "icons/edit-undo.png" );
        toolbar.add( new RedoCommand( textBox_ ), "icons/edit-redo.png" );
        final RecordFactory preferencesFactory = new RecordFactory( "palmed.preferences" );
        toolbar.add( new PreferencesCommand( display_, textBox_, preferencesFactory, textBox_ ),
                "icons/preferences-desktop.png" );
        toolbar.add( new AboutCommand( this, display_, textBox_ ), "/icons/help-browser.png" );
        return toolbar;
    }
View Full Code Here

TOP

Related Classes of palmed.io.RecordFactory

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.