KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > ui > CheckBoxes


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.ui;
14
15 import org.w3c.dom.Document JavaDoc;
16 import org.w3c.dom.Element JavaDoc;
17
18 /**
19  * factory for generating check box container
20  * @deprecated - does this make sense?
21  */

22 public class CheckBoxes extends SelectMultiple {
23   public static final String JavaDoc NODENAME = "checkBoxes";
24
25   public static boolean isCheckBoxes(Element JavaDoc elem) {
26     return elem.getNodeName().equals(NODENAME);
27   }
28
29   /** factory function for creating checkBoxes */
30   public static Element JavaDoc createCheckBoxes(Document JavaDoc doc) {
31     Element JavaDoc cbs = XoplonCtrl.createCtrl(doc, NODENAME);
32     return cbs;
33   }
34
35   /** factory function for adding check boxes to parent */
36   public static Element JavaDoc addCheckBoxes(Element JavaDoc parent) {
37     Element JavaDoc cbs = createCheckBoxes(parent.getOwnerDocument());
38     parent.appendChild(cbs);
39     return cbs;
40   }
41
42 }
43
Popular Tags