org.crsh.text.ui
Class RowRenderer

java.lang.Object
  extended by org.crsh.text.Renderer
      extended by org.crsh.text.ui.RowRenderer

 class RowRenderer
extends Renderer


Field Summary
private  List<Renderer> cols
          .
private  boolean header
          .
private  Style.Composite style
          .
 
Constructor Summary
RowRenderer(RowElement row)
           
 
Method Summary
 int getActualWidth()
          Returns the element actual width.
 List<Renderer> getCols()
           
 int getMinWidth()
          Returns the element minimum width.
(package private)  int getSize()
           
 boolean isHeader()
           
 LineReader renderer(int width)
          Create a renderer for the specified width or return null if the element does not provide any output.
 LineReader renderer(int[] widths, int width, Border border)
           
 LineReader renderer(int width, Border border)
           
 
Methods inherited from class org.crsh.text.Renderer
compose, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cols

private final List<Renderer> cols
.


style

private final Style.Composite style
.


header

private final boolean header
.

Constructor Detail

RowRenderer

RowRenderer(RowElement row)
Method Detail

isHeader

public boolean isHeader()

getSize

int getSize()

getCols

public List<Renderer> getCols()

renderer

public LineReader renderer(int width,
                           Border border)

renderer

public LineReader renderer(int[] widths,
                           int width,
                           Border border)

renderer

public LineReader renderer(int width)
Description copied from class: Renderer
Create a renderer for the specified width or return null if the element does not provide any output.

Specified by:
renderer in class Renderer
Parameters:
width - the width the width
Returns:
the renderer

getActualWidth

public int getActualWidth()
Description copied from class: Renderer
Returns the element actual width.

Specified by:
getActualWidth in class Renderer
Returns:
the actual width

getMinWidth

public int getMinWidth()
Description copied from class: Renderer
Returns the element minimum width.

Specified by:
getMinWidth in class Renderer
Returns:
the minimum width


Copyright © 2012 eXo Platform SAS. All Rights Reserved.