Package com.salas.bb.views.themes

Examples of com.salas.bb.views.themes.ITheme


        // restore theme
        String defaultThemeName = ResourceUtils.getString(RESOURCE_DEFAULT_THEME_NAME);
        String themeName = preferences.get(RenderingSettingsNames.THEME, defaultThemeName);
       
        ITheme restoredTheme = ThemeSupport.getThemeByName(themeName);

        if (LOG.isLoggable(Level.FINE))
        {
            LOG.fine("Default theme name : " + defaultThemeName);
            LOG.fine("Stored theme name  : " + themeName);
            LOG.fine("Loaded theme name  : " + restoredTheme.getName());
        }

        if (restoredTheme == null) restoredTheme = ThemeSupport.getThemeByName(defaultThemeName);
        setTheme(restoredTheme);
       
View Full Code Here


     *
     * @return theme.
     */
    public ITheme getTheme()
    {
        ITheme theTheme = theme;

        if (theTheme == null && parent != null) theTheme = parent.getTheme();

        return theTheme;
    }
View Full Code Here

     */
    public void setTheme(ITheme aTheme)
    {
        if (aTheme == null) throw new IllegalArgumentException(Strings.error("unspecified.theme"));

        ITheme oldTheme = theme;
        theme = aTheme;
        firePropertyChange(RenderingSettingsNames.THEME, oldTheme, theme);
    }
View Full Code Here

TOP

Related Classes of com.salas.bb.views.themes.ITheme

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.