315316317318319320321322
protected static void applyCssVisibility(final Component component, final boolean visible) { if(component == null) { return; } AttributeModifier modifier = visible ? new CssClassRemover(INVISIBLE_CLASS) : new CssClassAppender(INVISIBLE_CLASS); component.add(modifier); }