org.crsh.shell.ui
Class LabelElement

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

public class LabelElement
extends Element

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  String value
          .
 
Constructor Summary
LabelElement(Object value)
           
LabelElement(String value)
           
 
Method Summary
(package private)  void doPrint(UIWriterContext ctx, ShellWriter writer)
           
 String getValue()
           
 String toString()
           
(package private)  int width()
           
 
Methods inherited from class org.crsh.shell.ui.Element
getBackground, getDecoration, getForeground, getParent, print, print, setBackground, setDecoration, setForeground, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private final String value
.

Constructor Detail

LabelElement

public LabelElement(String value)

LabelElement

public LabelElement(Object value)
Method Detail

getValue

public String getValue()

doPrint

void doPrint(UIWriterContext ctx,
             ShellWriter writer)
       throws IOException
Specified by:
doPrint in class Element
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

width

int width()
Specified by:
width in class Element


Copyright © 2012 eXo Platform SAS. All Rights Reserved.