org.jboss.forge.shell.util
Class ColumnPrinter
java.lang.Object
org.jboss.forge.shell.util.ColumnPrinter
public class ColumnPrinter
- extends Object
Displays output in Shell in columns
- Author:
- George Gastaldi
Method Summary |
protected ColumnPrinter.OutputAttributes |
calculateOutputAttributes(List<String> rawList,
Shell shell)
|
protected ColumnPrinter.OutputAttributes |
calculateOutputAttributes(List<String> rawList,
Shell shell,
ColumnPrinter.OutputAttributes in)
|
protected String |
pad(int amount)
|
protected void |
printOutColumns(List<String> rawList,
ShellColor color,
ShellPrintWriter printWriter,
ColumnPrinter.OutputAttributes attributes,
ColumnPrinter.FormatCallback callback,
boolean sort)
|
void |
printOutColumns(List<String> rawList,
ShellPrintWriter out,
Shell shell,
boolean sort)
|
protected void |
printOutColumns(List<String> rawList,
ShellPrintWriter out,
Shell shell,
ColumnPrinter.FormatCallback callback,
boolean sort)
|
void |
printOutTables(List<String> list,
boolean[] columns,
Shell shell)
|
protected void |
printOutTables(List<String> list,
boolean[] columns,
ShellPrintWriter shell,
ColumnPrinter.FormatCallback callback)
|
void |
printOutTables(List<String> list,
int cols,
Shell shell)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnPrinter
public ColumnPrinter()
calculateOutputAttributes
protected ColumnPrinter.OutputAttributes calculateOutputAttributes(List<String> rawList,
Shell shell,
ColumnPrinter.OutputAttributes in)
calculateOutputAttributes
protected ColumnPrinter.OutputAttributes calculateOutputAttributes(List<String> rawList,
Shell shell)
printOutColumns
public void printOutColumns(List<String> rawList,
ShellPrintWriter out,
Shell shell,
boolean sort)
printOutColumns
protected void printOutColumns(List<String> rawList,
ShellPrintWriter out,
Shell shell,
ColumnPrinter.FormatCallback callback,
boolean sort)
printOutColumns
protected void printOutColumns(List<String> rawList,
ShellColor color,
ShellPrintWriter printWriter,
ColumnPrinter.OutputAttributes attributes,
ColumnPrinter.FormatCallback callback,
boolean sort)
printOutTables
public void printOutTables(List<String> list,
int cols,
Shell shell)
printOutTables
public void printOutTables(List<String> list,
boolean[] columns,
Shell shell)
printOutTables
protected void printOutTables(List<String> list,
boolean[] columns,
ShellPrintWriter shell,
ColumnPrinter.FormatCallback callback)
pad
protected String pad(int amount)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.