|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
org.openbandy.ui.Tests
public class Tests
The Tests screen is the GUI to run unit tests.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
Test
Field Summary |
---|
Fields inherited from class javax.microedition.lcdui.List |
---|
SELECT_COMMAND |
Fields inherited from interface javax.microedition.lcdui.Choice |
---|
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON |
Constructor Summary | |
---|---|
Tests()
Create a new tests screen |
Method Summary | |
---|---|
void |
addTest(Test test)
Add a test to the screen |
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
|
void |
setTestFailed(Test test)
Set the test to have failed execution, a red box image is shown. |
void |
setTestPassed(Test test)
Set the test to have successfully executed, a checked box image is shown. |
void |
setTestReady(Test test)
Set the test to be ready for execution, an empty checkbox image is shown. |
void |
setTestRunning(Test test)
Set the test to be running, an small forward arrow image is shown. |
void |
show(javax.microedition.lcdui.Display display,
javax.microedition.lcdui.Displayable previousDisplayable)
Tells the BandyDisplayable to set itself as the current screen. |
Methods inherited from class javax.microedition.lcdui.List |
---|
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, getTicker, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, setTitle, size |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
addCommand, getHeight, getTitle, getWidth, isShown, setCommandListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tests()
Method Detail |
---|
public void addTest(Test test)
test
- Test to be added to the gui listpublic void setTestReady(Test test)
test
- Test to be set to be ready for executionpublic void setTestRunning(Test test)
test
- Test to be set as runningpublic void setTestPassed(Test test)
test
- Test to be set as passed (successfully)public void setTestFailed(Test test)
test
- Test to be set to have failed executionpublic void show(javax.microedition.lcdui.Display display, javax.microedition.lcdui.Displayable previousDisplayable)
BandyDisplayable
show
in interface BandyDisplayable
display
- The MIDlets displaypreviousDisplayable
- The displayable that is shown before this onepublic void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
commandAction
in interface javax.microedition.lcdui.CommandListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |