View Javadoc
1   package gboat2.base.view.jsp;
2   
3   import gboat2.base.view.GboatViewUtil;
4   import gboat2.base.view.components.Grid;
5   
6   import javax.servlet.http.HttpServletRequest;
7   import javax.servlet.http.HttpServletResponse;
8   
9   import org.apache.struts2.components.Component;
10  import org.apache.struts2.views.jsp.ui.AbstractClosingTag;
11  
12  import com.opensymphony.xwork2.util.ValueStack;
13  
14  /**
15   * 
16   * @author <a href="mailto:[email protected]">何明旺</a>
17   * @since 3.0
18   * @date 2014年5月4日
19   */
20  public class GridTag extends AbstractClosingTag {
21      private static final long serialVersionUID = 1L;
22  
23      protected String width;
24      protected String height;
25      protected String sortname;
26      protected String gridview;
27      protected String autowidth;
28      protected String sortorder;
29      protected String loadonce;
30      protected String multiselect;
31      protected String multiboxonly;
32      protected String editurl;
33      protected String editinline;
34      protected String caption;
35      protected String shrinkToFit;
36      protected String gridModel;
37      protected String scroll;
38      protected String navigator;
39      protected String navigatorEditOptions;
40      protected String navigatorAddOptions;
41      protected String navigatorDeleteOptions;
42      protected String navigatorSearchOptions;
43      protected String navigatorViewOptions;
44      protected String navigatorAdd;
45      protected String navigatorDelete;
46      protected String navigatorEdit;
47      protected String navigatorRefresh;
48      protected String navigatorSearch;
49      protected String navigatorView;
50      protected String navigatorExtraButtons;
51      protected String navigatorInlineEditButtons;
52      protected String navigatorCloneToTop;
53      protected String autoencode;
54      protected String cellEdit;
55      protected String cellurl;
56      protected String cellsubmit;
57      protected String footerrow;
58      protected String hiddengrid;
59      protected String hidegrid;
60      protected String hoverrows;
61      protected String rownumbers;
62      protected String multiselectWidth;
63      protected String page;
64      protected String scrollrows;
65      protected String filter;
66      protected String subGridWidth;
67      protected String subGridUrl;
68      protected String userDataOnFooter;
69      protected String filterOptions;
70      protected String altClass;
71      protected String altRows;
72      protected String prmNames;
73      protected String direction;
74      protected String rowTotal;
75      protected String viewsortcols;
76      protected String toppager;
77  
78      protected String onSelectRowTopics;
79      protected String onSelectAllTopics;
80      protected String onSortColTopics;
81      protected String onCellSelectTopics;
82      protected String onGridCompleteTopics;
83      protected String onEditInlineBeforeTopics;
84      protected String onEditInlineSuccessTopics;
85      protected String onEditInlineErrorTopics;
86      protected String onEditInlineAfterSaveTopics;
87      protected String onCellEditSuccessTopics;
88      protected String onCellEditErrorTopics;
89      protected String onSubGridRowExpanded;
90      protected String onClickGroupTopics;
91      protected String onDblClickRowTopics;
92      protected String onRightClickRowTopics;
93  
94      protected String reloadTopics;
95  
96      protected String sortableRows;
97  
98      protected String connectWith;
99  
100     protected String groupField;
101     protected String groupColumnShow;
102     protected String groupText;
103     protected String groupCollapse;
104     protected String groupOrder;
105     protected String groupSummary;
106     protected String groupDataSorted;
107     protected String groupShowSummaryOnHide;
108     protected String groupPlusIcon;
109     protected String groupMinusIcon;
110 
111     protected String searchForm;
112 
113     @Override
114     public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
115         return new Grid(stack, req, res);
116     }
117     
118     @Override
119     protected void populateParams() {
120         super.populateParams();
121         GboatViewUtil.populateParams(this, component);
122     }
123 
124     public void setWidth(String width) {
125         this.width = width;
126     }
127 
128     public void setHeight(String height) {
129         this.height = height;
130     }
131 
132     public void setSortname(String sortname) {
133         this.sortname = sortname;
134     }
135 
136     public void setGridview(String gridview) {
137         this.gridview = gridview;
138     }
139 
140     public void setAutowidth(String autowidth) {
141         this.autowidth = autowidth;
142     }
143 
144     public void setSortorder(String sortorder) {
145         this.sortorder = sortorder;
146     }
147 
148     public void setLoadonce(String loadonce) {
149         this.loadonce = loadonce;
150     }
151 
152     public void setMultiselect(String multiselect) {
153         this.multiselect = multiselect;
154     }
155 
156     public void setMultiboxonly(String multiboxonly) {
157         this.multiboxonly = multiboxonly;
158     }
159 
160     public void setEditurl(String editurl) {
161         this.editurl = editurl;
162     }
163 
164     public void setCaption(String caption) {
165         this.caption = caption;
166     }
167 
168     public void setShrinkToFit(String shrinkToFit) {
169         this.shrinkToFit = shrinkToFit;
170     }
171 
172     public void setGridModel(String gridModel) {
173         this.gridModel = gridModel;
174     }
175 
176     public void setScroll(String scroll) {
177         this.scroll = scroll;
178     }
179 
180     public void setNavigator(String navigator) {
181         this.navigator = navigator;
182     }
183 
184     public void setNavigatorEditOptions(String navigatorEditOptions) {
185         this.navigatorEditOptions = navigatorEditOptions;
186     }
187 
188     public void setNavigatorAddOptions(String navigatorAddOptions) {
189         this.navigatorAddOptions = navigatorAddOptions;
190     }
191 
192     public void setNavigatorDeleteOptions(String navigatorDeleteOptions) {
193         this.navigatorDeleteOptions = navigatorDeleteOptions;
194     }
195 
196     public void setNavigatorSearchOptions(String navigatorSearchOptions) {
197         this.navigatorSearchOptions = navigatorSearchOptions;
198     }
199 
200     public void setNavigatorViewOptions(String navigatorViewOptions) {
201         this.navigatorViewOptions = navigatorViewOptions;
202     }
203 
204     public void setAutoencode(String autoencode) {
205         this.autoencode = autoencode;
206     }
207 
208     public void setCellEdit(String cellEdit) {
209         this.cellEdit = cellEdit;
210     }
211 
212     public void setCellurl(String cellurl) {
213         this.cellurl = cellurl;
214     }
215 
216     public void setCellsubmit(String cellsubmit) {
217         this.cellsubmit = cellsubmit;
218     }
219 
220     public void setFooterrow(String footerrow) {
221         this.footerrow = footerrow;
222     }
223 
224     public void setHiddengrid(String hiddengrid) {
225         this.hiddengrid = hiddengrid;
226     }
227 
228     public void setHidegrid(String hidegrid) {
229         this.hidegrid = hidegrid;
230     }
231 
232     public void setHoverrows(String hoverrows) {
233         this.hoverrows = hoverrows;
234     }
235 
236     public void setRownumbers(String rownumbers) {
237         this.rownumbers = rownumbers;
238     }
239 
240     public void setMultiselectWidth(String multiselectWidth) {
241         this.multiselectWidth = multiselectWidth;
242     }
243 
244     public void setPage(String page) {
245         this.page = page;
246     }
247 
248     public void setScrollrows(String scrollrows) {
249         this.scrollrows = scrollrows;
250     }
251 
252     public void setNavigatorAdd(String navigatorAdd) {
253         this.navigatorAdd = navigatorAdd;
254     }
255 
256     public void setNavigatorDelete(String navigatorDelete) {
257         this.navigatorDelete = navigatorDelete;
258     }
259 
260     public void setNavigatorEdit(String navigatorEdit) {
261         this.navigatorEdit = navigatorEdit;
262     }
263 
264     public void setNavigatorRefresh(String navigatorRefresh) {
265         this.navigatorRefresh = navigatorRefresh;
266     }
267 
268     public void setNavigatorSearch(String navigatorSearch) {
269         this.navigatorSearch = navigatorSearch;
270     }
271 
272     public void setNavigatorView(String navigatorView) {
273         this.navigatorView = navigatorView;
274     }
275 
276     public void setNavigatorExtraButtons(String navigatorExtraButtons) {
277         this.navigatorExtraButtons = navigatorExtraButtons;
278     }
279 
280     public void setNavigatorInlineEditButtons(String navigatorInlineEditButtons) {
281         this.navigatorInlineEditButtons = navigatorInlineEditButtons;
282     }
283 
284     public void setNavigatorCloneToTop(String navigatorCloneToTop) {
285         this.navigatorCloneToTop = navigatorCloneToTop;
286     }
287 
288     public void setFilter(String filter) {
289         this.filter = filter;
290     }
291 
292     public void setToppager(String toppager) {
293         this.toppager = toppager;
294     }
295 
296     public void setOnSelectRowTopics(String onSelectRowTopics) {
297         this.onSelectRowTopics = onSelectRowTopics;
298     }
299 
300     public void setOnSelectAllTopics(String onSelectAllTopics) {
301         this.onSelectAllTopics = onSelectAllTopics;
302     }
303 
304     public void setOnSortColTopics(String onSortColTopics) {
305         this.onSortColTopics = onSortColTopics;
306     }
307 
308     public void setOnCellSelectTopics(String onCellSelectTopics) {
309         this.onCellSelectTopics = onCellSelectTopics;
310     }
311 
312     public void setOnGridCompleteTopics(String onGridCompleteTopics) {
313         this.onGridCompleteTopics = onGridCompleteTopics;
314     }
315 
316     public void setOnEditInlineBeforeTopics(String onEditInlineBeforeTopics) {
317         this.onEditInlineBeforeTopics = onEditInlineBeforeTopics;
318     }
319 
320     public void setOnEditInlineSuccessTopics(String onEditInlineSuccessTopics) {
321         this.onEditInlineSuccessTopics = onEditInlineSuccessTopics;
322     }
323 
324     public void setOnEditInlineErrorTopics(String onEditInlineErrorTopics) {
325         this.onEditInlineErrorTopics = onEditInlineErrorTopics;
326     }
327 
328     public void setOnEditInlineAfterSaveTopics(
329             String onEditInlineAfterSaveTopics) {
330         this.onEditInlineAfterSaveTopics = onEditInlineAfterSaveTopics;
331     }
332 
333     public void setEditinline(String editinline) {
334         this.editinline = editinline;
335     }
336 
337     public void setSubGridWidth(String subGridWidth) {
338         this.subGridWidth = subGridWidth;
339     }
340 
341     public void setSubGridUrl(String subGridUrl) {
342         this.subGridUrl = subGridUrl;
343     }
344 
345     public void setUserDataOnFooter(String userDataOnFooter) {
346         this.userDataOnFooter = userDataOnFooter;
347     }
348 
349     public void setFilterOptions(String filterOptions) {
350         this.filterOptions = filterOptions;
351     }
352 
353     public void setAltClass(String altClass) {
354         this.altClass = altClass;
355     }
356 
357     public void setAltRows(String altRows) {
358         this.altRows = altRows;
359     }
360 
361     public void setPrmNames(String prmNames) {
362         this.prmNames = prmNames;
363     }
364 
365     public void setDirection(String direction) {
366         this.direction = direction;
367     }
368 
369     public void setRowTotal(String rowTotal) {
370         this.rowTotal = rowTotal;
371     }
372 
373     public void setViewsortcols(String viewsortcols) {
374         this.viewsortcols = viewsortcols;
375     }
376 
377     public void setSortableRows(String sortableRows) {
378         this.sortableRows = sortableRows;
379     }
380 
381     public void setConnectWith(String connectWith) {
382         this.connectWith = connectWith;
383     }
384 
385     public void setReloadTopics(String reloadTopics) {
386         this.reloadTopics = reloadTopics;
387     }
388 
389     public void setGroupField(String groupField) {
390         this.groupField = groupField;
391     }
392 
393     public void setGroupColumnShow(String groupColumnShow) {
394         this.groupColumnShow = groupColumnShow;
395     }
396 
397     public void setGroupText(String groupText) {
398         this.groupText = groupText;
399     }
400 
401     public void setGroupCollapse(String groupCollapse) {
402         this.groupCollapse = groupCollapse;
403     }
404 
405     public void setGroupOrder(String groupOrder) {
406         this.groupOrder = groupOrder;
407     }
408 
409     public void setGroupSummary(String groupSummary) {
410         this.groupSummary = groupSummary;
411     }
412 
413     public void setGroupDataSorted(String groupDataSorted) {
414         this.groupDataSorted = groupDataSorted;
415     }
416 
417     public void setGroupShowSummaryOnHide(String groupShowSummaryOnHide) {
418         this.groupShowSummaryOnHide = groupShowSummaryOnHide;
419     }
420 
421     public void setGroupPlusIcon(String groupPlusIcon) {
422         this.groupPlusIcon = groupPlusIcon;
423     }
424 
425     public void setGroupMinusIcon(String groupMinusIcon) {
426         this.groupMinusIcon = groupMinusIcon;
427     }
428 
429     public void setOnCellEditSuccessTopics(String onCellEditSuccessTopics) {
430         this.onCellEditSuccessTopics = onCellEditSuccessTopics;
431     }
432 
433     public void setOnCellEditErrorTopics(String onCellEditErrorTopics) {
434         this.onCellEditErrorTopics = onCellEditErrorTopics;
435     }
436 
437     public void setOnSubGridRowExpanded(String onSubGridRowExpanded) {
438         this.onSubGridRowExpanded = onSubGridRowExpanded;
439     }
440 
441     public void setOnClickGroupTopics(String onClickGroupTopics) {
442         this.onClickGroupTopics = onClickGroupTopics;
443     }
444 
445     public void setOnDblClickRowTopics(String onDblClickRowTopics) {
446         this.onDblClickRowTopics = onDblClickRowTopics;
447     }
448 
449     public void setOnRightClickRowTopics(String onRightClickRowTopics) {
450         this.onRightClickRowTopics = onRightClickRowTopics;
451     }
452     
453     public void setSearchForm(String searchForm) {
454         this.searchForm = searchForm;
455     }
456 }