|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.text.base.DefaultLineWrapper.CellBuffer
protected static class DefaultLineWrapper.CellBuffer
This inner class represents the buffer used for the text of a text-cell (a
line of content inside a column).
| Field Summary | |
|---|---|
private StringBuilder |
buffer
|
private int |
maxLength
|
private int |
rest
|
| Constructor Summary | |
|---|---|
protected |
DefaultLineWrapper.CellBuffer()
The constructor. |
| Method Summary | |
|---|---|
protected int |
append(char c)
|
protected int |
append(CharSequence text)
|
protected int |
append(CharSequence text,
int start,
int end)
|
int |
getMaxLength()
This method gets the maximum length of this buffer and the according cell. |
int |
getRest()
This method gets the rest, which is the number of characters available until the buffer has reached its end. |
protected int |
length()
This method gets the length of this
buffer. |
protected void |
reset(int maximumLength)
This method clears this buffer. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final StringBuilder buffer
append(CharSequence)private int maxLength
reset(int)private int rest
getRest()| Constructor Detail |
|---|
protected DefaultLineWrapper.CellBuffer()
| Method Detail |
|---|
protected void reset(int maximumLength)
maximumLength - is the maximum length this buffer should reach. It
should therefore be set to the space available for the current
cell (column-width potentially
reduced by indent, etc.).public int getMaxLength()
reseted.
public int getRest()
append(CharSequence)protected int append(CharSequence text)
text - is the text to append.
rest.Appendable.append(CharSequence)
protected int append(CharSequence text,
int start,
int end)
text - is the CharSequence from which a
subsequence will be
appended.start - is the index of the first character in the subsequence.end - is the index of the character following the last character in
the subsequence.
rest.Appendable.append(CharSequence, int, int)protected int append(char c)
c - is the character to append.
rest.Appendable.append(char)protected int length()
length of this
buffer.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||