001: /*
002: * $Id: FormStringRenderer.java,v 1.2 2003/11/05 00:15:48 byersa Exp $
003: *
004: * Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
005: *
006: * Permission is hereby granted, free of charge, to any person obtaining a
007: * copy of this software and associated documentation files (the "Software"),
008: * to deal in the Software without restriction, including without limitation
009: * the rights to use, copy, modify, merge, publish, distribute, sublicense,
010: * and/or sell copies of the Software, and to permit persons to whom the
011: * Software is furnished to do so, subject to the following conditions:
012: *
013: * The above copyright notice and this permission notice shall be included
014: * in all copies or substantial portions of the Software.
015: *
016: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
017: * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
018: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
019: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
020: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
021: * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
022: * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
023: */
024: package org.ofbiz.content.widget.form;
025:
026: import java.util.Map;
027:
028: /**
029: * Widget Library - Form String Renderer interface
030: *
031: * @author <a href="mailto:jonesde@ofbiz.org">David E. Jones</a>
032: * @author <a href="mailto:byersa@automationgroups.com">Al Byers</a>
033: * @version $Revision: 1.2 $
034: * @since 2.2
035: */
036: public interface FormStringRenderer {
037: public void renderDisplayField(StringBuffer buffer, Map context,
038: ModelFormField.DisplayField displayField);
039:
040: public void renderHyperlinkField(StringBuffer buffer, Map context,
041: ModelFormField.HyperlinkField hyperlinkField);
042:
043: public void renderTextField(StringBuffer buffer, Map context,
044: ModelFormField.TextField textField);
045:
046: public void renderTextareaField(StringBuffer buffer, Map context,
047: ModelFormField.TextareaField textareaField);
048:
049: public void renderDateTimeField(StringBuffer buffer, Map context,
050: ModelFormField.DateTimeField dateTimeField);
051:
052: public void renderDropDownField(StringBuffer buffer, Map context,
053: ModelFormField.DropDownField dropDownField);
054:
055: public void renderCheckField(StringBuffer buffer, Map context,
056: ModelFormField.CheckField checkField);
057:
058: public void renderRadioField(StringBuffer buffer, Map context,
059: ModelFormField.RadioField radioField);
060:
061: public void renderSubmitField(StringBuffer buffer, Map context,
062: ModelFormField.SubmitField submitField);
063:
064: public void renderResetField(StringBuffer buffer, Map context,
065: ModelFormField.ResetField resetField);
066:
067: public void renderHiddenField(StringBuffer buffer, Map context,
068: ModelFormField modelFormField, String value);
069:
070: public void renderHiddenField(StringBuffer buffer, Map context,
071: ModelFormField.HiddenField hiddenField);
072:
073: public void renderIgnoredField(StringBuffer buffer, Map context,
074: ModelFormField.IgnoredField ignoredField);
075:
076: public void renderFieldTitle(StringBuffer buffer, Map context,
077: ModelFormField modelFormField);
078:
079: public void renderFormOpen(StringBuffer buffer, Map context,
080: ModelForm modelForm);
081:
082: public void renderFormClose(StringBuffer buffer, Map context,
083: ModelForm modelForm);
084:
085: public void renderFormatListWrapperOpen(StringBuffer buffer,
086: Map context, ModelForm modelForm);
087:
088: public void renderFormatListWrapperClose(StringBuffer buffer,
089: Map context, ModelForm modelForm);
090:
091: public void renderFormatHeaderRowOpen(StringBuffer buffer,
092: Map context, ModelForm modelForm);
093:
094: public void renderFormatHeaderRowClose(StringBuffer buffer,
095: Map context, ModelForm modelForm);
096:
097: public void renderFormatHeaderRowCellOpen(StringBuffer buffer,
098: Map context, ModelForm modelForm,
099: ModelFormField modelFormField);
100:
101: public void renderFormatHeaderRowCellClose(StringBuffer buffer,
102: Map context, ModelForm modelForm,
103: ModelFormField modelFormField);
104:
105: public void renderFormatHeaderRowFormCellOpen(StringBuffer buffer,
106: Map context, ModelForm modelForm);
107:
108: public void renderFormatHeaderRowFormCellClose(StringBuffer buffer,
109: Map context, ModelForm modelForm);
110:
111: public void renderFormatHeaderRowFormCellTitleSeparator(
112: StringBuffer buffer, Map context, ModelForm modelForm,
113: ModelFormField modelFormField, boolean isLast);
114:
115: public void renderFormatItemRowOpen(StringBuffer buffer,
116: Map context, ModelForm modelForm);
117:
118: public void renderFormatItemRowClose(StringBuffer buffer,
119: Map context, ModelForm modelForm);
120:
121: public void renderFormatItemRowCellOpen(StringBuffer buffer,
122: Map context, ModelForm modelForm,
123: ModelFormField modelFormField);
124:
125: public void renderFormatItemRowCellClose(StringBuffer buffer,
126: Map context, ModelForm modelForm,
127: ModelFormField modelFormField);
128:
129: public void renderFormatItemRowFormCellOpen(StringBuffer buffer,
130: Map context, ModelForm modelForm);
131:
132: public void renderFormatItemRowFormCellClose(StringBuffer buffer,
133: Map context, ModelForm modelForm);
134:
135: public void renderFormatSingleWrapperOpen(StringBuffer buffer,
136: Map context, ModelForm modelForm);
137:
138: public void renderFormatSingleWrapperClose(StringBuffer buffer,
139: Map context, ModelForm modelForm);
140:
141: public void renderFormatFieldRowOpen(StringBuffer buffer,
142: Map context, ModelForm modelForm);
143:
144: public void renderFormatFieldRowClose(StringBuffer buffer,
145: Map context, ModelForm modelForm);
146:
147: public void renderFormatFieldRowTitleCellOpen(StringBuffer buffer,
148: Map context, ModelFormField modelFormField);
149:
150: public void renderFormatFieldRowTitleCellClose(StringBuffer buffer,
151: Map context, ModelFormField modelFormField);
152:
153: public void renderFormatFieldRowSpacerCell(StringBuffer buffer,
154: Map context, ModelFormField modelFormField);
155:
156: public void renderFormatFieldRowWidgetCellOpen(StringBuffer buffer,
157: Map context, ModelFormField modelFormField, int positions,
158: int positionSpan, Integer nextPositionInRow);
159:
160: public void renderFormatFieldRowWidgetCellClose(
161: StringBuffer buffer, Map context,
162: ModelFormField modelFormField, int positions,
163: int positionSpan, Integer nextPositionInRow);
164:
165: public void renderFormatEmptySpace(StringBuffer buffer,
166: Map context, ModelForm modelForm);
167:
168: public void renderTextFindField(StringBuffer buffer, Map context,
169: ModelFormField.TextFindField textField);
170:
171: public void renderDateFindField(StringBuffer buffer, Map context,
172: ModelFormField.DateFindField textField);
173:
174: public void renderRangeFindField(StringBuffer buffer, Map context,
175: ModelFormField.RangeFindField textField);
176:
177: public void renderLookupField(StringBuffer buffer, Map context,
178: ModelFormField.LookupField textField);
179:
180: public void renderFileField(StringBuffer buffer, Map context,
181: ModelFormField.FileField textField);
182: }
|