Пример #1
0
 public static void appendCssClassIfRequired(
     final MarkupContainer markupContainer, final BS3Element element) {
   final String cssClass = element.getCssClass();
   if (cssClass != null) {
     CssClassAppender.appendCssClassTo(markupContainer, cssClass);
   }
 }
Пример #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);
 }