001: /*******************************************************************************
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: *******************************************************************************/package org.ofbiz.widget.form;
019:
020: import java.util.Map;
021:
022: /**
023: * Widget Library - Form String Renderer interface
024: */
025: public interface FormStringRenderer {
026: public void renderDisplayField(StringBuffer buffer, Map context,
027: ModelFormField.DisplayField displayField);
028:
029: public void renderHyperlinkField(StringBuffer buffer, Map context,
030: ModelFormField.HyperlinkField hyperlinkField);
031:
032: public void renderTextField(StringBuffer buffer, Map context,
033: ModelFormField.TextField textField);
034:
035: public void renderTextareaField(StringBuffer buffer, Map context,
036: ModelFormField.TextareaField textareaField);
037:
038: public void renderDateTimeField(StringBuffer buffer, Map context,
039: ModelFormField.DateTimeField dateTimeField);
040:
041: public void renderDropDownField(StringBuffer buffer, Map context,
042: ModelFormField.DropDownField dropDownField);
043:
044: public void renderCheckField(StringBuffer buffer, Map context,
045: ModelFormField.CheckField checkField);
046:
047: public void renderRadioField(StringBuffer buffer, Map context,
048: ModelFormField.RadioField radioField);
049:
050: public void renderSubmitField(StringBuffer buffer, Map context,
051: ModelFormField.SubmitField submitField);
052:
053: public void renderResetField(StringBuffer buffer, Map context,
054: ModelFormField.ResetField resetField);
055:
056: public void renderHiddenField(StringBuffer buffer, Map context,
057: ModelFormField modelFormField, String value);
058:
059: public void renderHiddenField(StringBuffer buffer, Map context,
060: ModelFormField.HiddenField hiddenField);
061:
062: public void renderIgnoredField(StringBuffer buffer, Map context,
063: ModelFormField.IgnoredField ignoredField);
064:
065: public void renderFieldTitle(StringBuffer buffer, Map context,
066: ModelFormField modelFormField);
067:
068: public void renderSingleFormFieldTitle(StringBuffer buffer,
069: Map context, ModelFormField modelFormField);
070:
071: public void renderFormOpen(StringBuffer buffer, Map context,
072: ModelForm modelForm);
073:
074: public void renderFormClose(StringBuffer buffer, Map context,
075: ModelForm modelForm);
076:
077: public void renderMultiFormClose(StringBuffer buffer, Map context,
078: ModelForm modelForm);
079:
080: public void renderFormatListWrapperOpen(StringBuffer buffer,
081: Map context, ModelForm modelForm);
082:
083: public void renderFormatListWrapperClose(StringBuffer buffer,
084: Map context, ModelForm modelForm);
085:
086: public void renderFormatHeaderRowOpen(StringBuffer buffer,
087: Map context, ModelForm modelForm);
088:
089: public void renderFormatHeaderRowClose(StringBuffer buffer,
090: Map context, ModelForm modelForm);
091:
092: public void renderFormatHeaderRowCellOpen(StringBuffer buffer,
093: Map context, ModelForm modelForm,
094: ModelFormField modelFormField);
095:
096: public void renderFormatHeaderRowCellClose(StringBuffer buffer,
097: Map context, ModelForm modelForm,
098: ModelFormField modelFormField);
099:
100: public void renderFormatHeaderRowFormCellOpen(StringBuffer buffer,
101: Map context, ModelForm modelForm);
102:
103: public void renderFormatHeaderRowFormCellClose(StringBuffer buffer,
104: Map context, ModelForm modelForm);
105:
106: public void renderFormatHeaderRowFormCellTitleSeparator(
107: StringBuffer buffer, Map context, ModelForm modelForm,
108: ModelFormField modelFormField, boolean isLast);
109:
110: public void renderFormatItemRowOpen(StringBuffer buffer,
111: Map context, ModelForm modelForm);
112:
113: public void renderFormatItemRowClose(StringBuffer buffer,
114: Map context, ModelForm modelForm);
115:
116: public void renderFormatItemRowCellOpen(StringBuffer buffer,
117: Map context, ModelForm modelForm,
118: ModelFormField modelFormField);
119:
120: public void renderFormatItemRowCellClose(StringBuffer buffer,
121: Map context, ModelForm modelForm,
122: ModelFormField modelFormField);
123:
124: public void renderFormatItemRowFormCellOpen(StringBuffer buffer,
125: Map context, ModelForm modelForm);
126:
127: public void renderFormatItemRowFormCellClose(StringBuffer buffer,
128: Map context, ModelForm modelForm);
129:
130: public void renderFormatSingleWrapperOpen(StringBuffer buffer,
131: Map context, ModelForm modelForm);
132:
133: public void renderFormatSingleWrapperClose(StringBuffer buffer,
134: Map context, ModelForm modelForm);
135:
136: public void renderFormatFieldRowOpen(StringBuffer buffer,
137: Map context, ModelForm modelForm);
138:
139: public void renderFormatFieldRowClose(StringBuffer buffer,
140: Map context, ModelForm modelForm);
141:
142: public void renderFormatFieldRowTitleCellOpen(StringBuffer buffer,
143: Map context, ModelFormField modelFormField);
144:
145: public void renderFormatFieldRowTitleCellClose(StringBuffer buffer,
146: Map context, ModelFormField modelFormField);
147:
148: public void renderFormatFieldRowSpacerCell(StringBuffer buffer,
149: Map context, ModelFormField modelFormField);
150:
151: public void renderFormatFieldRowWidgetCellOpen(StringBuffer buffer,
152: Map context, ModelFormField modelFormField, int positions,
153: int positionSpan, Integer nextPositionInRow);
154:
155: public void renderFormatFieldRowWidgetCellClose(
156: StringBuffer buffer, Map context,
157: ModelFormField modelFormField, int positions,
158: int positionSpan, Integer nextPositionInRow);
159:
160: public void renderFormatEmptySpace(StringBuffer buffer,
161: Map context, ModelForm modelForm);
162:
163: public void renderTextFindField(StringBuffer buffer, Map context,
164: ModelFormField.TextFindField textField);
165:
166: public void renderDateFindField(StringBuffer buffer, Map context,
167: ModelFormField.DateFindField textField);
168:
169: public void renderRangeFindField(StringBuffer buffer, Map context,
170: ModelFormField.RangeFindField textField);
171:
172: public void renderLookupField(StringBuffer buffer, Map context,
173: ModelFormField.LookupField textField);
174:
175: public void renderFileField(StringBuffer buffer, Map context,
176: ModelFormField.FileField textField);
177:
178: public void renderPasswordField(StringBuffer buffer, Map context,
179: ModelFormField.PasswordField textField);
180:
181: public void renderImageField(StringBuffer buffer, Map context,
182: ModelFormField.ImageField textField);
183:
184: public void renderBanner(StringBuffer buffer, Map context,
185: ModelForm.Banner banner);
186:
187: public void renderFieldGroupOpen(StringBuffer buffer, Map context,
188: ModelForm.FieldGroup fieldGroup);
189:
190: public void renderFieldGroupClose(StringBuffer buffer, Map context,
191: ModelForm.FieldGroup fieldGroup);
192: }
|