ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/Conient.java (file contents):
Revision 1.22 by ajm, Wed Feb 21 23:45:16 2001 UTC vs.
Revision 1.23 by ajm, Mon Feb 26 18:40:25 2001 UTC

# Line 74 | Line 74 | public class Conient extends JFrame {
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      /**
# Line 225 | Line 237 | public class Conient extends JFrame {
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines