org.crsh.shell.ui
Class Element
java.lang.Object
org.crsh.shell.ui.Element
- Direct Known Subclasses:
- FormattingElement, LabelElement, RowElement, TableElement, TreeElement
public abstract class Element
- extends Object
- Version:
- $Revision$
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decoration
private Decoration decoration
- .
foreground
private Color foreground
- .
background
private Color background
- .
parent
private Element parent
- .
Element
public Element()
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.