41 * |
41 * |
42 * @author Ing. František Kučera (frantovo.cz) |
42 * @author Ing. František Kučera (frantovo.cz) |
43 * @see TabularPrefetchingFormatter |
43 * @see TabularPrefetchingFormatter |
44 * @see TabularWrappingFormatter |
44 * @see TabularWrappingFormatter |
45 */ |
45 */ |
46 @PropertyDeclaration(name = COLORFUL, type = Boolean.class, description = COLORFUL_DESCRIPTION) |
46 @PropertyDeclaration(name = COLORFUL, defaultValue = "true", type = Boolean.class, description = COLORFUL_DESCRIPTION) |
47 @PropertyDeclaration(name = TabularFormatter.PROPERTY_ASCII, type = Boolean.class, description = "whether to use ASCII table borders instead of unicode ones") |
47 @PropertyDeclaration(name = TabularFormatter.PROPERTY_ASCII, defaultValue = "false", type = Boolean.class, description = "whether to use ASCII table borders instead of unicode ones") |
48 @PropertyDeclaration(name = TabularFormatter.PROPERTY_TRIM, type = Boolean.class, description = "whether to trim the values to fit the column width") |
48 @PropertyDeclaration(name = TabularFormatter.PROPERTY_TRIM, defaultValue = "false", type = Boolean.class, description = "whether to trim the values to fit the column width") |
49 public class TabularFormatter extends AbstractFormatter { |
49 public class TabularFormatter extends AbstractFormatter { |
50 |
50 |
51 public static final String NAME = "tabular"; // bash-completion:formatter |
51 public static final String NAME = "tabular"; // bash-completion:formatter |
52 private static final String HEADER_TYPE_PREFIX = " ("; |
52 private static final String HEADER_TYPE_PREFIX = " ("; |
53 private static final String HEADER_TYPE_SUFFIX = ")"; |
53 private static final String HEADER_TYPE_SUFFIX = ")"; |