|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.ui.Element
org.crsh.text.ui.TextElement
public class TextElement
| Field Summary | |
|---|---|
(package private) int |
minWidth
. |
(package private) Iterable<Chunk> |
stream
. |
(package private) int |
width
. |
| Constructor Summary | |
|---|---|
TextElement(Iterable<Chunk> stream)
|
|
TextElement(Iterable<Chunk> stream,
int minWidth)
|
|
| Method Summary | |
|---|---|
Renderer |
renderer()
|
TextElement |
style(Style.Composite style)
|
String |
toString()
|
private static int |
width(int width,
Iterator<Chunk> stream,
Text current,
Integer from)
|
| Methods inherited from class org.crsh.text.ui.Element |
|---|
getStyle, header, label, render, row, setStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final Iterable<Chunk> stream
final int minWidth
final int width
| Constructor Detail |
|---|
public TextElement(Iterable<Chunk> stream,
int minWidth)
public TextElement(Iterable<Chunk> stream)
| Method Detail |
|---|
private static int width(int width,
Iterator<Chunk> stream,
Text current,
Integer from)
public Renderer renderer()
renderer in class Elementpublic String toString()
toString in class Objectpublic TextElement style(Style.Composite style)
style in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||