質問編集履歴

1

構造の追記。

2016/08/10 02:15

投稿

apricot-works
apricot-works

スコア15

test CHANGED
File without changes
test CHANGED
@@ -128,6 +128,80 @@
128
128
 
129
129
 
130
130
 
131
+ 各種構造は以下の通り。
132
+
133
+ ```JAVA
134
+
135
+ public class testForm extends ActionForm {
136
+
137
+ private List _rows = new ArrayList();
138
+
139
+ private List _cols = new ArrayList();
140
+
141
+ public List getRows() {
142
+
143
+ return _rows;
144
+
145
+ }
146
+
147
+ public void setRows(List rows) {
148
+
149
+ _rows = rows;
150
+
151
+ }
152
+
153
+ public RowItem getRow(int index) {
154
+
155
+ return (RowItem) _rows.get(index);
156
+
157
+ }
158
+
159
+ public List getCols() {
160
+
161
+ return _cols;
162
+
163
+ }
164
+
165
+ public void setCols(List cols) {
166
+
167
+ _cols = cols;
168
+
169
+ }
170
+
171
+ public ColItem getCol(int index) {
172
+
173
+ return (ColItem) _cols.get(index);
174
+
175
+ }
176
+
177
+ }
178
+
179
+ public class RowItem {
180
+
181
+ private String _code = "";
182
+
183
+ private String _col_name1 = "";
184
+
185
+ ・・・
186
+
187
+ private String _col_name10 = "";
188
+
189
+ }
190
+
191
+ public class ColItem {
192
+
193
+ private String _col_name = "";
194
+
195
+ private String _col_type = "";
196
+
197
+ ・・・
198
+
199
+ }
200
+
201
+
202
+
203
+ ```
204
+
131
205
  なぜかcolのループの中でrowのindexがカウントアップされてしまいます。
132
206
 
133
207