public IExtendedMarkupWriter create(String tag, String... attributes) { writer.begin(tag); writeAttributesAndValues(attributes); return this; }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter normalWriter, IRequestCycle cycle) { _writer.begin("script"); _writer.printRaw("\n//<![CDATA[\n"); }
public void renderObject(Object object, IMarkupWriter writer, IRequestCycle cycle) { writer.begin("pre"); writer.print(object.toString()); writer.end(); }
public void renderObject(Object object, IMarkupWriter writer, IRequestCycle cycle) { writer.begin("pre"); writer.print(object.toString()); writer.end(); }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter normalWriter, IRequestCycle cycle) { IMarkupWriter writer = getWriter(ResponseBuilder.BODY_SCRIPT, ResponseBuilder.SCRIPT_TYPE); writer.begin("script"); writer.printRaw(NEWLINE + "//<![CDATA[" + NEWLINE); }
public void writeLine(int lineNumber, String line, IMarkupWriter writer, boolean raw) { writer.begin("p"); writer.print(line, raw); writer.end(); } }
protected void writeTag(IMarkupWriter writer, String method, String url) { writer.begin("go"); writer.attribute("method", method); writer.attribute("href", url); }
protected void writeTag(IMarkupWriter writer, String method, String url) { writer.begin("form"); writer.attribute("method", method); writer.attribute("action", url); }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter normalWriter, IRequestCycle cycle) { IMarkupWriter writer = getWriter(ResponseBuilder.BODY_SCRIPT, ResponseBuilder.SCRIPT_TYPE); writer.begin("script"); writer.printRaw(NEWLINE + "//<![CDATA[" + NEWLINE); }
public void writeLine(int lineNumber, String line, IMarkupWriter writer, boolean raw) { writer.begin("p"); writer.print(line, raw); writer.end(); } }
public void writeLine(int lineNumber, String line, IMarkupWriter writer, boolean raw) { writer.begin("p"); writer.print(line, raw); writer.end(); } }
protected void writeTag(IMarkupWriter writer, String method, String url) { writer.begin("go"); writer.attribute("method", method); writer.attribute("href", url); }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.printRaw("<!--"); writer.println(); }
/** * {@inheritDoc} */ public void beginBodyScript(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("script"); writer.attribute("type", "text/javascript"); writer.printRaw("<!--"); writer.println(); }
/** * Writes the <table> element. * **/ public void beginRender(PropertySelection component, IMarkupWriter writer, IRequestCycle cycle) { writer.begin("table"); writer.attribute("border", 0); writer.attribute("cellpadding", 0); writer.attribute("cellspacing", 2); }
/** * {@inheritDoc} */ public void writeExternalScript(IMarkupWriter normalWriter, String url, IRequestCycle cycle) { _writer.begin("script"); _writer.attribute("type", "text/javascript"); _writer.attribute("src", url); _writer.end(); }
/** * {@inheritDoc} */ public void writeInitializationScript(IMarkupWriter normalWriter, String script) { _writer.begin("script"); // return is in XML so must escape any potentially non-xml compliant content _writer.printRaw("\n//<![CDATA[\n"); _writer.printRaw(script); _writer.printRaw("\n//]]>\n"); _writer.end(); }
/** * {@inheritDoc} */ public void writeInitializationScript(IMarkupWriter normalWriter, String script) { _writer.begin("script"); // return is in XML so must escape any potentially non-xml compliant content _writer.printRaw("\n//<![CDATA[\n"); _writer.printRaw(script); _writer.printRaw("\n//]]>\n"); _writer.end(); }
/** * {@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(); }