public void setThemeIfCurrentEmpty ( String themeName ) { if ( themeName == null || themeName . isEmpty ( ) ) return ; String theme = getTheme ( ) ; if ( theme == null || theme . isEmpty ( ) ) { setTheme ( themeName ) ; } }
Sets new theme only in case if currently no theme is defined for this widget .