io.bdeploy.common.cli.data.DataTableCell Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Public API including dependencies, ready to be used for integrations and plugins.
The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy