public void finishUp() { // When false, a <table> was started, which must be closed. if (!_emitDefault) _writer.end("table"); _writer.println(); _emitDefault = true; _title = null; _section = null; _even = true; }
public void finishUp() { // When false, a <table> was started, which must be closed. if (!_emitDefault) _writer.end("table"); _writer.println(); _emitDefault = true; _title = null; _section = null; _even = true; }
/** * {@inheritDoc} */ public void endBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.println(); writer.printRaw("// -->"); writer.end(); }
/** * {@inheritDoc} */ public void endBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.println(); writer.printRaw("// -->"); writer.end(); }
private void writeMetaTag(IMarkupWriter writer, String key, String value, String content) { writer.beginEmpty("meta"); writer.attribute(key, value); writer.attribute("content", content); writer.println(); }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.printRaw("<!--"); writer.println(); }
private void writeMetaTag(IMarkupWriter writer, String key, String value, String content) { writer.beginEmpty("meta"); writer.attribute(key, value); writer.attribute("content", content); writer.println(); }
private void writeDocType(IMarkupWriter writer, IRequestCycle cycle) { // This is the real code String doctype = getDoctype(); if (HiveMind.isNonBlank(doctype)) { writer.printRaw("<!DOCTYPE " + doctype + ">"); writer.println(); } }
private void writeDocType(IMarkupWriter writer, IRequestCycle cycle) { // This is the real code String doctype = getDoctype(); if (HiveMind.isNonBlank(doctype)) { writer.printRaw("<!DOCTYPE " + doctype + ">"); writer.println(); } }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.printRaw("<!--"); writer.println(); }
/** * {@inheritDoc} */ public void writeExternalScript(IMarkupWriter writer, String url, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.attribute("src", url); writer.end(); writer.println(); }
public void render(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("option"); writer.attribute("value", _value); writer.print(_label); writer.end(); // <option> writer.println(); }
/** * {@inheritDoc} */ public void writeExternalScript(IMarkupWriter writer, String url, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.attribute("src", url); writer.end(); writer.println(); }
private void writeStylesheetLink(IMarkupWriter writer, IAsset stylesheet) { writer.beginEmpty("link"); writer.attribute("rel", "stylesheet"); writer.attribute("type", "text/css"); writer.attribute("href", stylesheet.buildURL()); writer.println(); }
protected void writeHiddenField(IMarkupWriter writer, String name, String id, String value) { writer.beginEmpty("postfield"); writer.attribute("name", name); if (HiveMind.isNonBlank(id)) writer.attribute("id", id); writer.attribute("value", value); writer.println(); }
private void writeStylesheetLink(IMarkupWriter writer, IAsset stylesheet) { writer.beginEmpty("link"); writer.attribute("rel", "stylesheet"); writer.attribute("type", "text/css"); writer.attribute("href", stylesheet.buildURL()); writer.println(); }
protected void writeHiddenField(IMarkupWriter writer, String name, String id, String value) { writer.beginEmpty("postfield"); writer.attribute("name", name); if (HiveMind.isNonBlank(id)) writer.attribute("id", id); writer.attribute("value", value); writer.println(); }
/** * Overwridden by {@link org.apache.tapestry.wml.GoFormSupportImpl} (WML). */ protected void writeHiddenField(IMarkupWriter writer, String name, String id, String value) { writer.beginEmpty("input"); writer.attribute("type", "hidden"); writer.attribute("name", name); if (HiveMind.isNonBlank(id)) writer.attribute("id", id); writer.attribute("value", value == null ? "" : value); writer.println(); }
private void writeRelation(IMarkupWriter writer, RelationBean relationBean) { writer.beginEmpty("link"); writeAttributeIfNotNull(writer, "rel", relationBean.getRel()); writeAttributeIfNotNull(writer, "rev", relationBean.getRev()); writeAttributeIfNotNull(writer, "type", relationBean.getType()); writeAttributeIfNotNull(writer, "media", relationBean.getMedia()); writeAttributeIfNotNull(writer, "title", relationBean.getTitle()); writeAttributeIfNotNull(writer, "href", relationBean.getHref()); writer.println(); }
private void writeRelation(IMarkupWriter writer, RelationBean relationBean) { writer.beginEmpty("link"); writeAttributeIfNotNull(writer, "rel", relationBean.getRel()); writeAttributeIfNotNull(writer, "rev", relationBean.getRev()); writeAttributeIfNotNull(writer, "type", relationBean.getType()); writeAttributeIfNotNull(writer, "media", relationBean.getMedia()); writeAttributeIfNotNull(writer, "title", relationBean.getTitle()); writeAttributeIfNotNull(writer, "href", relationBean.getHref()); writer.println(); }