Display this screen's toolbars in html input format.
@param out The HTML output stream.
@param iHtmlAttributes The HTML attributes.
returns true if default params were found for this form.
@exception DBException File exception.
421107
public boolean printToolbarData(boolean bFieldsFound, PrintWriter out, int iHtmlAttributes)
    {
        int iNumCols = ((ToolScreen)this.getScreenField()).getSFieldCount();
        for (int iIndex = 0; iIndex < iNumCols; iIndex++)
        {
            ScreenField sField = ((ToolScreen)this.getScreenField()).getSField(iIndex);
            if (sField.getConverter() == null)
                if (sField instanceof SCannedBox)
            {
                SCannedBox button = (SCannedBox)sField;   // Found the toolscreen
                String strCommand = button.getButtonCommand();
                if (strCommand.equalsIgnoreCase(MenuConstants.BACK))
                { // Ignore back for HTML
                }
                else if (strCommand.equalsIgnoreCase(MenuConstants.HELP))
                { // Ignore help for HTML
                }
                else if (strCommand.equalsIgnoreCase(MenuConstants.RESET))
                {   // Special case - for reset do an HTML reset
                    out.println("<input type=\"Reset\"/>");
                    bFieldsFound = false; // Don't need Submit/Reset button
                }
                else if ((strCommand.equalsIgnoreCase(MenuConstants.FIRST))
                        || (strCommand.equalsIgnoreCase(MenuConstants.PREVIOUS))
                        || (strCommand.equalsIgnoreCase(MenuConstants.NEXT))
                        || (strCommand.equalsIgnoreCase(MenuConstants.LAST))
                        || (strCommand.equalsIgnoreCase(MenuConstants.SUBMIT))
                        || (strCommand.equalsIgnoreCase(MenuConstants.DELETE)))
                { // Valid command - send it as a post command
                    out.println("<input type=\"submit\" name=\"" + DBParams.COMMAND + "\" value=\"" + strCommand + "\"/>");
                    bFieldsFound = false; // Don't need Submit button
                }
                else if (strCommand.equalsIgnoreCase(MenuConstants.FORM))
                { // Valid command - send it as a post command
                    if (this.getMainRecord() != null)
                    {
                        String strRecord = this.getMainRecord().getClass().getName().toString();
                        String strLink = "?" + DBParams.RECORD + "=" + strRecord + "&" + DBParams.COMMAND + "=" + MenuConstants.REFRESH;
                        out.println("<input type=\"button\" value=" + strCommand + " onclick=\"window.open('" + strLink + "','_top');\"/>");
                    }
                }
                else if (strCommand.equalsIgnoreCase(MenuConstants.LOOKUP))
                { // Valid command - send it as a post command
                    if (this.getMainRecord() != null)
                    {
                        String strRecord = this.getMainRecord().getClass().getName().toString();
                        String strLink = "?" + DBParams.RECORD + "=" + strRecord;
                        out.println("<input type=\"button\" value=\"Lookup\" onclick=\"window.open('" + strLink + "','_top');\"/>");
                    }
                }
                else
                { // Valid command - send it as a post command
                    //+ Add code here to process a doCommand(xxx)
                }
            }
        }
        String strCommand = MenuConstants.SUBMIT;
        if (this.getScreenField().getParentScreen() instanceof GridScreen)
        {
            strCommand = MenuConstants.LOOKUP;
            if (this.getScreenField().getParentScreen().getEditing())
                bFieldsFound = true;        // Need these buttons for grid input
        }
        if (bFieldsFound)
        {
            out.println("<input type=\"submit\" name=\"" + DBParams.COMMAND + "\" value=\"" + strCommand + "\"/>");
            out.println("<input type=\"Reset\"/>");
        }
        return bFieldsFound;
    }
817250
@Override
    public void writeAttribute(String localName, String value)
        throws XMLStreamException
    {
        // No need to set mAnyOutput, nor close the element
        if (!mStartElementOpen && mCheckStructure) {
            reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM);
        }
        doWriteAttr(localName, null, null, value);
    }
1010570
@Override
    public void handleAttribute(
            final char[] buffer,
            final int nameOffset, final int nameLen, final int nameLine, final int nameCol,
            final int operatorOffset, final int operatorLen, final int operatorLine, final int operatorCol,
            final int valueContentOffset, final int valueContentLen,
            final int valueOuterOffset, final int valueOuterLen,
            final int valueLine, final int valueCol)
            throws ParseException {


        if (!this.insideAllSelectorMatchingBlock) {
            // We are not in a matching block, so let's put this attribute into the buffer just in case it matches
            this.elementBuffer.bufferAttribute(
                    buffer,
                    nameOffset, nameLen, nameLine, nameCol,
                    operatorOffset, operatorLen, operatorLine, operatorCol,
                    valueContentOffset, valueContentLen, valueOuterOffset, valueOuterLen, valueLine, valueCol);
            return;
        }


        this.selectedHandler.handleAttribute(
                buffer,
                nameOffset, nameLen, nameLine, nameCol,
                operatorOffset, operatorLen, operatorLine, operatorCol,
                valueContentOffset, valueContentLen, valueOuterOffset, valueOuterLen, valueLine, valueCol);

    }
