74 |
|
|
75 |
|
// the main frame (passed the two panels) |
76 |
|
Conient client = new Conient(data, control); |
77 |
+ |
conientFrame = (Frame) client; |
78 |
|
Conient.addMessage("Conient {an i-scream Client} © 2001 University of Kent & Project i-scream"); |
79 |
|
|
80 |
|
Conient.addMessage("Conient ready."); |
81 |
|
|
82 |
|
} |
82 |
– |
|
83 |
|
|
84 |
+ |
/** |
85 |
+ |
* A static accessor, allowing components of the system |
86 |
+ |
* to get hold of the root frame of the system. |
87 |
+ |
* |
88 |
+ |
* see conientFrame attribute for details. |
89 |
+ |
* |
90 |
+ |
* @return the root Conient frame |
91 |
+ |
*/ |
92 |
+ |
public static Frame getFrame() { |
93 |
+ |
return conientFrame; |
94 |
+ |
} |
95 |
+ |
|
96 |
|
//---CONSTRUCTORS--- |
97 |
|
|
98 |
|
/** |
237 |
|
{ |
238 |
|
_messages.setLineWrap(true); |
239 |
|
} |
240 |
+ |
|
241 |
+ |
/** |
242 |
+ |
* Holds a reference to the root frame for Conient |
243 |
+ |
* This is only used by dialogs (specifically the configurationn |
244 |
+ |
* dialog) so that it can be modal, please use the accessor. |
245 |
+ |
*/ |
246 |
+ |
private static Frame conientFrame; |
247 |
|
|
248 |
|
//---INNER CLASSES---- |
249 |
|
|