public static class TablePrinter.Column extends Object
| Constructor and Description |
|---|
TablePrinter.Column(String header) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureWidth(int length)
Ensures the column is wide enough for the given value
|
String |
getHeader() |
String |
getHeaderFlags() |
String |
getRowFlags() |
int |
getWidth() |
void |
printHeader(PrintStream out)
Prints the header value
|
void |
printValue(PrintStream out,
String value)
Prints a value
|
void |
setHeaderFlags(String headerFlags) |
void |
setRowFlags(String rowFlags) |
void |
setWidth(int width) |
public TablePrinter.Column(String header)
public String getHeader()
public String getHeaderFlags()
public void setHeaderFlags(String headerFlags)
public String getRowFlags()
public void setRowFlags(String rowFlags)
public int getWidth()
public void setWidth(int width)
public void ensureWidth(int length)
public void printHeader(PrintStream out)
public void printValue(PrintStream out, String value)
Copyright © 2011–2014 Red Hat. All rights reserved.