01: package com.salmonllc.jsp.tags;
02:
03: /////////////////////////
04: //$Archive: /SOFIA/SourceCode/com/salmonllc/jsp/tags/DataSourceJoinFieldTag.java $
05: //$Author: Srufle $
06: //$Revision: 6 $
07: //$Modtime: 4/15/03 1:56a $
08: /////////////////////////
09: /**
10: * Implements the bucket tag.
11: */
12: public class DataSourceJoinFieldTag extends BaseEmptyTag {
13: String _field1;
14: String _field2;
15:
16: /**
17: * This method must be implemented by each subclass of this tag. Each tag except NestedTags has an Html or Jsp Component associated with it. This method must be implemented to insure that the correct component gets created.
18: */
19: public com.salmonllc.html.HtmlComponent createComponent() {
20: DataSourceJoinTag tag = getHelper().getDataSourceJoinTag();
21: if (tag != null) {
22: tag.addColumn(_field1, _field2);
23: }
24: return null;
25: }
26:
27: /**
28: * Returns CONV_DONT_CONVERT
29: */
30: public int getTagConvertType() {
31: return CONV_DONT_CONVERT;
32: }
33:
34: /**
35: * Release resources used by the tag.
36: */
37: public void release() {
38: super .release();
39:
40: _field1 = null;
41: _field2 = null;
42:
43: }
44:
45: /**
46: * Sets the fieldName1 attribute.
47: */
48: public void setFieldname1(String value) {
49: _field1 = value;
50: }
51:
52: /**
53: * Sets the fieldName2 attribute.
54: */
55: public void setFieldname2(String value) {
56: _field2 = value;
57: }
58: }
|