44176
public void writeAttributes(Iterable<Attribute> attributes) throws IOException {
    List<String> attributeNames = Lists.newArrayList();
    List<String> attributeLabels = Lists.newArrayList();

    for (Attribute attr : attributes) {
      attributeNames.add(attr.getName());
      if (attr.getLabel() != null) {
        attributeLabels.add(attr.getLabel());
      } else {
        attributeLabels.add(attr.getName());
      }
    }

    writeAttributes(attributeNames, attributeLabels);
  }
1319072
function (out) {
                var cfg = this._cfg;
                var attributes = ariaUtilsHtml.buildAttributeList(cfg.attributes);
                var markup = ["<", cfg.tagName, " id='", this._id, "' "];

                if (attributes) {
                    markup.push(attributes, " ");
                }

                var delegateId = this.__delegateId;
                if (delegateId) {
                    var delegateManager = ariaUtilsDelegate;
                    markup.push(delegateManager.getMarkup(delegateId), " ");
                    var delegateFallbackEvents = this.__delegateFallbackEvents;
                    for (var i = 0, l = delegateFallbackEvents.length; i < l; i++) {
                        markup.push(delegateManager.getFallbackMarkup(delegateFallbackEvents[i], delegateId, false), " ");
                    }
                }

                out.write(markup.join(""));
            }
412008
public void printHtmlMenuStart(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        this.printHtmlBanner(out, reg);
        this.printHtmlLogo(out, reg);
        this.printHtmlMenubar(out, reg);
        // Don't print the table start portion or the nav menus
    }
537118
public String getViewSelect(String htmlAttributes) {

        List<String> options = new ArrayList<String>();
        List<String> values = new ArrayList<String>();
        int selectedIndex = 0;

        // loop through the vectors and fill the result vectors
        Iterator<CmsWorkplaceView> i = OpenCms.getWorkplaceManager().getViews().iterator();
        int count = -1;
        String currentView = getSettings().getViewUri();
        if (CmsStringUtil.isNotEmpty(currentView)) {
            // remove possible parameters from current view
            int pos = currentView.indexOf('?');
            if (pos >= 0) {
                currentView = currentView.substring(0, pos);
            }
        }
        while (i.hasNext()) {
            CmsWorkplaceView view = i.next();
            if (getCms().existsResource(view.getUri(), CmsResourceFilter.ONLY_VISIBLE_NO_DELETED)) {
                count++;
                // ensure the current user has +v+r permissions on the view
                String loopLink = getJsp().link(view.getUri());
                String localizedKey = resolveMacros(view.getKey());
                options.add(localizedKey);
                values.add(loopLink);

                if (loopLink.equals(currentView)) {
                    selectedIndex = count;
                }
            }
        }

        return buildSelect(htmlAttributes, options, values, selectedIndex);
    }
1202262
public int doEndTag() throws JspException
    {
        // report errors that may have occurred when the required attributes are being set
        if (hasErrors())
            return reportAndExit(EVAL_PAGE);

        // build the anchor into the results
        ByRef script = new ByRef();

        WriteRenderAppender writer = new WriteRenderAppender(pageContext);
        HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
        TagRenderingBase trb = TagRenderingBase.Factory.getRendering(TagRenderingBase.AREA_TAG, request);

        if (!createAnchorBeginTag(request, script, trb, writer, REQUIRED_ATTR)) {
            if (!script.isNull())
                write(script.getRef().toString());
            return reportAndExit(EVAL_PAGE);
        }

        assert(trb != null) : "trb is null";
        trb.doEndTag(writer);

        if (!script.isNull())
            write(script.getRef().toString());

        // Render the remainder to the output stream
        localRelease();
        return EVAL_PAGE;
    }
1267489
public void printHtmlBanner(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        if (HBasePanel.getFirstToUpper(this.getProperty(DBParams.BANNERS), 'N') == 'Y')
        {
            String strNav = reg.getString("htmlBanner");
            strNav = Utility.replaceResources(strNav, reg, null, null);
            this.writeHtmlString(strNav, out);
        }
    }
4595
public static boolean isTrueFromAttribute(AttributeSet attrs, String attribute, boolean defaultValue) {
        return attrs.getAttributeBooleanValue(Ui.androidStyleNameSpace, attribute, defaultValue);
    }
