|
TelnetD at SF | |||||||||
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.ActiveComponent
net.wimpi.telnetd.io.toolkit.Checkbox
Class that implements a Checkbox component. * * @author Dieter Wimberger * @version 2.0 (13/03/2005)
Field Summary | |
static int |
EDGED_BOXSTYLE
|
static int |
LARGE_CHECKMARK
|
static int |
ROUND_BOXSTYLE
|
static int |
SMALL_CHECKMARK
|
static int |
SQUARED_BOXSTYLE
|
Fields inherited from class net.wimpi.telnetd.io.toolkit.Component |
m_Dim, m_IO, m_Name, m_Position |
Constructor Summary | |
Checkbox(BasicTerminalIO io,
java.lang.String name)
Constructs a checkbox instance. |
Method Summary | |
void |
draw()
Method that draws the component. |
boolean |
isSelected()
Accessor method for the state of the checkbox instance |
void |
run()
Method that will make the checkbox active, reading and processing input. |
void |
setBoxStyle(int style)
Mutator method for the boxstyle property of the checkbox |
void |
setMarkStyle(int style)
Mutator method for the markstyle property of the checkbox |
void |
setSelected(boolean b)
Method to set the checkbox`s state |
void |
setText(java.lang.String str)
Mutator method for the text property of the checkbox item |
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 SMALL_CHECKMARK
public static final int LARGE_CHECKMARK
public static final int SQUARED_BOXSTYLE
public static final int ROUND_BOXSTYLE
public static final int EDGED_BOXSTYLE
Constructor Detail |
public Checkbox(BasicTerminalIO io, java.lang.String name)
Method Detail |
public void setSelected(boolean b) throws java.io.IOException
java.io.IOException
public boolean isSelected()
public void setText(java.lang.String str)
public void setBoxStyle(int style)
public void setMarkStyle(int style)
public void run() throws java.io.IOException
run
in class ActiveComponent
java.io.IOException
public void draw() throws java.io.IOException
draw
in class Component
java.io.IOException
|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |