KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > collection > SimpleItemContext


1 /*
2  * Created on 14 avr. 2004
3  *
4  * Copyright Improve SA 2004.
5  * All rights reserved.
6  */

7 package fr.improve.struts.taglib.layout.collection;
8
9 /**
10  * Simple bean holding a collectionItem tag attributes.
11  *
12  * The instance varibales are public only for compatibility reason, and will be moved to package.
13  *
14  * @author jnribette
15  */

16 public class SimpleItemContext implements ItemContext {
17     public String JavaDoc arg0;
18     public String JavaDoc arg1;
19     String JavaDoc title;
20     
21     String JavaDoc onclick;
22     public String JavaDoc property;
23     public String JavaDoc sortProperty;
24     String JavaDoc target;
25     String JavaDoc url;
26     public String JavaDoc width;
27     
28     String JavaDoc footer;
29     String JavaDoc footerArg0;
30     String JavaDoc footerArg1;
31     
32     String JavaDoc item;
33     
34     String JavaDoc mathOperation;
35     String JavaDoc mathPattern;
36     
37     public SimpleItemContext() {
38         // Do nothing.
39
}
40     
41     /**
42      * @param in_context
43      */

44     public SimpleItemContext(ItemContext in_context) {
45         arg0 = in_context.getArg0();
46         arg1 = in_context.getArg1();
47         title = in_context.getTitle();
48         onclick = in_context.getOnclick();
49         property = in_context.getProperty();
50         sortProperty = in_context.getSortProperty();
51         target = in_context.getTarget();
52         url = in_context.getUrl();
53         width = in_context.getWidth();
54         footer = in_context.getFooter();
55         footerArg0 = in_context.getFooterArg0();
56         footerArg1 = in_context.getFooterArg1();
57         
58         item = in_context.getItem();
59         mathOperation = in_context.getMathOperation();
60         mathPattern = in_context.getMathPattern();
61     }
62     public String JavaDoc getArg0() {
63         return arg0;
64     }
65     public String JavaDoc getArg1() {
66         return arg1;
67     }
68     public String JavaDoc getItem() {
69         return item;
70     }
71     public String JavaDoc getOnclick() {
72         return onclick;
73     }
74     public String JavaDoc getProperty() {
75         return property;
76     }
77     public String JavaDoc getSortProperty() {
78         return sortProperty;
79     }
80     public String JavaDoc getTarget() {
81         return target;
82     }
83     public String JavaDoc getTitle() {
84         return title;
85     }
86     public String JavaDoc getUrl() {
87         return url;
88     }
89     public String JavaDoc getWidth() {
90         return width;
91     }
92     public String JavaDoc getMathOperation() {
93         return mathOperation;
94     }
95     public String JavaDoc getMathPattern() {
96         return mathPattern;
97     }
98     public void reset() {
99         arg0 = null;
100         arg1 = null;
101         item = null;
102         
103         footerArg0 = null;
104         footerArg1 = null;
105         footer = null;
106         
107         onclick = null;
108         property = null;
109         sortProperty = null;
110         target = null;
111         title = null;
112         url = null;
113         width = null;
114         mathOperation = null;
115         mathPattern = null;
116     }
117     public String JavaDoc getFooter() {
118         return footer;
119     }
120     public String JavaDoc getFooterArg0() {
121         return footerArg0;
122     }
123     public String JavaDoc getFooterArg1() {
124         return footerArg1;
125     }
126     public void setArg0(String JavaDoc arg0) {
127         this.arg0 = arg0;
128     }
129     public void setArg1(String JavaDoc arg1) {
130         this.arg1 = arg1;
131     }
132     public void setFooter(String JavaDoc footer) {
133         this.footer = footer;
134     }
135     public void setFooterArg0(String JavaDoc footerArg0) {
136         this.footerArg0 = footerArg0;
137     }
138     public void setFooterArg1(String JavaDoc footerArg1) {
139         this.footerArg1 = footerArg1;
140     }
141     public void setItem(String JavaDoc item) {
142         this.item = item;
143     }
144     public void setMathOperation(String JavaDoc mathOperation) {
145         this.mathOperation = mathOperation;
146     }
147     public void setMathPattern(String JavaDoc mathPattern) {
148         this.mathPattern = mathPattern;
149     }
150     public void setOnclick(String JavaDoc onclick) {
151         this.onclick = onclick;
152     }
153     public void setProperty(String JavaDoc property) {
154         this.property = property;
155     }
156     public void setSortProperty(String JavaDoc sortProperty) {
157         this.sortProperty = sortProperty;
158     }
159     public void setTarget(String JavaDoc target) {
160         this.target = target;
161     }
162     public void setTitle(String JavaDoc title) {
163         this.title = title;
164     }
165     public void setUrl(String JavaDoc url) {
166         this.url = url;
167     }
168     public void setWidth(String JavaDoc width) {
169         this.width = width;
170     }
171 }
172
Popular Tags