|
||||||||||
| 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.TextBox
public class TextBox
Provides a means to put output into a specific box.
| Field Summary | |
|---|---|
static java.lang.String |
BEOL
|
| Constructor Summary | |
|---|---|
TextBox(ConsoleSystemInterface si)
Allows creation of a new TextBox |
|
| Method Summary | |
|---|---|
void |
clear()
Empties the box but does not erase the box itself. |
void |
draw()
Outputs box to interface. |
void |
setBorder(boolean value)
Allows for setting a border. |
void |
setHeight(int value)
|
void |
setText(java.lang.String text)
|
void |
setTitle(java.lang.String pTitle)
Sets the title of the box, displayed in the top border. |
| Methods inherited from class net.slashie.libjcsi.textcomponents.TextComponent |
|---|
clearBox, drawBorder, getForeColor, getHeight, getWidth, hasBorder, setBorderColor, setBorderColor, setBounds, setForeColor, setForeColor, setPosition, setWidth |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BEOL
| Constructor Detail |
|---|
public TextBox(ConsoleSystemInterface si)
si - the ConsoleSystemInterface that this box will be attached to| Method Detail |
|---|
public void setHeight(int value)
setHeight in class TextComponentvalue - The height of the boxpublic void setBorder(boolean value)
setBorder in class TextComponentvalue - true if border desiredpublic void draw()
draw in class TextComponentpublic void setText(java.lang.String text)
text - String that is the contents desired.public void setTitle(java.lang.String pTitle)
pTitle - title for boxpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||