|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.toolkit.Component
net.wimpi.telnetd.io.toolkit.InertComponent
net.wimpi.telnetd.io.toolkit.Statusbar
public class Statusbar
Class that implements a statusbar, for the bottom of the Terminal Window.
| Field Summary | |
|---|---|
static int |
ALIGN_CENTER
|
static int |
ALIGN_LEFT
|
static int |
ALIGN_RIGHT
|
| Fields inherited from class net.wimpi.telnetd.io.toolkit.Component |
|---|
m_Dim, m_IO, m_Name, m_Position |
| Constructor Summary | |
|---|---|
Statusbar(BasicTerminalIO io,
java.lang.String name)
Constructor for a simple statusbar instance. |
|
| Method Summary | |
|---|---|
void |
draw()
Method that draws the statusbar on the screen. |
java.lang.String |
getStatusText()
Accessor method for the statustext property of the statusbar component. |
void |
setAlignment(int alignment)
Mutator method for the alignment property. |
void |
setBackgroundColor(java.lang.String color)
Mutator method for the BackgroundColor property. |
void |
setForegroundColor(java.lang.String color)
Mutator method for the SoregroundColor property. |
void |
setStatusText(java.lang.String text)
Mutator method for the statustext property of the statusbar component. |
| Methods inherited from class net.wimpi.telnetd.io.toolkit.Component |
|---|
getDimension, getLocation, getName, setDimension, setLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALIGN_RIGHT
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
| Constructor Detail |
|---|
public Statusbar(BasicTerminalIO io,
java.lang.String name)
| Method Detail |
|---|
public void setStatusText(java.lang.String text)
text - status String displayed in the titlebar.public java.lang.String getStatusText()
public void setAlignment(int alignment)
alignment - integer, valid if one of the ALIGN_* constants.public void setForegroundColor(java.lang.String color)
color - String, valid if it is a ColorHelper color constant.public void setBackgroundColor(java.lang.String color)
color - String, valid if it is a ColorHelper color constant.
public void draw()
throws java.io.IOException
draw in class Componentjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||