Forge - Parent 1.2.3-SNAPSHOT

org.jboss.forge.shell.util
Class ColumnPrinter

java.lang.Object
  extended by org.jboss.forge.shell.util.ColumnPrinter

public class ColumnPrinter
extends Object

Displays output in Shell in columns

Author:
George Gastaldi

Nested Class Summary
protected static interface ColumnPrinter.FormatCallback
           
protected static class ColumnPrinter.OutputAttributes
           
 
Constructor Summary
ColumnPrinter()
           
 
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
 

Constructor Detail

ColumnPrinter

public ColumnPrinter()
Method Detail

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)

Forge - Parent 1.2.3-SNAPSHOT

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.