565655
public void printScreen(PrintWriter out, ResourceBundle reg)
        throws DBException
    {
        out.println("<html>");
        this.printAppletHtmlScreen(out, reg);
        out.println("</html>");
/*        Map<String,Object> propApplet = new Hashtable<String,Object>();
        Map<String,Object> properties = ((AppletHtmlScreen)this.getScreenField()).getAppletProperties(propApplet);
        Utility.startTag("applet-properties");
        out.println(XMLPropertiesField.propertiesToXML(propApplet));
        Utility.endTag("applet-properties");
        Utility.startTag("properties");
        out.println(XMLPropertiesField.propertiesToXML(properties));
        Utility.endTag("properties");
        Utility.startTag("jnlp-url");
        String strJnlpURL = this.getJnlpURL(propApplet, properties);
        out.println(Utility.encodeXML(strJnlpURL));
        Utility.endTag("jnlp-url");
*/    }
149782
function(attr) {
      var html = this._escapedAttributes[attr];
      if (html) {
        return html;
      }
      var val = this.attributes[attr];
      var escaped;
      if (Parse._isNullOrUndefined(val)) {
        escaped = '';
      } else {
        escaped = _.escape(val.toString());
      }
      this._escapedAttributes[attr] = escaped;
      return escaped;
    }
1093421
function showInterfaceIdlAttribute(attribute, html) {
    var line = "<tr><td>" + Indent + "attribute "

    line += getIdlType(attribute.type)
    line += "<td><span class='attributeName tdIndent'>" + attribute.name + "</span>;"
    html.push(line)

}
145853
public static DbAttribute[] toDbAttributeArray(final String[] array, final int mode) throws DevFailed {
        if (mode < 1 && mode > 2) {
            Except.throw_non_supported_exception("API_NotSupportedMode", "Mode " + mode
                    + " to decode attribute properties is not supported",
                    "ApiUtil.toDbAttributeArray()");
        }

        int idx = 1;
        final int nb_attr = Integer.parseInt(array[idx++]);
        final DbAttribute[] attr = new DbAttribute[nb_attr];
        for (int i = 0; i < nb_attr; i++) {
            // Create DbAttribute with name and nb properties
            // ------------------------------------------------------
            attr[i] = new DbAttribute(array[idx++]);

            // Get nb properties
            // ------------------------------------------------------
            final int nb_prop = Integer.parseInt(array[idx++]);

            for (int j = 0; j < nb_prop; j++) {
                // And copy property name and value in
                // DbAttribute's DbDatum array
                // ------------------------------------------
                final String p_name = array[idx++];
                switch (mode) {
                    case 1:
                        // Value is just one element
                        attr[i].add(p_name, array[idx++]);
                        break;
                    case 2:
                        // value is an array
                        final int p_length = Integer.parseInt(array[idx++]);
                        final String[] val = new String[p_length];
                        for (int p = 0; p < p_length; p++) {
                            val[p] = array[idx++];
                        }
                        attr[i].add(p_name, val);
                        break;
                }
            }
        }
        return attr;
    }
216348
private void writeHandleXMINillableAttribute(PrintWriter out, String indent, ModelAttribute attribute, String object) {
        ModelMethod method = attribute.method;
        String fieldName = method.field.name;
        String typeName = method.getType().getJavaImplTypeName();
        out.append(indent).append("            ").append(typeName).append(' ').append(fieldName).append(" = new ").append(typeName).append("();").println();
        out.append(indent).append("            parser.parse(").append(fieldName).append(");").println();
        out.append(indent).append("            if (!").append(fieldName).append(".isNil()) {").println();
        out.append(indent).append("                ").append(object).append('.').append(fieldName).append(" = ").append(fieldName).append(';').println();
        out.append(indent).append("            }").println();
        out.append(indent).append("            return true;").println();
    }
336676
protected void htmlAttrs() {
        skipWhitespace();

        loop:
        while (isIdentifierStart(ch)) {
            int namePos = bp;
            String name = readAttributeName();
            skipWhitespace();
            StringBuilder value = new StringBuilder();
            if (ch == '=') {
                nextChar();
                skipWhitespace();
                if (ch == '\'' || ch == '"') {
                    char quote = ch;
                    nextChar();
                    while (bp < buflen && ch != quote) {
                        if (newline && ch == '@') {
                            // No point trying to read more.
                            // In fact, all attrs get discarded by the caller
                            // and superseded by a malformed.html node because
                            // the html tag itself is not terminated correctly.
                            break loop;
                        }
                        value.append(ch);
                        nextChar();
                    }
                    nextChar();
                } else {
                    while (bp < buflen && !isUnquotedAttrValueTerminator(ch)) {
                        value.append(ch);
                        nextChar();
                    }
                }
                skipWhitespace();
            }
            checkHtmlAttr(name, value.toString());
        }
    }
704263
private void mapAttributes(List<Attribute> input, Map<String, List<Attribute>> output) {
        Iterator<Attribute> it = input.iterator();
        while (it.hasNext()) {
            Attribute attr = it.next();
            String id = attr.getId().toString();

            if (output.containsKey(id)) {
                List<Attribute> list = output.get(id);
                list.add(attr);
            } else {
                List list = new ArrayList<Attribute>();
                list.add(attr);
                output.put(id, list);
            }
        }
    }