Example #1
0
 public static void appendCssClassIfRequired(
     final MarkupContainer markupContainer, final BS3Element element) {
   final String cssClass = element.getCssClass();
   if (cssClass != null) {
     CssClassAppender.appendCssClassTo(markupContainer, cssClass);
   }
 }
Example #2
0
 public static void appendCssClass(
     final MarkupContainer markupContainer,
     final BS3ElementAbstract element,
     final String existingCssClass) {
   final String cssClass =
       existingCssClass
           + (!Strings.isNullOrEmpty(element.getCssClass()) ? (" " + element.getCssClass()) : "");
   CssClassAppender.appendCssClassTo(markupContainer, cssClass);
 }