public static void applyThemeClass(BaseUIComponent component, IThemeClass... themeClasses) {
        StringBuilder sb = new StringBuilder();

        for (IThemeClass themeClass : themeClasses) {
            String cls = themeClass == null ? null : themeClass.getThemeClass();

            if (cls != null) {
                sb.append(sb.length() > 0 ? " " : "").append(themeClass.getThemeClass());
            }
        }

        component.addClass(sb.toString());
    }
public static void applyThemeClass ( BaseUIComponent component , IThemeClass ... themeClasses ) { StringBuilder sb = new StringBuilder ( ) ; for ( IThemeClass themeClass : themeClasses ) { String cls = themeClass == null ? null : themeClass . getThemeClass ( ) ; if ( cls != null ) { sb . append ( sb . length ( ) > 0 ? " " : "" ) . append ( themeClass . getThemeClass ( ) ) ; } } component . addClass ( sb . toString ( ) ) ; }
Applies one or more theme classes to a component.

@param component Component to receive the theme classes.
@param themeClasses A list of theme classes to apply.