public static class TablePrinter.Column extends Object
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(TablePrinter.TableWriter out)
Prints the header value
|
void |
printValue(TablePrinter.TableWriter out,
String value)
Prints a value
|
void |
setHeaderFlags(String headerFlags) |
void |
setRowFlags(String rowFlags) |
void |
setWidth(int width) |
public 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(TablePrinter.TableWriter out)
public void printValue(TablePrinter.TableWriter out, String value)
Copyright © 2011–2016 Red Hat. All rights reserved.