Package org.qdl_lang.variables
Class FormattedStem
- java.lang.Object
-
- org.qdl_lang.variables.FormattedStems<String>
-
- org.qdl_lang.variables.FormattedStem
-
public class FormattedStem extends FormattedStems<String>
Created by Jeff Gaynor
on 9/16/21 at 6:45 AM
-
-
Constructor Summary
Constructors Constructor Description FormattedStem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringformatEntry(Object x)List<String>formatRow(int rowNumber, int maxColWidth)Takes a row and creates the individual elements in it.Stringget(int row, int column)static voidmain(String[] args)intmaxLength()intminLength()static FormattedStempopulateTest(int rowCount, int colCount)voidprint(PrintStream printStream, int offset)Stringput(int rowNumber, int colNumber, Object object)returns what the formatted object is.-
Methods inherited from class org.qdl_lang.variables.FormattedStems
getPlaceholder, getRow, hasRow
-
-
-
-
Method Detail
-
formatEntry
protected String formatEntry(Object x)
- Overrides:
formatEntryin classFormattedStems<String>
-
put
public String put(int rowNumber, int colNumber, Object object)
Description copied from class:FormattedStemsreturns what the formatted object is.- Overrides:
putin classFormattedStems<String>- Returns:
-
get
public String get(int row, int column)
- Overrides:
getin classFormattedStems<String>
-
maxLength
public int maxLength()
-
minLength
public int minLength()
-
formatRow
public List<String> formatRow(int rowNumber, int maxColWidth)
Takes a row and creates the individual elements in it. These then can be just glommed together to make the whole row with whatever spacing or indenting that is needed.- Parameters:
rowNumber-- Returns:
-
print
public void print(PrintStream printStream, int offset)
-
main
public static void main(String[] args)
-
populateTest
public static FormattedStem populateTest(int rowCount, int colCount)
-
-