/** * Translate this element and all contained elements into SAX events. The * events should be routed to the contentHandler found in the WingContext. * * @param contentHandler * (Required) The registered contentHandler where SAX events * should be routed too. * @param lexicalHandler * (Required) The registered lexicalHandler where lexical * events (such as CDATA, DTD, etc) should be routed too. * @param namespaces * (Required) SAX Helper class to keep track of namespaces able * to determine the correct prefix for a given namespace URI. */ public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException { AttributeMap attributes = new AttributeMap(); if (this.name != null) { attributes.put(A_NAME, name); attributes.put(A_ID, context.generateID(E_HEAD, name)); } startElement(contentHandler, namespaces, E_HEAD, attributes); super.toSAX(contentHandler, lexicalHandler, namespaces); endElement(contentHandler, namespaces, E_HEAD); } }
attributes.put(A_ID, context.generateID(E_PARA, name));
attributes.put(A_ID, context.generateID(E_LABEL, name));
attributes.put(A_ID, context.generateID(E_ITEM, name));
attributes.put(A_ID, context.generateID(E_XREF, name));
attributes.put(A_ID, context.generateID(E_ROW, name));
attributes.put(A_ID, this.context.generateID(E_LIST, this.name)); if (this.type != null)
attributes.put(A_ID, context.generateID(E_CELL, name));
attributes.put(A_ID, context.generateID(E_TABLE, name)); attributes.put(A_ROWS, rows); attributes.put(A_COLS, cols);
attributes.put(A_ID, context.generateID(E_REFERENCE_SET, name));
divAttributes.put(A_ID, context.generateID(E_DIVISION, name)); if (interactive)
attributes.put(A_ID, this.context.generateID(E_FIELD, this.name)); attributes.put(A_FIELD_TYPE, this.type); if (this.disabled)