KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > thinlet > drafts > MDI


1 package thinlet.drafts;
2
3 import thinlet.*;
4
5 /**
6  *
7  */

8 public class MDI {
9     
10     /**
11      *
12      */

13     public void newDialog(Thinlet thinlet, Object JavaDoc desktop) {
14         try {
15             Object JavaDoc dialog = thinlet.parse("mdidialog.xml", this);
16             thinlet.add(desktop, dialog, 0);
17         } catch (Exception JavaDoc exc) {}
18     }
19     
20     /**
21      *
22      */

23     public void setModal(Thinlet thinlet, Object JavaDoc dialog, boolean modal) {
24         thinlet.setBoolean(dialog, "modal", modal);
25     }
26     
27     /**
28      *
29      */

30     public void closeDialog(Thinlet thinlet, Object JavaDoc dialog) {
31         thinlet.remove(dialog);
32     }
33 }
Popular Tags