19 package org.turro.marker.construct;
21 import org.turro.elephant.context.IConstructor;
22 import org.turro.string.IntToWords;
33 Markers.
cards().cssClass(rowColumns()).start().render(constructor);
48 this.columns = columns;
54 for(
int chosen : choice) {
55 int max = chosen % count;
64 private boolean isNewRow() {
65 return current % columns == 1;
68 private boolean isRowEnd() {
69 return (current % columns) == 0 ||
73 private String rowColumns() {
74 int remaining = count - (current - 1);
75 return IntToWords.convert(remaining < columns ? remaining : columns);
81 return new Cards(constructor, count);
85 private final int count;
87 private int columns, current;
90 this.constructor = constructor;
Cards columns(int columns)
Cards decideColumns(int... choice)
static Cards getFor(IConstructor constructor, int count)