|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.ui.UIWriterContext
class UIWriterContext
| Field Summary | |
|---|---|
private static EnumMap<Pad,String> |
charMap
|
private InvocationContext |
context
. |
(package private) String |
leftLinePadding
. |
(package private) boolean |
needLF
. |
(package private) boolean |
needLine
. |
private static EnumMap<Pad,Pad> |
nextMap
|
(package private) Style |
padStyle
. |
(package private) UIWriterContext |
parentUIContext
. |
(package private) String |
rightLinePadding
. |
(package private) ArrayList<Pad> |
stack
. |
| Constructor Summary | |
|---|---|
UIWriterContext(InvocationContext context)
|
|
UIWriterContext(UIWriterContext parentUIContext)
|
|
| Method Summary | |
|---|---|
int |
getConsoleWidth()
|
InvocationContext |
getInvocationContext()
|
void |
lineFeed()
|
void |
pad(ShellWriter writer)
|
int |
padWidth()
|
void |
printLine(int length,
ShellWriter writer)
|
void |
text(CharSequence csq,
int off,
int end)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final ArrayList<Pad> stack
Style padStyle
boolean needLF
boolean needLine
private final InvocationContext context
String leftLinePadding
String rightLinePadding
UIWriterContext parentUIContext
private static EnumMap<Pad,String> charMap
private static EnumMap<Pad,Pad> nextMap
| Constructor Detail |
|---|
UIWriterContext(InvocationContext context)
UIWriterContext(UIWriterContext parentUIContext)
| Method Detail |
|---|
public void pad(ShellWriter writer)
throws IOException
pad in interface ShellWriterContextIOException
public void printLine(int length,
ShellWriter writer)
throws IOException
IOException
public void text(CharSequence csq,
int off,
int end)
text in interface ShellWriterContextpublic void lineFeed()
lineFeed in interface ShellWriterContextpublic int getConsoleWidth()
public InvocationContext getInvocationContext()
public int padWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||