18 package org.turro.html;
20 import java.io.IOException;
21 import java.io.PrintWriter;
22 import java.io.StringWriter;
23 import java.util.Date;
24 import org.turro.elephant.context.ElephantContext;
25 import org.turro.elephant.context.IElement;
26 import org.turro.elephant.impl.util.Localizer;
27 import org.turro.i18n.I_;
36 protected StringWriter
sw =
null;
48 sw =
new StringWriter();
82 "new Ajax.InPlaceEditor(" +
83 "$('" + ident +
"')," +
85 "/xpaction/" + component +
"?action=" + action +
"&context=" + element.
getContext().
getPath() +
"&idel=" + element.
getId() + params +
"', {" +
86 "okText: '" +
I_.
get(
"Save") +
"'," +
87 "cancelText: '" +
I_.
get(
"Cancel") +
"'," +
88 "savingText: '" +
I_.
get(
"Saving") +
"',"+
89 "clickToEditText: '" +
I_.
get(
"Click to edit") +
"'," +
90 "rows: " + rows +
"," +
91 "ajaxOptions: {method: 'get'}" +
100 "$('" + ident +
"').onclick = function() { openFeditor(this); }"
108 return sw.toString();
126 StringWriter w =
new StringWriter();
127 setOut(
new PrintWriter(w));
static String getRootWebPath()
String parseValue(String type, String outFormat, Object value)
void writeBoolean(boolean value)
void endElement(int mode)
void configureInPlaceEditor(IElement element, String ident, String component, String action, String params, int rows)
HTMLComponent(IElement iel, boolean toString)
HTMLComponent(IElement iel)
void writeElement(int mode)
void writeDate(Date date, String mode)
void startElement(int mode)
void setEditable(boolean editable)
void writeNumber(Number number, String mode)
void writeBytes(long bytes)
void configureFeditor(IElement element, String ident, String component, String action, String params, int rows)
String strElement(int mode)
HTMLGenerator endJavaScript()
HTMLGenerator startJavaScript()
HTMLGenerator write(String value)
static String get(String msg)
static I18nCompatibilityWrapper compatibility()
IConstructor getConstructor()