net.slashie.libjcsi.textcomponents
Class DialogBox

java.lang.Object
  extended by net.slashie.libjcsi.textcomponents.TextComponent
      extended by net.slashie.libjcsi.textcomponents.TextBox
          extended by net.slashie.libjcsi.textcomponents.DialogBox
All Implemented Interfaces:
java.io.Serializable

public class DialogBox
extends TextBox

Allows easy creation of a self-sizing box to display information which needs answering input from the user.

Author:
Eben Howard
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.slashie.libjcsi.textcomponents.TextBox
BEOL
 
Constructor Summary
DialogBox(ConsoleSystemInterface si, int lines, java.lang.String args)
          Creates the box
 
Method Summary
 
Methods inherited from class net.slashie.libjcsi.textcomponents.TextBox
clear, draw, setBorder, setHeight, setText, setTitle
 
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
 

Constructor Detail

DialogBox

public DialogBox(ConsoleSystemInterface si,
                 int lines,
                 java.lang.String args)
Creates the box

Parameters:
si - the ConsoleSystemInterface to be attached to
lines - the number of desired lines for the output portion of the box
args - the text to be displayed as output in the box