public class Jk2ColumnsText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<dev.jeka.core.api.text.Jk2ColumnsText.Row> |
rows |
Modifier and Type | Method and Description |
---|---|
Jk2ColumnsText |
add(java.lang.String left,
java.lang.Object right)
Adds a new row with the given left and right values.
|
static Jk2ColumnsText |
of(int leftSize,
int maxSize)
Creates a new instance of Jk2ColumnsText with the given left size and maximum size.
|
static Jk2ColumnsText |
of(int leftSize,
int maxSize,
java.lang.String delimiter)
Creates a new instance of Jk2ColumnsText with the given parameters.
|
Jk2ColumnsText |
setAdjustLeft(boolean adjustLeft)
Sets the adjustLeft flag.
|
Jk2ColumnsText |
setMarginLeft(java.lang.String marginLeft)
Sets the left margin for displaying the whole result;
|
java.lang.String |
toString() |
public static Jk2ColumnsText of(int leftSize, int maxSize, java.lang.String delimiter)
leftSize
- the size of the left columnmaxSize
- the maximum overall size of each row in the textdelimiter
- the delimiter used to separate the columnspublic static Jk2ColumnsText of(int leftSize, int maxSize)
of(int, int, String)
public Jk2ColumnsText add(java.lang.String left, java.lang.Object right)
public Jk2ColumnsText setAdjustLeft(boolean adjustLeft)
Initial value is true
public Jk2ColumnsText setMarginLeft(java.lang.String marginLeft)
marginLeft
- the left margin to setpublic java.lang.String toString()
toString
in class java.lang.Object