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 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

value

final String value
.


minWidth

final int minWidth
.


actualWidth

final int actualWidth
.


actualHeight

final int actualHeight
.


slicer

final CharSlicer slicer
.

Constructor Detail

LabelElement

public LabelElement(Object value,
                    int minWidth)
             throws IllegalArgumentException
Create a new label element

Parameters:
value - the label value
minWidth - the label minimum width
Throws:
IllegalArgumentException - if the minimum width is negative

LabelElement

public LabelElement(String value)

LabelElement

public LabelElement(String value,
                    int minWidth)

LabelElement

public LabelElement(Object value)
Method Detail

getValue

public String getValue()

renderer

public LineRenderer 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 © 2015 eXo Platform SAS. All Rights Reserved.