Examples of ThemeFactory


Examples of bibliothek.gui.dock.themes.ThemeFactory

                item.setSelected( item.getKey().equals( selected ) );
            }
           
            if( transferTheme ){
                if( controller != null ){
                    ThemeFactory factory = themes.getSelectedFactory();
                    if( factory != null ){
                        controller.setTheme( factory.create( controller ) );
                    }
                }
            }
        }
    }
View Full Code Here

Examples of bibliothek.gui.dock.themes.ThemeFactory

     * @param controller the new controller, can be <code>null</code>
     */
    public void setController( DockController controller ) {
        this.controller = controller;
        if( controller != null && themes != null && transferTheme ){
            ThemeFactory selection = themes.getSelectedFactory();
           
            if( selection != null )
                controller.setTheme( selection.create( controller ) );
        }
        for( Item item : items ){
          item.setController( controller );
        }
    }
View Full Code Here

Examples of bibliothek.gui.dock.themes.ThemeFactory

        addThemeMapListener( new ThemeMapListener(){
            public void changed( ThemeMap map, int index, String key, ThemeFactory oldFactory, ThemeFactory newFactory ) {
                // ignore
            }
            public void selectionChanged( ThemeMap map, String oldKey, String newKey ) {
                ThemeFactory factory = null;
                if( newKey != null )
                    factory = getFactory( newKey );
               
                DockTheme theme;
               
                if( factory == null ){
                    theme = new CBasicTheme( control );
                }
                else{
                    theme = factory.create( control.getController() );
                }
               
                if( modifier != null )
                    theme = modifier.modify( theme );
               
View Full Code Here

Examples of bibliothek.gui.dock.themes.ThemeFactory

            select( KEY_BASIC_THEME );
        }
    }
   
    private void init( CControl control ){
        ThemeFactory flat =
            new CDockThemeFactory<FlatTheme>( new ThemePropertyFactory<FlatTheme>( FlatTheme.class ), control ){
            @Override
            public DockTheme create( CControl control ) {
                return new CFlatTheme( control );
            }
        };

        ThemeFactory bubble =
            new CDockThemeFactory<BubbleTheme>( new ThemePropertyFactory<BubbleTheme>( BubbleTheme.class ), control ){
            @Override
            public DockTheme create( CControl control ) {
                return new CBubbleTheme( control );
            }
        };

        ThemeFactory eclipse = new CDockThemeFactory<EclipseTheme>( new ThemePropertyFactory<EclipseTheme>( EclipseTheme.class ), control ){
            @Override
            public DockTheme create( CControl control ) {
                return new CEclipseTheme( control );
            }
        };

        ThemeFactory smooth =
            new CDockThemeFactory<SmoothTheme>( new ThemePropertyFactory<SmoothTheme>( SmoothTheme.class ), control ){
            @Override
            public DockTheme create( CControl control ) {
                return new CSmoothTheme( control );
            }
        };

        ThemeFactory basic =
            new CDockThemeFactory<BasicTheme>( new ThemePropertyFactory<BasicTheme>( BasicTheme.class ), control ){
            @Override
            public DockTheme create( CControl control ) {
                return new CBasicTheme( control );
            }
View Full Code Here

Examples of bibliothek.gui.dock.themes.ThemeFactory

        if( index < 0 ){
            add( key, factory );
        }
        else{
            Entry entry = factories.get( index );
            ThemeFactory old = entry.factory;
            entry.factory = factory;
            for( ThemeMapListener listener : listeners()){
                listener.changed( this, index, key, old, factory );
            }
        }
View Full Code Here

Examples of org.wicketstuff.theme.standard.ThemeFactory

  }
 
  @Override
  protected IThemeFactory getThemeFactory()
  {
    return new ThemeFactory();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.