net.slashie.libjcsi.textcomponents
Class ListBox
java.lang.Object
net.slashie.libjcsi.textcomponents.TextComponent
net.slashie.libjcsi.textcomponents.ListBox
- All Implemented Interfaces:
- java.io.Serializable
public class ListBox
- extends TextComponent
Displays a list in a box.
- Author:
- Santiago Zapata
- See Also:
- Serialized Form
| Methods inherited from class net.slashie.libjcsi.textcomponents.TextComponent |
clearBox, drawBorder, getForeColor, getHeight, getWidth, hasBorder, setBorder, setBorderColor, setBorderColor, setBounds, setForeColor, setForeColor, setHeight, setPosition, setWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
itemsLista
public java.util.Vector itemsLista
ListBox
public ListBox(ConsoleSystemInterface si)
draw
public void draw()
- Description copied from class:
TextComponent
- Prints the componenet to the interface.
- Specified by:
draw in class TextComponent
clear
public void clear()
setElements
public void setElements(java.util.Vector elements)
addElements
public void addElements(java.util.Vector elements)
addElement
public void addElement(ListItem element)