001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.plugin.view;
017    
018    import org.opengion.hayabusa.common.HybsSystem;
019    import org.opengion.hayabusa.db.DBTableModel;
020    import org.opengion.hayabusa.html.AbstractViewForm;
021    import org.opengion.fukurou.model.Formatter;
022    import org.opengion.fukurou.util.StringUtil;
023    
024    /**
025     * 検索結果をè?動的に表形式に変換する、テーブル作æ?クラスですã?
026     *
027     * AbstractViewForm により、setter/getterメソãƒ?ƒ‰のãƒ?ƒ•ォルト実è£?‚’提供してã�?�¾すã?
028     * 各HTMLのタグにå¿?¦�な setter/getterメソãƒ?ƒ‰のみ?Œ追åŠ?®š義してã�?�¾すã?
029     *
030     * AbstractViewForm を継承してã�?‚‹為,ロケールに応じたラベルをå?力させる事が出来ますã?
031     *
032     * @og.group 画面表示
033     *
034     * @version  4.0
035     * @author       Kazuhiko Hasegawa
036     * @since    JDK5.0,
037     */
038    public class ViewForm_HTMLTable extends AbstractViewForm {
039            //* こã?プログラãƒ??VERSIONæ–?­—å?を設定しますã?       {@value} */
040            private static final String VERSION = "5.3.4.0 (2011/04/01)" ;
041    
042    //      private String  caption          = null;                // 表のタイトル          5.1.6.0 (2010/05/01) 削除
043            private String  cacheTag         = null;                // 3.5.5.5 (2004/04/23)
044            private boolean isCache          = false;               // 3.5.5.5 (2004/04/23)
045            private int[]   popupClmNo       = null;                // 3.8.6.1 (2006/10/20)
046    
047    //      protected int[]         rowNo            = null;        // 5.1.6.0 (2010/05/01) 削除
048            /** ヘッãƒ??部åˆ??キャãƒ?‚·ュ変数 */
049            protected String        headerLine       = null;        // 3.5.2.0 (2003/10/20)
050    
051            private final boolean   useRowId         = HybsSystem.sysBool( "USE_CHECKBOX_ROW_ID" ) ;        // 3.6.0.0 (2004/09/17)
052    
053            // 5.2.3.0 (2010/12/01) ãƒ??ブル罫線対å¿?
054            private final String    tableParam       = HybsSystem.sys( "HTML_TABLE_PARAM" ) ;
055    
056            // 3.6.0.0 (2004/09/17) チェãƒ?‚¯済みの行ã?先é?に、フォーカスを当てるå?ç�?
057            private static final String LAYER_FOCUS = "<a href=\"#top\" name=\"h_fcs\" id=\"h_fcs\" ></a>" ;
058    
059            // 4.3.4.4 (2009/01/01)
060    //      /**
061    //       * ãƒ?ƒ•ォルトコンストラクター
062    //       *
063    //       */
064    //      public ViewForm_HTMLTable() {
065    //              super();
066    //              super.clear();
067    //      }
068    
069            /**
070             * å†?®¹をクリア(初期åŒ?しますã?
071             *
072             * @og.rev 3.1.1.0 (2003/03/28) 同期メソãƒ?ƒ‰(synchronized付き)を非同期に変更するã€?
073             * @og.rev 3.5.2.0 (2003/10/20) ヘッãƒ??繰り返し属æ?( headerSkipCount )を採用
074             * @og.rev 3.5.5.5 (2004/04/23) cacheTag,isCache 属æ?追åŠ?チェãƒ?‚¯ボックス作æ?用)
075             * @og.rev 3.5.6.2 (2004/07/05) bgColorCycle 変数の削除ã€?
076             * @og.rev 3.8.6.1 (2006/10/20) popup の値を返す為のカラãƒ?•ª号配å?(popupClmNo)追åŠ?
077             * @og.rev 5.1.6.0 (2010/05/01) caption 属æ?が使われてã�?�ªã�?�Ÿめã?削除するã€?
078             */
079            @Override
080            public void clear() {
081                    super.clear();
082    //              caption          = null;                                                                // 表のタイトル
083                    cacheTag         = null;                // 3.5.5.5 (2004/04/23)
084                    isCache          = false;               // 3.5.5.5 (2004/04/23)
085                    popupClmNo       = null;                // 3.8.6.1 (2006/10/20)
086            }
087    
088            /**
089             * DBTableModel から HTMLæ–?­—å?を作æ?して返しますã?
090             * startNo(表示開始位置)から、pageSize(表示件数)までのViewæ–?­—å?を作æ?しますã?
091             * 表示残りãƒ??タã�?pageSize 以下ã?場合ã?,残りのãƒ??タをすべて出力しますã?
092             *
093             * @og.rev 3.5.2.0 (2003/10/20) ヘッãƒ??繰り返し属æ?( headerSkipCount )を採用
094             * @og.rev 3.5.3.1 (2003/10/31) skip属æ?を採用。headerLine のキャãƒ?‚·ュクリア
095             * @og.rev 3.5.5.0 (2004/03/12) No æ¬?��のもã?の作æ?判断ロジãƒ?‚¯を追åŠ?
096             * @og.rev 3.5.6.4 (2004/07/16) ヘッãƒ??とボディー部をJavaScriptでåˆ?›¢
097             * @og.rev 3.7.0.3 (2005/03/01) getBgColorCycleClass にã€?�¸択行ã?ーカーを採用
098             * @og.rev 4.3.1.0 (2008/09/08) 編é›?¡Œã?みを表示する属æ?(isSkipNoEdit)追åŠ?
099             * @og.rev 4.3.3.0 (2008/10/01) noTransition属æ?対å¿?
100             *
101             * @param  startNo        表示開始位置
102             * @param  pageSize   表示件数
103             *
104             * @return      DBTableModelから作æ?されã�?HTMLæ–?­—å?
105             */
106            public String create( final int startNo, final int pageSize )  {
107                    if( getRowCount() == 0 ) { return ""; } // 暫定å?置
108    
109                    headerLine       = null;
110                    int lastNo = getLastNo( startNo, pageSize );
111                    int blc = getBackLinkCount();
112                    int hsc = getHeaderSkipCount();         // 3.5.2.0 (2003/10/20)
113                    int hscCnt = 1;                                         // 3.5.2.0 (2003/10/20)
114    
115                    StringBuilder out = new StringBuilder( HybsSystem.BUFFER_LARGE );
116    
117                    out.append( getCountForm( startNo,pageSize ) );
118                    out.append( getHeader() );
119    
120                    String ckboxTD = "  <td>";
121    
122                    out.append("<tbody>").append( HybsSystem.CR );
123                    int bgClrCnt = 0;
124                    int clmCnt = getColumnCount();  // 3.5.5.7 (2004/05/10)
125                    for( int row=startNo; row<lastNo; row++ ) {
126    //                      if( isSkip( row ) ) { continue; }               // 3.5.3.1 (2003/10/31)
127                            if( isSkip( row ) || isSkipNoEdit( row ) ) { continue; } // 4.3.1.0 (2008/09/08)
128                            out.append("<tr").append( getBgColorCycleClass( bgClrCnt++,row ) );
129                            if( isNoTransition() ) { // 4.3.3.0 (2008/10/01)
130                                    out.append( getHiddenRowValue( row ) );
131                            }
132                            out.append(">");     // 3.7.0.3 (2005/03/01)
133                            out.append( HybsSystem.CR );
134                            // 3.5.5.0 (2004/03/12) No æ¬?��のもã?の作æ?判断追åŠ?
135                            if( isNumberDisplay() ) {
136                                    out.append( makeCheckbox( ckboxTD, row, blc ) ).append( HybsSystem.CR );
137                            }
138                            for(int column = 0; column < clmCnt; column++) {
139                                    if( isColumnDisplay( column ) ) {
140                                            out.append("  <td>");
141                                            out.append( getValueLabel(row,column) );
142                                            out.append("</td>").append( HybsSystem.CR );
143                                    }
144                            }
145                            out.append("</tr>").append( HybsSystem.CR );
146    
147                    // 3.5.2.0 (2003/10/20) ヘッãƒ??繰り返し属æ?( headerSkipCount )を採用
148                            if( hsc > 0 && hscCnt % hsc == 0 ) {
149                                    out.append( getHeadLine() );
150                                    hscCnt = 1;
151                            }
152                            else {
153                                    hscCnt ++ ;
154                            }
155                    }
156                    out.append("</tbody>").append( HybsSystem.CR );
157                    out.append("</table>").append( HybsSystem.CR );
158    
159                    out.append( getScrollBarEndDiv() );     // 3.8.0.3 (2005/07/15)
160    
161                    return out.toString();
162            }
163    
164            /**
165             * 選択用のチェãƒ?‚¯ボックスと行番号と変更タイãƒ?A,C,D)を表示しますã?
166             *
167             * @og.rev 3.5.1.0 (2003/10/03) Noカラãƒ?�«、numberType 属æ?を追åŠ?
168             * @og.rev 3.5.4.0 (2003/11/25) Formatter をローカル変数に変更
169             * @og.rev 3.5.4.1 (2003/12/01) table オブジェクトã?セãƒ?ƒˆå»?­¢
170             * @og.rev 3.5.5.5 (2004/04/23) Attributes オブジェクトã?セãƒ?ƒˆå»?­¢
171             * @og.rev 3.6.0.0 (2004/09/17) ガントチャートã?移動時にチェãƒ?‚¯するためのIDを追åŠ?
172             * @og.rev 3.6.0.0 (2004/09/17) チェãƒ?‚¯済みの行ã?先é?に、フォーカスを当てるå?ç�?‚’追åŠ?
173             * @og.rev 3.8.6.1 (2006/10/20) popup 用の値を設定する機è?を追åŠ?
174             *
175             * @param       ckboxTD チェãƒ?‚¯ボックスのタグ(マルチカラãƒ?™‚のrowspan対å¿?
176             * @param       row      行番号
177             * @param       blc      バックラインカウンãƒ?先é?へ戻るリンク間隔)
178             *
179             * @return      tdタグで囲まれたチェãƒ?‚¯ボックスのHTMLæ–?­—å?
180             */
181            protected String makeCheckbox( final String ckboxTD,final int row,final int blc ) {
182                    StringBuilder out = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
183    
184                    DBTableModel table = getDBTableModel() ;
185    
186                    String opAtt = null;
187                    String fmt = getOptionTypeAttributes();
188                    if( fmt != null ) {
189                            Formatter format = new Formatter( table );
190                            format.setFormat( fmt );
191                            opAtt = format.getFormatString( row );
192                    }
193    
194                    out.append( ckboxTD );
195                    out.append( table.getModifyType( row ) );
196                    out.append("</td>");
197                    out.append( ckboxTD );
198    
199                    // 3.5.5.5 (2004/04/23) Attributes オブジェクトã?セãƒ?ƒˆå»?­¢
200                    String inputTag = makeChboxTag();
201                    if( isWritable( row ) && inputTag != null ) {
202                            out.append( inputTag );
203                            if( opAtt != null ) { out.append( opAtt ); }
204                            if( isChecked( row ) ) {
205                                    out.append( " checked=\"checked\"" );
206                            }
207                            if( useRowId ) {        // 3.6.0.0 (2004/09/17)
208                                    out.append( " id=\"" );
209                                    out.append( HybsSystem.ROW_ID_KEY );
210                                    out.append( row ).append( "\"" );
211                            }
212                            if( popupClmNo != null ) {      // 3.8.6.1 (2006/10/20)
213                                    out = makePopupReturn( out,row );       // å†?ƒ¨で StringBuilder に append してã�?�¾すã?
214                            }
215                            out.append( " value=\"" ).append( row ).append( "\" />" );
216                    }
217                    out.append("</td>");
218                    out.append( ckboxTD );
219    
220                    // 3.5.1.0 (2003/10/03) Noカラãƒ?�«、numberType 属æ?を追åŠ?
221                    if( blc != 0 && (row+1) % blc == 0 ) {
222                            out.append( "<a href=\"#top\">" ).append( getNumberData( row ) ).append( "</a>");
223                    } else {
224                            out.append( getNumberData( row ) );
225                    }
226    
227                    // 4.3.5.3 (2008/02/22) Focus2のアンカー位置をtdタグå†?�«変更
228                    if( isFirstChecked( row ) ) {
229                            out.append( LAYER_FOCUS );
230                    }
231                    out.append("</td>");
232                    // if( isFirstChecked( row ) ) {
233                    //      out.insert( 0,LAYER_FOCUS );
234                    // }
235    
236                    return out.toString();
237            }
238    
239            /**
240             * DBTableModel から ãƒ??ブルのヘッãƒ??タグæ–?­—å?を作æ?して返しますã?
241             *
242             * <del>これは、å?部çš?�«キャãƒ?‚·ュしてã�?‚‹ため、状況が変更されるé?度にã€?
243             * キャãƒ?‚·ュをクリアするå¿?¦�がありますã?
244             *
245             * @og.rev 3.5.2.0 (2003/10/20) ヘッãƒ??そã?もã?のキャãƒ?‚·ュはしなã�??
246             *
247             * @return      ãƒ??ブルのヘッãƒ??タグæ–?­—å?
248             */
249            protected String getHeader() {
250                    return getTableTag() + getTableHead() ;
251            }
252    
253            /**
254             * DBTableModel から ãƒ??ブルのタグæ–?­—å?を作æ?して返しますã?
255             *
256             * @og.rev 3.5.6.4 (2004/07/16) ヘッãƒ??とボディー部をJavaScriptでåˆ?›¢
257             * @og.rev 3.6.0.0 (2004/09/17) ヘッãƒ??固定スクロールの簡ç´?Œ–(スクロールバã?を右に出ã�?
258             * @og.rev 3.6.0.5 (2004/10/18) 印刷時ã?罫線å?力関連機è?の追åŠ??id 属æ?をå?力しますã?
259             * @og.rev 4.0.0.0 (2005/08/31) ãƒ??ブル表示の CSSファイル利用の有無
260             * @og.rev 5.1.6.0 (2010/05/01) caption 属æ?が使われてã�?�ªã�?�Ÿめã?削除するã€?
261             * @og.rev 5.2.3.0 (2010/12/01) ãƒ??ブル罫線対å¿?
262             * @og.rev 5.3.4.0 (2011/04/01) ãƒ??ブル罫線ã?初期値チェãƒ?‚¯変更
263             *
264             * @return      ãƒ??ブルのタグæ–?­—å?
265             */
266            protected String getTableTag() {
267                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
268    
269                    buf.append( getScrollBarStartDiv() );   // 3.8.0.3 (2005/07/15)
270    
271                    buf.append("<table ");
272                    // 5.2.3.0 (2010/12/01) ãƒ??ブル罫線対å¿?
273    //              if( tableParam != null ) {              // 5.3.4.0 (2011/04/01)
274                    if( tableParam != null && !tableParam.isEmpty() ) {
275                            buf.append( tableParam );
276                            buf.append( " " );
277                    }
278                    buf.append("id=\"viewTable\" ");
279                    buf.append("class=\"").append( getTableClass() ).append( "\"" );
280    
281                    buf.append(">").append( HybsSystem.CR );
282    
283    //              if( caption != null ) {
284    //                      buf.append("<caption>");
285    //                      buf.append( caption );
286    //                      buf.append("</caption>").append( HybsSystem.CR );
287    //              }
288    
289                    return buf.toString();
290            }
291    
292            /**
293             * DBTableModel から ãƒ??ブルのタグæ–?­—å?を作æ?して返しますã?
294             *
295             * @og.rev 3.5.1.0 (2003/10/03) Noカラãƒ?�«、numberType 属æ?を追åŠ?
296             * @og.rev 3.5.2.0 (2003/10/20) ヘッãƒ??繰り返し部をgetHeadLine()へ移å‹?
297             * @og.rev 3.5.3.1 (2003/10/31) VERCHAR2 ã‚?VARCHAR2 に修正ã€?
298             * @og.rev 3.5.5.0 (2004/03/12) No æ¬?��のもã?の作æ?判断ロジãƒ?‚¯を追åŠ?
299             * @og.rev 3.5.6.5 (2004/08/09) thead に、id="header" を追åŠ?
300             * @og.rev 4.0.0.0 (2005/01/31) DBColumn の 属æ?(CLS_NM)から、DBTYPEに変更
301             * @og.rev 4.0.0.0 (2005/01/31) 新規作æ?(getColumnClassName â‡?getColumnDbType)
302             *
303             * @return      ãƒ??ブルのタグæ–?­—å?
304             */
305            protected String getTableHead() {
306                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
307    
308                    // 3.5.5.0 (2004/03/12) No æ¬?��のもã?の作æ?判断追åŠ?
309                    if( isNumberDisplay() ) {
310                            buf.append("<colgroup class=\"X\" />");           // 4.0.0 (2005/01/31)
311                            buf.append("<colgroup class=\"BIT\" />");
312                            buf.append("<colgroup class=\"S9\" />");          // 4.0.0 (2005/01/31)
313                            buf.append( HybsSystem.CR );
314                    }
315    
316                    int clmCnt = getColumnCount();  // 3.5.5.7 (2004/05/10)
317                    for(int column = 0; column < clmCnt; column++) {
318                            if( isColumnDisplay( column ) ) {
319                                    buf.append("<colgroup class=\"" );
320                                    buf.append( getColumnDbType(column) );          // 4.0.0 (2005/01/31)
321                                    buf.append("\"/>");
322                                    buf.append( HybsSystem.CR );
323                            }
324                    }
325    
326            // 3.5.2.0 (2003/10/20) ヘッãƒ??繰り返し部をgetHeadLine()へ移å‹?
327                    buf.append("<thead id=\"header\">").append( HybsSystem.CR );      // 3.5.6.5 (2004/08/09)
328                    buf.append( getHeadLine() );
329                    buf.append("</thead>").append( HybsSystem.CR );
330    
331                    return buf.toString();
332            }
333    
334            /**
335             * ヘッãƒ??繰り返し部をã?getTableHead()メソãƒ?ƒ‰からåˆ?›¢ã€?
336             *
337             * @og.rev 3.5.4.5 (2004/01/23) 実è£?‚’getHeadLine( String thTag )に移å‹?
338             *
339             * @return      ãƒ??ブルのタグæ–?­—å?
340             */
341            protected String getHeadLine() {
342                    return getHeadLine( "<th" ) ;
343            }
344    
345            /**
346             * ヘッãƒ??繰り返し部をã?getTableHead()メソãƒ?ƒ‰からåˆ?›¢ã€?
347             *
348             * @og.rev 3.5.2.0 (2003/10/20) 新規作æ?
349             * @og.rev 3.5.4.3 (2004/01/05) useCheckControl 属æ?の機è?を追åŠ?
350             * @og.rev 3.5.4.5 (2004/01/23) thタグの属æ?設定å?来る様に新規追åŠ??
351             * @og.rev 3.5.4.6 (2004/01/30) numberType="none" 時ã?処ç�?‚’追åŠ?Noラベルをå?さなã�?
352             * @og.rev 3.5.4.7 (2004/02/06) ヘッãƒ??にソート機è?用のリンクを追åŠ?�—ますã?
353             * @og.rev 3.7.0.1 (2005/01/31) 全件チェãƒ?‚¯コントロール処ç�?¤‰更
354             *
355             * @param       thTag タグのæ–?­—å?
356             *
357             * @return      ãƒ??ブルのタグæ–?­—å?
358             */
359            protected String getHeadLine( final String thTag ) {
360                    if( headerLine != null ) { return headerLine; }         // キャãƒ?‚·ュを返すã€?
361    
362                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
363    
364                    buf.append("<tr class=\"row_h\"").append(" >").append( HybsSystem.CR );
365    
366                    // 3.5.5.0 (2004/03/12) No æ¬?��のもã?の作æ?判断追åŠ?
367                    if( isNumberDisplay() ) {
368                            // 3.5.4.3 (2004/01/05) 追åŠ??
369                            if( isUseCheckControl() && "checkbox".equals( getSelectedType() ) ) {
370                            // 3.5.4.5 (2004/01/23) thタグの属æ?設定å?来る様に変更ã€?
371                                    buf.append( thTag ).append("></th>");
372                                    buf.append( thTag ).append(">").append( getAllCheckControl() ).append("</th>");
373                                    buf.append( thTag ).append(">").append( getNumberHeader() ).append("</th>");   // 3.5.4.6 (2004/01/30)
374                            }
375                            else {
376                            // 3.5.4.5 (2004/01/23) thタグの属æ?設定å?来る様に変更ã€?
377                                    buf.append( thTag ).append(" colspan='3'>").append( getNumberHeader() ).append("</th>");       // 3.5.4.6 (2004/01/30)
378                            }
379                    }
380    
381                    buf.append( HybsSystem.CR );
382                    int clmCnt = getColumnCount();  // 3.5.5.7 (2004/05/10)
383                    for(int column = 0; column < clmCnt; column++) {
384                            if( isColumnDisplay( column ) ) {
385                            // 3.5.4.5 (2004/01/23) thタグの属æ?設定å?来る様に変更ã€?
386                                    buf.append( thTag ).append(">");
387                                    buf.append( getSortedColumnLabel(column) );
388                                    buf.append("</th>").append( HybsSystem.CR );
389                            }
390                    }
391                    buf.append("</tr>").append( HybsSystem.CR );
392    
393                    headerLine = buf.toString();
394                    return headerLine;
395            }
396    
397            /**
398             * ãƒ??ブルのタイトルをセãƒ?ƒˆしますã?
399             *
400             * @og.rev 3.1.1.0 (2003/03/28) 同期メソãƒ?ƒ‰(synchronized付き)を非同期に変更するã€?
401             * @og.rev 5.1.6.0 (2010/05/01) caption 属æ?が使われてã�?�ªã�?�Ÿめã?削除するã€?
402             *
403             * @param  caption 属æ?
404             */
405    //      public void setCaption( final String caption ) {
406    //              this.caption = caption;
407    //      }
408    
409            /**
410             * フォーマットメソãƒ?ƒ‰を使用できるかどã�?�‹を問ã�?�ˆわせますã?
411             *
412             * @return  使用可能(true)/ 使用不可能(false)
413             */
414            public boolean canUseFormat() {
415                    return false;
416            }
417    
418            /**
419             * ogPopup で検索結果の値を返すキーをã?CSV形式でæŒ?®šしますã?
420             *
421             * popup の検索結果を返す画面で、結果のラジオボタンにイベントセãƒ?ƒˆしますã?
422             * こã?場合ã?オープンもとのwindow に値を返しますが、そのキーをCSV形式で
423             * æŒ?®šしますã?なおã?設定ã?、init 以é™?つまりã?DBTableModelは設定済み)の
424             * 状態で呼び出してくださいã€?エラーにしません)
425             * なおã?こã?メソãƒ?ƒ‰は、ä¸?¦§表示(HTMLTable)関係ã?ビューのみでサポã?トして
426             * ã�?�¾すが、チェãƒ?‚¯メソãƒ?ƒ‰の関係で、それ以外ã?ビューに適用してもç´??ã‚?
427             * するようにしますã?(エラーにしません)
428             *
429             * @og.rev 3.8.6.1 (2006/10/20) 新規追åŠ?
430             *
431             * @param  rtnKeys ogPopupで値を返すカラãƒ?–‡字å?(CSV形å¼?
432             */
433            @Override
434            public void setPopupReturnKeys( final String rtnKeys ) {
435                    DBTableModel table = getDBTableModel() ;
436                    if( table != null && table.getRowCount() > 0 && rtnKeys != null ) {
437                            String[] clmNames = StringUtil.csv2Array( rtnKeys );
438                            popupClmNo = new int[clmNames.length];
439                            for( int i=0; i<clmNames.length; i++ ) {
440                                    int no = table.getColumnNo( clmNames[i] );
441                                    if( no >= 0 ) { popupClmNo[ i ] = no; }
442                            }
443                    }
444            }
445    
446            /**
447             * ogPopup で検索結果の値を返すキーをã?CSV形式でæŒ?®šしますã?
448             *
449             * popup の検索結果を返す画面で、結果のラジオボタンにイベントセãƒ?ƒˆしますã?
450             * こã?場合ã?オープンもとのwindow に値を返しますが、そのキーをCSV形式で
451             * æŒ?®šしますã?なおã?設定ã?、init 以é™?つまりã?DBTableModelは設定済み)の
452             * 状態で呼び出してくださいã€?エラーにしません)
453             * なおã?こã?メソãƒ?ƒ‰は、ä¸?¦§表示(HTMLTable)関係ã?ビューのみでサポã?トして
454             * ã�?�¾すが、チェãƒ?‚¯メソãƒ?ƒ‰の関係で、それ以外ã?ビューに適用してもç´??ã‚?
455             * するようにしますã?(エラーにしません)
456             * rtnPopup に値を渡すå?合に、ダブルクオーãƒ?")、シングルクオーãƒ?')はã€?
457             * それぞれ、ASCII コーãƒ??¥?˜22ã??¥?˜2ï¼?に置き換えますã?
458             *
459             * @og.rev 3.8.6.1 (2006/10/20) 新規追åŠ?
460             *
461             * @param  buf StringBuilder 追åŠ?�™るStringBuilderオブジェクãƒ?
462             * @param       rowNo   列番号
463             *
464             * @return      引数にãƒ??タを追åŠ?�—た後ã?同ä¸?‚ªブジェクãƒ?
465             */
466            private StringBuilder makePopupReturn( final StringBuilder buf,final int rowNo ) {
467                    buf.append( " onClick=\"rtnPopup(new Array(" );
468                    int clmNo = popupClmNo[ 0 ];
469                    String val = StringUtil.quoteFilter( getValue( rowNo,clmNo ) );
470                    buf.append( "'" ).append( val ).append( "'" );
471                    for( int i=1; i<popupClmNo.length; i++ ) {
472                            clmNo = popupClmNo[ i ];
473                            val = StringUtil.quoteFilter( getValue( rowNo,clmNo ) );
474                            buf.append( ",'" ).append( val ).append( "'" );
475                    }
476                    buf.append( "));\"" );
477    
478                    return buf;
479            }
480    
481            /**
482             * 選択用のチェãƒ?‚¯ボックスの input タグを作æ?しますã?
483             *
484             * @og.rev 3.5.5.5 (2004/04/23) 新規作æ?
485             *
486             * @return      チェãƒ?‚¯ボックスのinputタグ
487             */
488            private String makeChboxTag() {
489                    if( isCache ) { return cacheTag; }
490                    isCache = true;
491    
492                    String type = getSelectedType();                // "checkbox"/"radio"/"hidden"
493    
494                    if( type != null ) {
495                            StringBuilder buf = new StringBuilder();
496    
497                            buf.append( "<input type=\"" ).append( type ).append( "\" " );
498                            buf.append( "name=\"" ).append( HybsSystem.ROW_SEL_KEY ).append( "\"" );
499    
500                            cacheTag = buf.toString();
501                    }
502                    return cacheTag ;
503            }
504    
505            /**
506             * カラãƒ??ラベルå�?短)を返しますã?
507             * カラãƒ??é ?›®名に対して,見える形のæ–?­—å?を返しますã?
508             * ä¸?ˆ¬には,リソースバンドルとçµ?�ˆせて,å�?›½ロケール毎にラベルã‚?
509             * åˆ?›¿えますã?
510             *
511             * @og.rev 4.0.0.0 (2005/01/31) 新規追åŠ? shortLabel を返しますã?)
512             *
513             * @param       column カラãƒ?•ª号
514             *
515             * @return      カラãƒ??ラベルå�?短)
516             */
517            @Override
518            protected String getColumnLabel( final int column ) {
519                    return getDBColumn( column ).getShortLabel();
520            }
521    }