org.crsh.text.ui
Class TextElement
java.lang.Object
org.crsh.text.ui.Element
org.crsh.text.ui.TextElement
-
public class TextElement
- extends Element
-
Field Summary |
(package private) int |
minWidth
. |
(package private) Iterable<Object> |
stream
. |
(package private) int |
width
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
stream
final Iterable<Object> stream
-
.
minWidth
final int minWidth
-
.
width
final int width
-
.
TextElement
public TextElement(Iterable<Object> stream,
int minWidth)
TextElement
public TextElement(Iterable<Object> stream)
width
private static int width(int width,
Iterator<Object> stream,
CharSequence current,
Integer from)
-
renderer
public LineRenderer renderer()
-
- Specified by:
renderer
in class Element
-
toString
public String toString()
-
- Overrides:
toString
in class Object
-
style
public TextElement style(Style.Composite style)
-
- Overrides:
style
in class Element
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.