KickJava   Java API By Example, From Geeks To Geeks.

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


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 radio buttons
20  * @deprecated - does this make sense?
21  */

22 public class RadioButtons extends SelectSingle {
23   public static final String JavaDoc NODENAME = "radioButtons";
24
25   public static boolean isRadioButtons(Element JavaDoc elem) {
26     return elem.getNodeName().equals(NODENAME);
27   }
28
29   /** factory function for creating radio buttons */
30   public static Element JavaDoc createRadioButtons(Document JavaDoc doc) {
31     Element JavaDoc rbs = XoplonCtrl.createCtrl(doc, NODENAME);
32     return rbs;
33   }
34
35   /** factory function for adding radio buttons to parent */
36   public static Element JavaDoc addRadioButtons(Element JavaDoc parent) {
37     Element JavaDoc rbs = createRadioButtons(parent.getOwnerDocument());
38     parent.appendChild(rbs);
39     return rbs;
40   }
41
42 }
43
Popular Tags