org.crsh.text.ui
Class LabelElement

java.lang.Object
  extended by org.crsh.text.ui.Element
      extended by org.crsh.text.ui.LabelElement

public class LabelElement
extends Element


Field Summary
(package private)  int minWidth
          .
(package private)  String value
          .
(package private)  int width
          .
 
Fields inherited from class org.crsh.text.ui.Element
parent
 
Constructor Summary
LabelElement(Object value)
           
LabelElement(Object value, int minWidth)
           
LabelElement(String value)
           
LabelElement(String value, int minWidth)
           
 
Method Summary
 String getValue()
           
 Renderer renderer()
           
 LabelElement style(Style.Composite style)
           
 String toString()
           
private static int width(String s, int index)
           
 
Methods inherited from class org.crsh.text.ui.Element
getStyle, header, label, row, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

final String value
.


minWidth

final int minWidth
.


width

final int width
.

Constructor Detail

LabelElement

public LabelElement(String value,
                    int minWidth)

LabelElement

public LabelElement(String value)

LabelElement

public LabelElement(Object value,
                    int minWidth)

LabelElement

public LabelElement(Object value)
Method Detail

width

private static int width(String s,
                         int index)

getValue

public String getValue()

renderer

public Renderer renderer()
Specified by:
renderer in class Element

toString

public String toString()
Overrides:
toString in class Object

style

public LabelElement style(Style.Composite style)
Overrides:
style in class Element


Copyright © 2012 eXo Platform SAS. All Rights Reserved.