1 7 8 package org.jdesktop.jdnc.markup.elem; 9 10 import org.jdesktop.swing.table.TableColumnExt; 11 12 import java.util.Hashtable ; 13 import java.util.Map ; 14 15 import javax.swing.table.DefaultTableColumnModel ; 16 import javax.swing.table.TableColumnModel ; 17 18 import net.openmarkup.ElementAssimilator; 19 import net.openmarkup.ElementHandler; 20 import net.openmarkup.ElementType; 21 import net.openmarkup.Realizable; 22 23 import org.w3c.dom.Element ; 24 25 import org.jdesktop.jdnc.markup.ElementTypes; 26 import org.jdesktop.jdnc.markup.Namespace; 27 28 32 public class TreeTableColumnsElement extends TableColumnsElement { 33 private static final Map elementMap = new Hashtable (); 34 35 public TreeTableColumnsElement(Element element, ElementType elementType) { 36 super(element, elementType); 37 } 38 39 protected Map getElementHandlerMap() { 40 return elementMap; 41 } 42 43 protected Map registerElementHandlers() { 44 Map handlerMap = super.registerElementHandlers(); 45 if (handlerMap != null) { 46 handlerMap.put(Namespace.JDNC + ":" + 47 ElementTypes.TREE_TABLE_COLUMN.getLocalName(), 48 tableColumnElementHandler); 49 } 50 return handlerMap; 51 } 52 53 private static final ElementHandler tableColumnElementHandler = 54 new ElementHandler(ElementTypes.TREE_TABLE_COLUMN, tableColumnAssimilator); 55 } 56 | Popular Tags |