|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.ui.Element org.crsh.text.ui.LabelElement
public class LabelElement
Field Summary | |
---|---|
(package private) int |
actualHeight
. |
(package private) int |
actualWidth
. |
(package private) int |
minWidth
. |
(package private) CharSlicer |
slicer
. |
(package private) String |
value
. |
Constructor Summary | |
---|---|
LabelElement(Object value)
|
|
LabelElement(Object value,
int minWidth)
Create a new label element |
|
LabelElement(String value)
|
|
LabelElement(String value,
int minWidth)
|
Method Summary | |
---|---|
String |
getValue()
|
LineRenderer |
renderer()
|
LabelElement |
style(Style.Composite style)
|
String |
toString()
|
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 String value
final int minWidth
final int actualWidth
final int actualHeight
final CharSlicer slicer
Constructor Detail |
---|
public LabelElement(Object value, int minWidth) throws IllegalArgumentException
value
- the label valueminWidth
- the label minimum width
IllegalArgumentException
- if the minimum width is negativepublic LabelElement(String value)
public LabelElement(String value, int minWidth)
public LabelElement(Object value)
Method Detail |
---|
public String getValue()
public LineRenderer renderer()
renderer
in class Element
public String toString()
toString
in class Object
public LabelElement style(Style.Composite style)
style
in class Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |