blob: 4ec27ac89451f9437f1292c439cb39b44e566761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package gjt.test;
import java.applet.Applet;
import java.awt.*;
import gjt.ChoiceCardPanel;
/**
* A ChoiceCardPanel that controls three Panels.<p>
*
* @version 1.0, April 25, 1996
* @author David Geary
* @see gjt.test.UnitTest
* @see gjt.ChoiceCardPanel
*/
public class ChoiceCardPanelTest extends UnitTest {
public String title() { return "Choice CardPanel Test"; }
public Panel centerPanel() {
return new ChoiceCardPanelTestPanel(this);
}
}
class ChoiceCardPanelTestPanel extends Panel {
private ChoiceCardPanel mvp = new ChoiceCardPanel();
public ChoiceCardPanelTestPanel(Applet applet) {
setLayout(new BorderLayout());
mvp.addChoice("Attributes",
new AttributesPanel(applet));
mvp.addChoice("Connections", new ConnectionsPanel());
mvp.addChoice("Oracle", new OccupationOracle());
add("Center", mvp);
}
}
|