Package net.minecraftforge.common.util
Class TextTable.Column
- java.lang.Object
-
- net.minecraftforge.common.util.TextTable.Column
-
- Enclosing class:
- TextTable
public static class TextTable.Column extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private TextTable.Alignment
alignment
private java.lang.String
header
private int
width
-
Constructor Summary
Constructors Constructor Description Column(java.lang.String header)
Column(java.lang.String header, TextTable.Alignment alignment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fit(java.lang.String value)
java.lang.String
format(java.lang.String value, java.lang.String padding)
java.lang.String
formatHeader(java.lang.String padding)
java.lang.String
getSeparator(char character)
int
getWidth()
void
resetWidth()
-
-
-
Field Detail
-
header
private java.lang.String header
-
width
private int width
-
alignment
private TextTable.Alignment alignment
-
-
Constructor Detail
-
Column
public Column(java.lang.String header)
-
Column
public Column(java.lang.String header, TextTable.Alignment alignment)
-
-
Method Detail
-
formatHeader
public java.lang.String formatHeader(java.lang.String padding)
-
format
public java.lang.String format(java.lang.String value, java.lang.String padding)
-
getSeparator
public java.lang.String getSeparator(char character)
-
fit
public void fit(java.lang.String value)
-
resetWidth
public void resetWidth()
-
getWidth
public int getWidth()
-
-