All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Panel | +----java.applet.Applet | +----jcsp.awt.ActiveApplet | +----test.jcsp.ChoiceTest
____________ | | | ChoiceTest | |____________|
___________________________________ | ___________________ | | | | | | | Java Event Thread | | | |___________________| | | | | | v configure | | _______|______ ________ | | | | event | | | | | ActiveChoice |--->---| | | | |______________| |________| | | | | ChoiceTest | |___________________________________|
The anonymous process has an infinite loop which reads one Boolean and one Object from the event Channel the value of the Boolean and the Object will be displayed on the Label.
NOTE: The Java Event thread is a process which is created by the Java runtime environment and calls the itemStateChanged method when one of the components the Applet is listening to generates an ItemEvent.
The purpose of this test is to check to see if the events are notified correctly and that the configuration functions correctly.
NOTE: The code for this Applet is not a good example of developing programs using the library, it has been designed to allow the component to be tested without depending on more classes from the library than is necessary.
public ChoiceTest()
public void init()
public void itemStateChanged(ItemEvent e)
public String getAppletInfo()
All Packages Class Hierarchy This Package Previous Next Index