
io.bdeploy.common.cli.data.DataTableCell Maven / Gradle / Ivy
package io.bdeploy.common.cli.data;
/**
* A single cell of a {@link DataTable}. A cell may span multiple columns. If word wrapping is enabled on the {@link DataTable},
* contents may span multiple rows.
*/
public class DataTableCell {
private final String data;
private int span;
public DataTableCell(Object data) {
this(data, 1);
}
public DataTableCell(Object data, int span) {
this.data = data != null ? data.toString() : "";
this.span = span;
}
public String getData() {
return data;
}
public int getSpan() {
return span;
}
void setSpan(int span) {
this.span = span;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy