public class DefaultTableFormat extends DefaultFormatBase<net.thevpc.nuts.NutsTableFormat> implements net.thevpc.nuts.NutsTableFormat
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultTableFormat.Bounds |
static class |
DefaultTableFormat.DefaultCell |
static class |
DefaultTableFormat.Interval |
static class |
DefaultTableFormat.Pos |
static class |
DefaultTableFormat.RenderedCell |
static class |
DefaultTableFormat.Row |
static class |
DefaultTableFormat.Widths |
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.NutsTableBordersFormat |
FANCY_COLUMNS_BORDER |
static net.thevpc.nuts.NutsTableBordersFormat |
FANCY_ROWS_BORDER |
static net.thevpc.nuts.NutsTableBordersFormat |
NO_BORDER |
static net.thevpc.nuts.NutsTableBordersFormat |
SIMPLE_BORDER |
static net.thevpc.nuts.NutsTableBordersFormat |
SPACE_BORDER |
static net.thevpc.nuts.NutsTableBordersFormat |
UNICODE_BORDER |
| Constructor and Description |
|---|
DefaultTableFormat(net.thevpc.nuts.NutsWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine) |
net.thevpc.nuts.NutsMutableTableModel |
createModel() |
static void |
formatAndHorizontalAlign(StringBuilder sb,
net.thevpc.nuts.NutsPositionType a,
int columns,
net.thevpc.nuts.NutsTextManager tf,
net.thevpc.nuts.NutsSession session) |
static Set<String> |
getAvailableTableBorders() |
net.thevpc.nuts.NutsTableBordersFormat |
getBorder() |
net.thevpc.nuts.NutsTableModel |
getModel() |
Object |
getValue() |
Boolean |
getVisibleColumn(int col) |
boolean |
isVisibleHeader() |
static net.thevpc.nuts.NutsTableBordersFormat |
parseTableBorders(String borderName) |
void |
print(net.thevpc.nuts.NutsPrintStream w) |
void |
resolveColumns(Object obj,
LinkedHashSet<String> columns) |
DefaultTableFormat |
setBorder(net.thevpc.nuts.NutsTableBordersFormat border) |
net.thevpc.nuts.NutsTableFormat |
setBorder(String borderName) |
net.thevpc.nuts.NutsTableFormat |
setCellFormat(net.thevpc.nuts.NutsTableCellFormat formatter) |
net.thevpc.nuts.NutsTableFormat |
setHeaderFormat(net.thevpc.nuts.NutsTableCellFormat formatter) |
net.thevpc.nuts.NutsTableFormat |
setValue(Object value) |
DefaultTableFormat |
setVisibleColumn(int col,
Boolean visible) |
DefaultTableFormat |
setVisibleHeader(boolean visibleHeader) |
String |
toString() |
format, getValidPrintStream, getValidPrintStream, print, print, print, print, print, print, println, println, println, println, println, println, printlncheckSession, configure, configure, getName, getSession, getWorkspace, isNtf, setNtf, setSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static net.thevpc.nuts.NutsTableBordersFormat NO_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat UNICODE_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat SIMPLE_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat FANCY_ROWS_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat SPACE_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat FANCY_COLUMNS_BORDER
public static net.thevpc.nuts.NutsTableBordersFormat parseTableBorders(String borderName)
public static void formatAndHorizontalAlign(StringBuilder sb, net.thevpc.nuts.NutsPositionType a, int columns, net.thevpc.nuts.NutsTextManager tf, net.thevpc.nuts.NutsSession session)
public boolean isVisibleHeader()
isVisibleHeader in interface net.thevpc.nuts.NutsTableFormatpublic DefaultTableFormat setVisibleHeader(boolean visibleHeader)
setVisibleHeader in interface net.thevpc.nuts.NutsTableFormatpublic net.thevpc.nuts.NutsTableBordersFormat getBorder()
getBorder in interface net.thevpc.nuts.NutsTableFormatpublic DefaultTableFormat setBorder(net.thevpc.nuts.NutsTableBordersFormat border)
setBorder in interface net.thevpc.nuts.NutsTableFormatpublic DefaultTableFormat setVisibleColumn(int col, Boolean visible)
setVisibleColumn in interface net.thevpc.nuts.NutsTableFormatpublic Boolean getVisibleColumn(int col)
getVisibleColumn in interface net.thevpc.nuts.NutsTableFormatpublic net.thevpc.nuts.NutsTableFormat setBorder(String borderName)
setBorder in interface net.thevpc.nuts.NutsTableFormatpublic net.thevpc.nuts.NutsTableFormat setCellFormat(net.thevpc.nuts.NutsTableCellFormat formatter)
setCellFormat in interface net.thevpc.nuts.NutsTableFormatpublic net.thevpc.nuts.NutsTableModel getModel()
getModel in interface net.thevpc.nuts.NutsTableFormatpublic net.thevpc.nuts.NutsMutableTableModel createModel()
createModel in interface net.thevpc.nuts.NutsTableFormatpublic void print(net.thevpc.nuts.NutsPrintStream w)
print in interface net.thevpc.nuts.NutsFormatprint in class DefaultFormatBase<net.thevpc.nuts.NutsTableFormat>public String toString()
toString in interface net.thevpc.nuts.NutsFormattoString in class DefaultFormatBase<net.thevpc.nuts.NutsTableFormat>public net.thevpc.nuts.NutsTableFormat setHeaderFormat(net.thevpc.nuts.NutsTableCellFormat formatter)
public void resolveColumns(Object obj, LinkedHashSet<String> columns)
public Object getValue()
getValue in interface net.thevpc.nuts.NutsObjectFormatpublic net.thevpc.nuts.NutsTableFormat setValue(Object value)
setValue in interface net.thevpc.nuts.NutsObjectFormatsetValue in interface net.thevpc.nuts.NutsTableFormatpublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmdLine)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurableCopyright © 2021 vpc open source initiative. All rights reserved.