Package palmed.ui

Examples of palmed.ui.Toolbar


        final FileOpenListener openListener = new FileOpenListener( manager, result );
        final FileSaveListener saveListener = new FileSaveListener( manager, result );
        final FileOverwriteListener overwriteListener = new FileOverwriteListener( display_, textBox_, saveListener );
        final FileBrowser fileBrowser = new FileBrowser( display_, textBox_ );
        final CopyPasteManager copyPaste = new CopyPasteManager( textBox_ );
        final Toolbar toolbar = new Toolbar( this, textBox_ );
        toolbar.add( exit_, "/icons/system-log-out.png" );
        toolbar.add( new NewCommand( manager ), "/icons/document-new.png" );
        toolbar.add( new OpenCommand( display_, fileBrowser, openListener ), "/icons/document-open.png" );
        final ICommand saveAsCommand = new SaveAsCommand( display_, fileBrowser, overwriteListener );
        toolbar.add( new SaveCommand( manager, saveAsCommand ), "/icons/document-save-as.png" );
        toolbar.add( saveAsCommand, "/icons/document-save.png" );
        toolbar.add( new CloseCommand( display_, manager, result ), "/icons/process-stop.png" );
        toolbar.add( new PreviousCommand( manager ), "/icons/go-previous.png" );
        toolbar.add( new NextCommand( manager ), "/icons/go-next.png" );
        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.ui.Toolbar

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.