|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.slashie.libjcsi.textcomponents.TextComponent
net.slashie.libjcsi.textcomponents.TextInformBox
public class TextInformBox
Represents a text box which can be updated to show a new text along with the old one until it is full, in which case it shows a [More] prompt, waits for a player keypress, erases it selfs and continues exhibiting the same behaviour.
| Constructor Summary | |
|---|---|
TextInformBox(ConsoleSystemInterface si)
Creates new TextInformBox tied to a specific interface. |
|
| Method Summary | |
|---|---|
void |
addText(java.lang.String text)
Allows text to be added to the box |
void |
clear()
Erases content but leaves box |
void |
draw()
Outputs the box to the interface. |
void |
setHeight(int value)
|
void |
setText(java.lang.String text)
Erases current content and then sets content |
| Methods inherited from class net.slashie.libjcsi.textcomponents.TextComponent |
|---|
clearBox, drawBorder, getForeColor, getHeight, getWidth, hasBorder, setBorder, setBorderColor, setBorderColor, setBounds, setForeColor, setForeColor, setPosition, setWidth |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextInformBox(ConsoleSystemInterface si)
si - interface to attach to| Method Detail |
|---|
public void setHeight(int value)
setHeight in class TextComponentvalue - vertical height desiredpublic void draw()
draw in class TextComponentpublic void addText(java.lang.String text)
text - content to be addedpublic void setText(java.lang.String text)
text - new contentpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||