
org.nasdanika.html.bootstrap.impl.CellImpl Maven / Gradle / Ivy
package org.nasdanika.html.bootstrap.impl;
import org.nasdanika.html.bootstrap.BootstrapFactory;
import org.nasdanika.html.bootstrap.Color;
import org.nasdanika.html.bootstrap.RowContainer;
import org.nasdanika.html.bootstrap.RowContainer.Row.Cell;
class CellImpl extends WrappingBootstrapElementImpl implements RowContainer.Row.Cell {
CellImpl(BootstrapFactory factory, org.nasdanika.html.RowContainer.Row.Cell htmlCell) {
super(factory, htmlCell);
}
@Override
public Cell color(Color color) {
if (color != null && color.code != null) {
htmlElement.addClass("table-"+color.code);
}
return this;
}
@Override
public Cell backgroundColor(Color color) {
if (color != null && color.code != null) {
htmlElement.addClass("bg-"+color.code);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy