org.crsh.shell.ui
Class Element

java.lang.Object
  extended by org.crsh.shell.ui.Element
Direct Known Subclasses:
FormattingElement, LabelElement, RowElement, TableElement, TreeElement

public abstract class Element
extends Object

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  Color background
          .
private  Decoration decoration
          .
private  Color foreground
          .
private  Element parent
          .
 
Constructor Summary
Element()
           
 
Method Summary
(package private) abstract  void doPrint(UIWriterContext ctx, ShellWriter writer)
           
 Color getBackground()
           
 Decoration getDecoration()
           
 Color getForeground()
           
 Element getParent()
           
private  boolean haveStyle()
           
 void print(ShellWriter writer, InvocationContext context)
           
 void print(UIWriterContext ctx, ShellWriter writer)
           
 void setBackground(Color background)
           
 void setDecoration(Decoration decoration)
           
 void setForeground(Color foreground)
           
 void setParent(Element parent)
           
(package private) abstract  int width()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoration

private Decoration decoration
.


foreground

private Color foreground
.


background

private Color background
.


parent

private Element parent
.

Constructor Detail

Element

public Element()
Method Detail

print

public void print(ShellWriter writer,
                  InvocationContext context)
           throws IOException
Throws:
IOException

print

public void print(UIWriterContext ctx,
                  ShellWriter writer)
           throws IOException
Throws:
IOException

doPrint

abstract void doPrint(UIWriterContext ctx,
                      ShellWriter writer)
               throws IOException
Throws:
IOException

width

abstract int width()

haveStyle

private boolean haveStyle()

getDecoration

public Decoration getDecoration()

getForeground

public Color getForeground()

getBackground

public Color getBackground()

setDecoration

public void setDecoration(Decoration decoration)

setForeground

public void setForeground(Color foreground)

setBackground

public void setBackground(Color background)

getParent

public Element getParent()

setParent

public void setParent(Element parent)


Copyright © 2012 eXo Platform SAS. All Rights Reserved.