1 7 8 package org.jdesktop.jdnc.markup; 9 10 import net.openmarkup.ElementType; 11 import net.openmarkup.Vocabulary; 12 13 18 public final class ElementTypes extends Vocabulary { 19 21 private static String vectorElement; 22 23 static { 24 try { 25 Class vectorClass = Class.forName("com.enode.or.dom.VectorElementImpl"); 28 vectorElement = "com.enode.or.dom.VectorElementImpl"; 29 } catch (Exception ex) { 30 vectorElement = "org.jdesktop.openmarkup.ri.VectorElementImpl"; 31 } 32 } 33 35 38 public static final ElementType ACTION = new ElementType( 39 Namespace.JDNC, "action", "org.jdesktop.jdnc.markup.elem.ActionElement", 40 "org.jdesktop.swing.actions.TargetableAction"); 41 42 public static final ElementType ACTION_PANEL = new ElementType( 43 Namespace.JDNC, "buttonPanel", "org.jdesktop.jdnc.markup.elem.ActionPanelElement", null); 44 45 public static final ElementType ACTIONS = new ElementType( 46 Namespace.JDNC, "actions", vectorElement, "java.util.Vector"); 47 48 public static final ElementType ALTERNATE_ROW_HIGHLIGHTER = new ElementType( 49 Namespace.JDNC, "alternateRowHighlighter", "org.jdesktop.jdnc.markup.elem.AlternateRowsElement", "org.jdesktop.swing.decorator.AlternateRowHighlighter"); 50 51 public static final ElementType APP = new ElementType( 52 Namespace.JDNC, "app", "org.jdesktop.jdnc.markup.elem.AppElement", "org.jdesktop.jdnc.JDNCApp"); 53 54 public static final ElementType COLLAPSE_ALL = new ElementType( 55 Namespace.JDNC, "collapseAll", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.CollapseAction"); 56 57 public static final ElementType COMPONENT = new ElementType( 58 Namespace.JDNC, "component", "org.jdesktop.jdnc.markup.elem.FormComponentElement", null); 59 60 public static final ElementType COMPONENTS = new ElementType( 61 Namespace.JDNC, "components", vectorElement, "java.util.Vector"); 62 63 public static final ElementType COMPONENT_TOOLBAR = new ElementType( 65 Namespace.JDNC, "toolBar", vectorElement, "java.util.Vector"); 66 67 public static final ElementType DATA = new ElementType( 68 Namespace.JDNC, "tabularData", "org.jdesktop.jdnc.markup.elem.DataElement", "org.jdesktop.swing.data.DefaultTableModelExt"); 69 70 public static final ElementType COLUMN_META_DATA = new ElementType( 71 Namespace.JDNC, "columnMetaData", "org.jdesktop.jdnc.markup.elem.DataFieldElement", "org.jdesktop.swing.data.MetaData"); 72 73 76 public static final ElementType FIELD_META_DATA = new ElementType( 77 Namespace.JDNC, "fieldMetaData", "org.jdesktop.jdnc.markup.elem.DataFieldElement", "org.jdesktop.jdnc.data.MetaData"); 78 79 public static final ElementType EDITOR = new ElementType( 80 Namespace.JDNC, "editor", "org.jdesktop.jdnc.markup.elem.EditorElement", "org.jdesktop.jdnc.JNEditor"); 81 82 public static final ElementType ENUMERATION_VALUES = new ElementType( 83 Namespace.JDNC, "enumValues", "org.jdesktop.jdnc.markup.elem.EnumerationValuesElement", "java.util.Hashtable"); 84 85 public static final ElementType EXPAND_ALL = new ElementType( 86 Namespace.JDNC, "expandAll", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.ExpandAction"); 87 88 89 public static final ElementType VALUES = new ElementType( 90 Namespace.JDNC, "values", "org.jdesktop.jdnc.markup.elem.EnumerationValuesElement", "java.util.Hashtable"); 91 92 public static final ElementType ENUMERATION_VALUE = new ElementType( 93 Namespace.JDNC, "enumeration", "org.jdesktop.jdnc.markup.elem.LabelElement", "javax.swing.JLabel"); 94 95 public static final ElementType FIELD_META_DATA_ENUM_VALUES = new ElementType( 96 97 Namespace.JDNC, "enumValues", "org.jdesktop.jdnc.markup.elem.DataFieldEnumerationElement", "java.util.ArrayList"); 98 99 public static final ElementType FIELD_META_DATA_ENUMERATION = new ElementType( 100 101 Namespace.JDNC, "enumeration", "org.jdesktop.jdnc.markup.elem.DataFieldEnumerationValueElement", null); 102 103 public static final ElementType FILTERS = new ElementType( 104 105 Namespace.JDNC, "filters", vectorElement, "java.util.Vector"); 106 107 public static final ElementType FIND = new ElementType( 108 Namespace.JDNC, "find", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.FindAction"); 109 110 public static final ElementType FORM = new ElementType( 111 Namespace.JDNC, "form", "org.jdesktop.jdnc.markup.elem.FormElement", "org.jdesktop.jdnc.JNForm"); 112 113 public static final ElementType FORM_DATA = new ElementType( 114 Namespace.JDNC, "formData", "org.jdesktop.jdnc.markup.elem.FormDataElement", "org.jdesktop.swing.data.DefaultDataModel"); 115 116 public static final ElementType FORM_COMPONENT = new ElementType( 117 Namespace.JDNC, "component", "org.jdesktop.jdnc.markup.elem.FormComponentElement", null); 118 119 public static final ElementType FONT = new ElementType( 120 Namespace.JDNC, "font", "org.jdesktop.jdnc.markup.elem.FontElement", "java.awt.Font"); 121 122 public static final ElementType HIERARCHICAL_COLUMN_HIGHLIGHTER = new ElementType( 123 Namespace.JDNC, "hierarchicalColumnHighlighter", "org.jdesktop.jdnc.markup.elem.HighlighterElement", "org.jdesktop.swing.decorator.HierarchicalColumnHighlighter"); 124 125 public static final ElementType HIERARCHICAL_DATA = new ElementType( 126 Namespace.JDNC, "hierarchicalData", "org.jdesktop.jdnc.markup.elem.HierarchicalDataElement", "org.jdesktop.swing.data.DOMAdapter"); 127 128 public static final ElementType HIGHLIGHTERS = new ElementType( 129 130 Namespace.JDNC, "highlighters", vectorElement, "java.util.Vector"); 131 132 public static final ElementType META_DATA = new ElementType( 133 Namespace.JDNC, "metaData", vectorElement, "java.util.Vector"); 134 135 public static final ElementType MENU = new ElementType( 136 Namespace.JDNC, "menu", "org.jdesktop.jdnc.markup.elem.MenuElement", "javax.swing.JMenu"); 137 138 public static final ElementType MENUBAR = new ElementType( 139 Namespace.JDNC, "menuBar", "org.jdesktop.jdnc.markup.elem.MenuBarElement", "javax.swing.JMenuBar"); 140 141 public static final ElementType PATTERN_FILTER = new ElementType( 142 Namespace.JDNC, "patternFilter", "org.jdesktop.jdnc.markup.elem.PatternFilterElement", "org.jdesktop.swing.decorator.PatternFilter"); 143 144 public static final ElementType PATTERN_HIGHLIGHTER = new ElementType( 145 Namespace.JDNC, "patternHighlighter", "org.jdesktop.jdnc.markup.elem.PatternHighlighterElement", "org.jdesktop.swing.decorator.PatternHighlighter"); 146 147 public static final ElementType POPUPMENU = new ElementType( 148 Namespace.JDNC, "popupMenu", "org.jdesktop.jdnc.markup.elem.MenuElement", "javax.swing.JPopupMenu"); 149 150 public static final ElementType PRINT = new ElementType( 151 Namespace.JDNC, "print", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.PrintAction"); 152 153 public static final ElementType RESET = new ElementType( 154 Namespace.JDNC, "reset", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.ResetAction"); 155 156 public static final ElementType ROOT_PANE = new ElementType( 157 Namespace.JDNC, "rootPane", "org.jdesktop.jdnc.markup.elem.RootPaneElement", "org.jdesktop.swing.JXRootPane"); 158 159 public static final ElementType SEARCH_PANEL = new ElementType( 160 Namespace.JDNC, "searchPanel", "org.jdesktop.jdnc.markup.elem.SearchPanelElement", "org.jdesktop.swing.JXSearchPanel"); 161 162 public static final ElementType SEPARATOR = new ElementType( 163 Namespace.JDNC, "separator", "org.jdesktop.jdnc.markup.elem.DefaultElement", "javax.swing.JSeparator"); 164 165 public static final ElementType SORTER = new ElementType( 166 Namespace.JDNC, "sorter", "org.jdesktop.jdnc.markup.elem.SorterElement", "org.jdesktop.swing.decorator.Sorter"); 167 168 public static final ElementType SPLIT_PANE = new ElementType( 169 Namespace.JDNC, "splitPane", "org.jdesktop.jdnc.markup.elem.SplitPaneElement", "javax.swing.JSplitPane"); 170 171 public static final ElementType STATUSBAR = new ElementType( 172 Namespace.JDNC, "statusBar", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.swing.JXStatusBar"); 173 174 public static final ElementType SUBMIT = new ElementType( 175 Namespace.JDNC, "submit", "org.jdesktop.jdnc.markup.elem.DefaultElement", "org.jdesktop.jdnc.actions.SubmitAction"); 176 177 public static final ElementType TABBED_PANE = new ElementType( 178 Namespace.JDNC, "tabbedPane", "org.jdesktop.jdnc.markup.elem.TabbedPaneElement", "javax.swing.JTabbedPane"); 179 180 public static final ElementType TABLE = new ElementType( 181 Namespace.JDNC, "table", "org.jdesktop.jdnc.markup.elem.TableElement", "org.jdesktop.jdnc.JNTable"); 182 183 public static final ElementType TABLE_COLUMN = new ElementType( 184 Namespace.JDNC, "column", "org.jdesktop.jdnc.markup.elem.TableColumnElement", "org.jdesktop.swing.table.TableColumnExt"); 185 186 public static final ElementType TABLE_COLUMN_HEADER = new ElementType( 187 Namespace.JDNC, "header", "org.jdesktop.jdnc.markup.elem.TableColumnHeaderElement", "org.jdesktop.swing.LabelProperties"); 188 189 public static final ElementType TABLE_COLUMNS = new ElementType( 190 Namespace.JDNC, "columns", "org.jdesktop.jdnc.markup.elem.TableColumnsElement", "javax.swing.table.DefaultTableColumnModel"); 191 192 public static final ElementType TABLE_HEADER = new ElementType( 193 Namespace.JDNC, "header", "org.jdesktop.jdnc.markup.elem.TableHeaderElement", "javax.swing.table.JTableHeader"); 194 195 public static final ElementType TABULAR_DATA = new ElementType( 196 Namespace.JDNC, "tabularData", "org.jdesktop.jdnc.markup.elem.DataElement", "org.jdesktop.swing.data.DefaultTableModelExt"); 197 198 public static final ElementType TREE_TABLE = new ElementType( 199 Namespace.JDNC, "treeTable", "org.jdesktop.jdnc.markup.elem.TreeTableElement", "org.jdesktop.jdnc.JNTreeTable"); 200 201 public static final ElementType TREE_TABLE_COLUMN = new ElementType( 202 Namespace.JDNC, "column", "org.jdesktop.jdnc.markup.elem.TreeTableColumnElement", "org.jdesktop.swing.table.TableColumnExt"); 203 204 public static final ElementType TREE_TABLE_COLUMNS = new ElementType( 205 Namespace.JDNC, "columns", "org.jdesktop.jdnc.markup.elem.TreeTableColumnsElement", "javax.swing.table.DefaultTableColumnModel"); 206 207 private static Vocabulary instance = null; 208 public static Vocabulary get() { 209 if (instance == null) { 210 instance = new ElementTypes(); 211 } 212 return instance; 213 } 214 } 215 | Popular Tags |