|
||||||||||
| 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
public class Checkbox
Class that implements a Checkbox component.
| 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
b - boolean that represents the state (true equals selected, false equals not selected).
java.io.IOExceptionpublic boolean isSelected()
public void setText(java.lang.String str)
str - String that represents the text that will be displayed right
of the checkbox.public void setBoxStyle(int style)
style - int that represents one of the defined constants for boxstyles.public void setMarkStyle(int style)
style - int that represents one of the defined constants for checkmarks.
public void run()
throws java.io.IOException
run in class ActiveComponentjava.io.IOException
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 | |||||||||