Package bibliothek.gui.dock.support.util

Examples of bibliothek.gui.dock.support.util.ApplicationResource


                control.intern().getController().setTheme( theme );
            }
        });
       
        try {
            control.getResources().put( "dock.ui.ThemeMap", new ApplicationResource(){
                public void read( DataInputStream in ) throws IOException {
                    Version.read( in ).checkCurrent();
                    if( in.readBoolean() ){
                        select( in.readUTF() );
                    }
View Full Code Here


     */
    protected void initPersistentStorage(){
        try{
          addMultipleDockableFactory( "", NullMultipleCDockableFactory.NULL, false );
         
            resources.put( "ccontrol.frontend", new ApplicationResource(){
                public void write( DataOutputStream out ) throws IOException {
                    Version.write( out, Version.VERSION_1_1_1 );
                    frontend.write( out );
                }
                public void read( DataInputStream in ) throws IOException {
                    Version version = Version.read( in );
                    version.checkCurrent();
                    if( Version.VERSION_1_1_1.compareTo( version ) > 0 && Version.VERSION_1_0_4.compareTo( version ) <= 0 ){
                      readWorkingAreas( in );
                    }
                    frontend.read( in );
                }
                public void writeXML( XElement element ) {
                    frontend.writeXML( element.addElement( "frontend" ) );
                }
                public void readXML( XElement element ) {
                    frontend.readXML( element.getElement( "frontend" ) );
                }
            });

            resources.put( "ccontrol.preferences", new ApplicationResource(){
                public void read( DataInputStream in ) throws IOException {
                    Version version = Version.read( in );
                    version.checkCurrent();
                    preferences.read( in );

View Full Code Here

        super( null, list );
        control.addDestroyHook( this );
        dockableCollector = new DockableCollector( control.intern() );
        getList().addComponentCollector( dockableCollector );
        try {
            control.getResources().put( "CLookAndFeelMenuPiece", new ApplicationResource(){
                public void write( DataOutputStream out ) throws IOException {
                    Version.write( out, Version.VERSION_1_0_4 );
                    getList().write( out );
                }
                public void read( DataInputStream in ) throws IOException {
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.support.util.ApplicationResource

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.