KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > jdnc > markup > elem > TreeTableColumnElement


1 /*
2  * $Id: TreeTableColumnElement.java,v 1.1.1.1 2004/06/16 01:43:40 davidson1 Exp $
3  *
4  * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5  * Santa Clara, California 95054, U.S.A. All rights reserved.
6  */

7
8 package org.jdesktop.jdnc.markup.elem;
9
10 import java.util.Hashtable JavaDoc;
11 import java.util.Map JavaDoc;
12
13 import org.w3c.dom.Element JavaDoc;
14 import net.openmarkup.AttributeHandler;
15 import net.openmarkup.ElementType;
16 import org.jdesktop.jdnc.markup.Attributes;
17 import org.jdesktop.jdnc.markup.Namespace;
18 import org.jdesktop.jdnc.markup.attr.TreeTableColumnAttributes;
19
20 /**
21  *
22  * @author Ramesh Gupta
23  */

24 public class TreeTableColumnElement extends TableColumnElement {
25     private static final Map JavaDoc attrMap = new Hashtable JavaDoc();
26
27     public TreeTableColumnElement(Element JavaDoc element, ElementType elementType) {
28         super(element, elementType);
29     }
30
31     protected Map JavaDoc getAttributeHandlerMap() {
32         return attrMap;
33     }
34
35     protected Map JavaDoc registerAttributeHandlers() {
36         Map JavaDoc handlerMap = super.registerAttributeHandlers();
37         if (handlerMap != null) {
38             //handlerMap.put(Namespace.JDNC + ":" + Attributes.EDITABLE, editableHandler);
39
handlerMap.put(Namespace.JDNC + ":" + Attributes.BINDING,
40                            bindingHandler);
41         }
42         return handlerMap;
43     }
44
45     private static final AttributeHandler bindingHandler =
46         new AttributeHandler(Namespace.JDNC, Attributes.BINDING,
47                              TreeTableColumnAttributes.bindingApplier);
48
49 }
50
Popular Tags