CellDef.trackWidth(..) 추가

master
mjkhan21 4 months ago
parent 674cb492eb
commit 2077a666ab

@ -22,8 +22,15 @@ public class CellDef {
/** 빈 셀 정보 */
public static CellDef EMPTY = new CellDef().setLabel("").setField("");
public static int[] intArray(int endExclusive) {
return IntStream.range(0, endExclusive).toArray();
/** ( < 1) .
* @param defs CellDef
* @return
*/
public static int[] trackWidth(List<CellDef> defs) {
return IntStream
.range(0, defs.size())
.filter(pos -> defs.get(pos).width < 1)
.toArray();
}
/**CellDef .

@ -60,6 +60,7 @@ public class Style {
* @return Style
*/
public Style width(int chars) {
if (chars > 0)
this.width = chars;
return this;
}

Loading…
Cancel
Save