KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > gui > dialog > DialogStatic


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.gui.dialog;
14
15 import java.io.IOException JavaDoc;
16 import java.io.Writer JavaDoc;
17
18
19 /**
20  * @author Vinzenz Wyser
21  * @version 2.0
22  */

23 public class DialogStatic extends DialogBox {
24
25     /**
26      * Empty constructor should only be used by DialogFactory.
27      */

28     protected DialogStatic() {
29     }
30
31     /**
32      * @see info.magnolia.cms.gui.dialog.DialogControl#drawHtml(Writer)
33      */

34     public void drawHtml(Writer JavaDoc out) throws IOException JavaDoc {
35         this.drawHtmlPre(out);
36         String JavaDoc value = this.getConfigValue("value", null); //$NON-NLS-1$
37
if (value == null) {
38             value = this.getValue();
39         }
40         out.write(value);
41         this.drawHtmlPost(out);
42     }
43 }
44
Popular Tags