org.crsh.shell.ui
Class FormattingElement

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

public class FormattingElement
extends Element

Author:
Alain Defrance

Field Summary
private  Style style
          .
 
Constructor Summary
FormattingElement(Style style)
           
 
Method Summary
(package private)  void doPrint(UIWriterContext ctx, ShellWriter writer)
           
(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, toString, wait, wait, wait
 

Field Detail

style

private Style style
.

Constructor Detail

FormattingElement

public FormattingElement(Style style)
                  throws NullPointerException
Throws:
NullPointerException
Method Detail

doPrint

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

width

int width()
Specified by:
width in class Element


Copyright © 2012 eXo Platform SAS. All Rights Reserved.