1 7 8 package org.jdesktop.jdnc.markup.elem; 9 10 import java.util.Hashtable ; 11 import java.util.Map ; 12 13 import org.w3c.dom.Element ; 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 24 public class TreeTableColumnElement extends TableColumnElement { 25 private static final Map attrMap = new Hashtable (); 26 27 public TreeTableColumnElement(Element element, ElementType elementType) { 28 super(element, elementType); 29 } 30 31 protected Map getAttributeHandlerMap() { 32 return attrMap; 33 } 34 35 protected Map registerAttributeHandlers() { 36 Map handlerMap = super.registerAttributeHandlers(); 37 if (handlerMap != null) { 38 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 |