List of usage examples for java.io StringWriter append
public StringWriter append(char c)
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatFieldRowWidgetCellClose(Appendable writer, Map<String, Object> context, ModelFormField modelFormField, int positions, int positionSpan, Integer nextPositionInRow) throws IOException { StringWriter sr = new StringWriter(); sr.append("<@renderFormatFieldRowWidgetCellClose />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatItemRowClose(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException { StringWriter sr = new StringWriter(); sr.append("<@renderFormatItemRowClose "); sr.append(" formName=\""); sr.append(modelForm.getName());//from w w w . ja v a 2 s . c o m sr.append("\"/>"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatItemRowCellClose(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField) throws IOException { StringWriter sr = new StringWriter(); sr.append("<@renderFormatItemRowCellClose"); sr.append(" fieldName=\""); sr.append(modelFormField.getName()); sr.append("\"/>"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatSingleWrapperClose(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException { StringWriter sr = new StringWriter(); sr.append("<@renderFormatSingleWrapperClose"); sr.append(" formName=\""); sr.append(modelForm.getName());//from w w w .ja v a 2 s .com sr.append("\"/>"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatHeaderRowOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException { String headerStyle = FlexibleStringExpander.expandString(modelForm.getHeaderRowStyle(), context); StringWriter sr = new StringWriter(); sr.append("<@renderFormatHeaderRowOpen "); sr.append(" style=\""); sr.append(headerStyle);/*from w ww.ja va 2 s .co m*/ sr.append("\" />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatHeaderRowFormCellOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException { String areaStyle = modelForm.getFormTitleAreaStyle(); StringWriter sr = new StringWriter(); sr.append("<@renderFormatHeaderRowFormCellOpen "); sr.append(" style=\""); sr.append(areaStyle);/*ww w. j a v a2 s.c o m*/ sr.append("\" />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatItemRowFormCellOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException { String areaStyle = modelForm.getFormTitleAreaStyle(); StringWriter sr = new StringWriter(); sr.append("<@renderFormatItemRowFormCellOpen "); sr.append(" style=\""); sr.append(areaStyle);// w ww .j a v a 2s.c o m sr.append("\" />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatFieldRowTitleCellOpen(Appendable writer, Map<String, Object> context, ModelFormField modelFormField) throws IOException { String style = modelFormField.getTitleAreaStyle(); StringWriter sr = new StringWriter(); sr.append("<@renderFormatFieldRowTitleCellOpen "); sr.append(" style=\""); sr.append(style);/*w w w . j av a2 s. co m*/ sr.append("\" />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatHeaderRowCellOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField, int positionSpan) throws IOException { String areaStyle = modelFormField.getTitleAreaStyle(); StringWriter sr = new StringWriter(); sr.append("<@renderFormatHeaderRowCellOpen "); sr.append(" style=\""); sr.append(areaStyle);//from w w w . ja v a 2s. c o m sr.append("\" positionSpan="); sr.append(Integer.toString(positionSpan)); sr.append(" />"); executeMacro(writer, sr.toString()); }
From source file:org.ofbiz.widget.form.MacroFormRenderer.java
public void renderFormatHeaderRowFormCellTitleSeparator(Appendable writer, Map<String, Object> context, ModelForm modelForm, ModelFormField modelFormField, boolean isLast) throws IOException { String titleStyle = modelFormField.getTitleStyle(); StringWriter sr = new StringWriter(); sr.append("<@renderFormatHeaderRowFormCellTitleSeparator "); sr.append(" style=\""); sr.append(titleStyle);//from ww w . j a va 2s . c o m sr.append("\" isLast="); sr.append(Boolean.toString(isLast)); sr.append(" />"); executeMacro(writer, sr.toString()); }