Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbsoluteWidthSizeConstraints - Class in org.springframework.shell.table
-
A cell sizing strategy that forces a fixed width, expressed in number of characters.
- AbsoluteWidthSizeConstraints(int) - Constructor for class org.springframework.shell.table.AbsoluteWidthSizeConstraints
- addAligner(Aligner) - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- addFormatter(Formatter) - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- addFullBorder(BorderStyle) - Method in class org.springframework.shell.table.TableBuilder
-
Set a border around each and every cell of the table.
- addHeaderAndVerticalsBorders(BorderStyle) - Method in class org.springframework.shell.table.TableBuilder
-
Set a border on the outline of the whole table, around the first row and draw vertical lines around each column.
- addHeaderBorder(BorderStyle) - Method in class org.springframework.shell.table.TableBuilder
-
Set a border on the outline of the whole table, as well as around the first row.
- addInnerBorder(BorderStyle) - Method in class org.springframework.shell.table.TableBuilder
-
Set a border on the inner verticals and horizontals of the table, but not on the outline.
- addOutlineBorder(BorderStyle) - Method in class org.springframework.shell.table.TableBuilder
-
Set a border on the outline of the whole table.
- addRow() - Method in class org.springframework.shell.table.TableModelBuilder
- addSizer(SizeConstraints) - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- addValue(T) - Method in class org.springframework.shell.table.TableModelBuilder
- addWrapper(TextWrapper) - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- air - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses space characters, giving some space between columns.
- align(String[], int, int) - Method in interface org.springframework.shell.table.Aligner
-
Perform text alignment, returning a String array that MUST contain
cellHeightlines, each of which MUST becellWidthchars in length. - align(String[], int, int) - Method in class org.springframework.shell.table.DebugAligner
- align(String[], int, int) - Method in class org.springframework.shell.table.KeyValueHorizontalAligner
- align(String[], int, int) - Method in enum class org.springframework.shell.table.SimpleHorizontalAligner
- align(String[], int, int) - Method in enum class org.springframework.shell.table.SimpleVerticalAligner
- Aligner - Interface in org.springframework.shell.table
-
A strategy interface for performing text alignment.
- and() - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- ArrayTableModel - Class in org.springframework.shell.table
-
A TableModel backed by a row-first array.
- ArrayTableModel(Object[][]) - Constructor for class org.springframework.shell.table.ArrayTableModel
- at(int, int) - Static method in class org.springframework.shell.table.CellMatchers
- AutoSizeConstraints - Class in org.springframework.shell.table
-
A SizeConstraints implementation that splits lines at space boundaries and returns an extent with minimal and maximal width requirements.
- AutoSizeConstraints() - Constructor for class org.springframework.shell.table.AutoSizeConstraints
B
- BeanListTableModel<T> - Class in org.springframework.shell.table
-
A table model that is backed by a list of beans.
- BeanListTableModel(Class<T>, Iterable<T>) - Constructor for class org.springframework.shell.table.BeanListTableModel
- BeanListTableModel(Iterable<T>, String...) - Constructor for class org.springframework.shell.table.BeanListTableModel
- BeanListTableModel(Iterable<T>, LinkedHashMap<String, Object>) - Constructor for class org.springframework.shell.table.BeanListTableModel
- BorderSpecification - Class in org.springframework.shell.table
-
This represents a directive to set some borders on cells of a table.
- BorderStyle - Enum Class in org.springframework.shell.table
-
Provides support for different styles of borders, using simple or fancy ascii art.
- bottom - Enum constant in enum class org.springframework.shell.table.SimpleVerticalAligner
- BOTTOM - Static variable in class org.springframework.shell.table.BorderSpecification
- build() - Method in class org.springframework.shell.table.TableBuilder
- build() - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- build() - Method in class org.springframework.shell.table.TableModelBuilder
C
- CellMatcher - Interface in org.springframework.shell.table
-
This is used to specify where some components of a Table may be applied.
- CellMatchers - Class in org.springframework.shell.table
-
Contains factory methods for commonly used
CellMatchers. - CellMatchers() - Constructor for class org.springframework.shell.table.CellMatchers
- center - Enum constant in enum class org.springframework.shell.table.SimpleHorizontalAligner
- column(int) - Static method in class org.springframework.shell.table.CellMatchers
- configureKeyValueRendering(TableBuilder, String) - Static method in class org.springframework.shell.table.Tables
-
Install all the necessary formatters, aligners, etc for key-value rendering of Maps.
D
- DebugAligner - Class in org.springframework.shell.table
-
A decorator Aligner that checks the Aligner invariants contract, useful for debugging.
- DebugAligner(Aligner) - Constructor for class org.springframework.shell.table.DebugAligner
- DebugTextWrapper - Class in org.springframework.shell.table
-
A TextWrapper that delegates to another but makes sure that the contract is not violated.
- DebugTextWrapper(TextWrapper) - Constructor for class org.springframework.shell.table.DebugTextWrapper
- DEFAULT_ROW_CAPACITY - Static variable in class org.springframework.shell.table.TableModelBuilder
- DefaultFormatter - Class in org.springframework.shell.table
-
A very simple formatter that uses
Object.toString()and splits on newlines. - DefaultFormatter() - Constructor for class org.springframework.shell.table.DefaultFormatter
- DelimiterTextWrapper - Class in org.springframework.shell.table
-
A Text wrapper that wraps at "word" boundaries.
- DelimiterTextWrapper() - Constructor for class org.springframework.shell.table.DelimiterTextWrapper
- DelimiterTextWrapper(char) - Constructor for class org.springframework.shell.table.DelimiterTextWrapper
E
- Extent(int, int) - Constructor for class org.springframework.shell.table.SizeConstraints.Extent
F
- fancy_double - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double-light box drawing characters from the unicode set.
- fancy_heavy - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated fat box drawing characters from the unicode set.
- fancy_heavy_double_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash heavy box drawing characters from the unicode set.
- fancy_heavy_quadruple_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash heavy box drawing characters from the unicode set.
- fancy_heavy_triple_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash heavy box drawing characters from the unicode set.
- fancy_light - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated light box drawing characters from the unicode set.
- fancy_light_double_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash light box drawing characters from the unicode set.
- fancy_light_quadruple_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash light box drawing characters from the unicode set.
- fancy_light_triple_dash - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A border style that uses dedicated double dash light box drawing characters from the unicode set.
- format(Object) - Method in class org.springframework.shell.table.DefaultFormatter
- format(Object) - Method in interface org.springframework.shell.table.Formatter
- format(Object) - Method in class org.springframework.shell.table.MapFormatter
- Formatter - Interface in org.springframework.shell.table
-
A Formatter is responsible for the initial rendering of a value to lines of text.
- fromRowColumn(int, int) - Method in class org.springframework.shell.table.TableBuilder.BorderStub
- fromTopLeft() - Method in class org.springframework.shell.table.TableBuilder.BorderStub
- FULL - Static variable in class org.springframework.shell.table.BorderSpecification
G
- getColumnCount() - Method in class org.springframework.shell.table.ArrayTableModel
- getColumnCount() - Method in class org.springframework.shell.table.BeanListTableModel
- getColumnCount() - Method in class org.springframework.shell.table.TableModel
- getModel() - Method in class org.springframework.shell.table.Table
- getModel() - Method in class org.springframework.shell.table.TableBuilder
- getRowCount() - Method in class org.springframework.shell.table.ArrayTableModel
- getRowCount() - Method in class org.springframework.shell.table.BeanListTableModel
- getRowCount() - Method in class org.springframework.shell.table.TableModel
- getValue(int, int) - Method in class org.springframework.shell.table.ArrayTableModel
- getValue(int, int) - Method in class org.springframework.shell.table.BeanListTableModel
- getValue(int, int) - Method in class org.springframework.shell.table.TableModel
H
- horizontalGlyph() - Method in enum class org.springframework.shell.table.BorderStyle
I
- INNER - Static variable in class org.springframework.shell.table.BorderSpecification
- INNER_HORIZONTAL - Static variable in class org.springframework.shell.table.BorderSpecification
- INNER_VERTICAL - Static variable in class org.springframework.shell.table.BorderSpecification
- intersection(char, char, char, char) - Static method in enum class org.springframework.shell.table.BorderStyle
K
- KeyValueHorizontalAligner - Class in org.springframework.shell.table
-
A text alignment strategy that aligns text horizontally so that all instances of some special character(s) line up perfectly in a column.
- KeyValueHorizontalAligner(String) - Constructor for class org.springframework.shell.table.KeyValueHorizontalAligner
- KeyValueSizeConstraints - Class in org.springframework.shell.table
-
A SizeConstraints implementation that is tailored to rendering a series of key = value pairs.
- KeyValueSizeConstraints(String) - Constructor for class org.springframework.shell.table.KeyValueSizeConstraints
- KeyValueTextWrapper - Class in org.springframework.shell.table
-
A TextWrapper implementation tailored for key-value rendering (working in concert with
KeyValueSizeConstraints,KeyValueHorizontalAligner), that tries its best to vertically align some delimiter character (default '='). - KeyValueTextWrapper() - Constructor for class org.springframework.shell.table.KeyValueTextWrapper
- KeyValueTextWrapper(String) - Constructor for class org.springframework.shell.table.KeyValueTextWrapper
L
- left - Enum constant in enum class org.springframework.shell.table.SimpleHorizontalAligner
- LEFT - Static variable in class org.springframework.shell.table.BorderSpecification
M
- MapFormatter - Class in org.springframework.shell.table
-
A formatter suited for key-value pairs, that renders each mapping on a new line.
- MapFormatter(String) - Constructor for class org.springframework.shell.table.MapFormatter
- matches(int, int, TableModel) - Method in interface org.springframework.shell.table.CellMatcher
- max - Variable in class org.springframework.shell.table.SizeConstraints.Extent
- middle - Enum constant in enum class org.springframework.shell.table.SimpleVerticalAligner
- min - Variable in class org.springframework.shell.table.SizeConstraints.Extent
N
- NONE - Static variable in class org.springframework.shell.table.BorderSpecification
- NONE - Static variable in enum class org.springframework.shell.table.BorderStyle
- NoWrapSizeConstraints - Class in org.springframework.shell.table
-
A sizing strategy that will impose the longest line width on cells.
- NoWrapSizeConstraints() - Constructor for class org.springframework.shell.table.NoWrapSizeConstraints
O
- ofType(Class<?>) - Static method in class org.springframework.shell.table.CellMatchers
- oldschool - Enum constant in enum class org.springframework.shell.table.BorderStyle
-
A simplistic style, using characters that ought to always be available in all systems (pipe and minus).
- on(CellMatcher) - Method in class org.springframework.shell.table.TableBuilder.CellMatcherStub
- on(CellMatcher) - Method in class org.springframework.shell.table.TableBuilder
- org.springframework.shell - package org.springframework.shell
- org.springframework.shell.table - package org.springframework.shell.table
-
Allows the creation of tables that can be rendered using ASCII art.
- OUTLINE - Static variable in class org.springframework.shell.table.BorderSpecification
P
- paintBorder(BorderStyle, int) - Method in class org.springframework.shell.table.TableBuilder
R
- render(int) - Method in class org.springframework.shell.table.Table
- render(int) - Method in interface org.springframework.shell.TerminalSizeAware
- right - Enum constant in enum class org.springframework.shell.table.SimpleHorizontalAligner
- RIGHT - Static variable in class org.springframework.shell.table.BorderSpecification
- row(int) - Static method in class org.springframework.shell.table.CellMatchers
S
- SimpleHorizontalAligner - Enum Class in org.springframework.shell.table
-
An horizontal alignment strategy that allows alignment to the left, center or right.
- SimpleVerticalAligner - Enum Class in org.springframework.shell.table
-
Alignment strategy that allows simple vertical alignment to top, middle or bottom.
- SizeConstraints - Interface in org.springframework.shell.table
-
Strategy for computing the dimensions of a table cell.
- SizeConstraints.Extent - Class in org.springframework.shell.table
-
Holds both a minimum and maximum width.
T
- table() - Static method in class org.springframework.shell.table.CellMatchers
- Table - Class in org.springframework.shell.table
-
This is the central API for table rendering.
- TableBuilder - Class in org.springframework.shell.table
-
A builder class to incrementally configure a Table.
- TableBuilder(TableModel) - Constructor for class org.springframework.shell.table.TableBuilder
-
Construct a table with the given model.
- TableBuilder.BorderStub - Class in org.springframework.shell.table
- TableBuilder.BorderStub.TopLeft - Class in org.springframework.shell.table
- TableBuilder.CellMatcherStub - Class in org.springframework.shell.table
- TableModel - Class in org.springframework.shell.table
-
Abstracts away the contract a
Tablewill use to retrieve tabular data. - TableModel() - Constructor for class org.springframework.shell.table.TableModel
- TableModelBuilder<T> - Class in org.springframework.shell.table
-
Helper class to build a TableModel incrementally.
- TableModelBuilder() - Constructor for class org.springframework.shell.table.TableModelBuilder
- Tables - Class in org.springframework.shell.table
-
Utility class used to create and configure typical Tables.
- Tables() - Constructor for class org.springframework.shell.table.Tables
- TerminalSizeAware - Interface in org.springframework.shell
-
To be implemented by command result objects that can adapt to the terminal size when they are being rendered.
- TextWrapper - Interface in org.springframework.shell.table
-
A strategy for applying text wrapping/cropping given a cell width.
- toBottomRight() - Method in class org.springframework.shell.table.TableBuilder.BorderStub.TopLeft
- top - Enum constant in enum class org.springframework.shell.table.SimpleVerticalAligner
- TOP - Static variable in class org.springframework.shell.table.BorderSpecification
- toRowColumn(int, int) - Method in class org.springframework.shell.table.TableBuilder.BorderStub.TopLeft
- toString() - Method in class org.springframework.shell.table.BorderSpecification
- transpose() - Method in class org.springframework.shell.table.TableModel
V
- valueOf(String) - Static method in enum class org.springframework.shell.table.BorderStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.shell.table.SimpleHorizontalAligner
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.shell.table.SimpleVerticalAligner
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.shell.table.BorderStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.shell.table.SimpleHorizontalAligner
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.shell.table.SimpleVerticalAligner
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verticalGlyph() - Method in enum class org.springframework.shell.table.BorderStyle
W
- width(String[], int, int) - Method in class org.springframework.shell.table.AbsoluteWidthSizeConstraints
- width(String[], int, int) - Method in class org.springframework.shell.table.AutoSizeConstraints
- width(String[], int, int) - Method in class org.springframework.shell.table.KeyValueSizeConstraints
- width(String[], int, int) - Method in class org.springframework.shell.table.NoWrapSizeConstraints
- width(String[], int, int) - Method in interface org.springframework.shell.table.SizeConstraints
- wrap(String[], int) - Method in class org.springframework.shell.table.DebugTextWrapper
- wrap(String[], int) - Method in class org.springframework.shell.table.DelimiterTextWrapper
- wrap(String[], int) - Method in class org.springframework.shell.table.KeyValueTextWrapper
- wrap(String[], int) - Method in interface org.springframework.shell.table.TextWrapper
All Classes and Interfaces|All Packages|Constant Field Values