01: package method;
02:
03: import java.awt.Button;
04: import java.awt.Component;
05: import java.awt.Canvas;
06: import java.awt.Panel;
07:
08: /**
09: * Description of the Class
10: *
11: *@author Chris Seguin
12: */
13: public class Child extends Parent {
14: private long time;
15:
16: /**
17: * Sets the SleepTime attribute of the Child object
18: *
19: *@param time The new SleepTime value
20: */
21: public void setSleepTime(long time) {
22: if (isInitialized()) {
23: init();
24: }
25:
26: this .time = time;
27: total = time + total;
28: }
29:
30: /**
31: * Gets the Panel attribute of the Child object
32: *
33: *@param canvas Description of Parameter
34: *@param button Description of Parameter
35: *@return The Panel value
36: */
37: public Component getPanel(Canvas canvas, Button button) {
38: return new Panel();
39: }
40:
41: /**
42: * Gets the Initialized attribute of the Child object
43: *
44: *@return The Initialized value
45: */
46: public boolean isInitialized() {
47: return (time > 0);
48: }
49:
50: /**
51: * Description of the Method
52: *
53: *@param sample Description of Parameter
54: */
55: public void stopOne(Object sample) {
56: // Nothing here
57: }
58:
59: /**
60: * Description of the Method
61: *
62: *@param crazy Description of Parameter
63: *@param strange Description of Parameter
64: */
65: public void stopTwo(Object crazy, Double strange) {
66: }
67:
68: /**
69: * Description of the Method
70: */
71: protected void init() {
72: time = 1;
73: }
74: }
|