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 */
016package org.opengion.plugin.view;
017
018import org.opengion.hayabusa.common.HybsSystem;
019import org.opengion.hayabusa.db.DBTableModel;
020import org.opengion.hayabusa.html.AbstractViewForm;
021import org.opengion.fukurou.model.Formatter;
022import 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 */
038public 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         * @og.rev 3.5.2.0 (2003/10/20) ヘッダーそのもののキャッシュはしない。
243         *
244         * @return      テーブルのヘッダータグ文字列
245         */
246        protected String getHeader() {
247                return getTableTag() + getTableHead() ;
248        }
249
250        /**
251         * DBTableModel から テーブルのタグ文字列を作成して返します。
252         *
253         * @og.rev 3.5.6.4 (2004/07/16) ヘッダーとボディー部をJavaScriptで分離
254         * @og.rev 3.6.0.0 (2004/09/17) ヘッダー固定スクロールの簡素化(スクロールバーを右に出す)
255         * @og.rev 3.6.0.5 (2004/10/18) 印刷時の罫線出力関連機能の追加。id 属性を出力します。
256         * @og.rev 4.0.0.0 (2005/08/31) テーブル表示の CSSファイル利用の有無
257         * @og.rev 5.1.6.0 (2010/05/01) caption 属性が使われていないため、削除する。
258         * @og.rev 5.2.3.0 (2010/12/01) テーブル罫線対応
259         * @og.rev 5.3.4.0 (2011/04/01) テーブル罫線の初期値チェック変更
260         *
261         * @return      テーブルのタグ文字列
262         */
263        protected String getTableTag() {
264                StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
265
266                buf.append( getScrollBarStartDiv() );   // 3.8.0.3 (2005/07/15)
267
268                buf.append("<table ");
269                // 5.2.3.0 (2010/12/01) テーブル罫線対応
270//              if( tableParam != null ) {              // 5.3.4.0 (2011/04/01)
271                if( tableParam != null && !tableParam.isEmpty() ) {
272                        buf.append( tableParam );
273                        buf.append( " " );
274                }
275                buf.append("id=\"viewTable\" ");
276                buf.append("class=\"").append( getTableClass() ).append( "\"" );
277
278                buf.append(">").append( HybsSystem.CR );
279
280//              if( caption != null ) {
281//                      buf.append("<caption>");
282//                      buf.append( caption );
283//                      buf.append("</caption>").append( HybsSystem.CR );
284//              }
285
286                return buf.toString();
287        }
288
289        /**
290         * DBTableModel から テーブルのタグ文字列を作成して返します。
291         *
292         * @og.rev 3.5.1.0 (2003/10/03) Noカラムに、numberType 属性を追加
293         * @og.rev 3.5.2.0 (2003/10/20) ヘッダー繰り返し部をgetHeadLine()へ移動
294         * @og.rev 3.5.3.1 (2003/10/31) VERCHAR2 を VARCHAR2 に修正。
295         * @og.rev 3.5.5.0 (2004/03/12) No 欄そのものの作成判断ロジックを追加
296         * @og.rev 3.5.6.5 (2004/08/09) thead に、id="header" を追加
297         * @og.rev 4.0.0.0 (2005/01/31) DBColumn の 属性(CLS_NM)から、DBTYPEに変更
298         * @og.rev 4.0.0.0 (2005/01/31) 新規作成(getColumnClassName ⇒ getColumnDbType)
299         *
300         * @return      テーブルのタグ文字列
301         */
302        protected String getTableHead() {
303                StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
304
305                // 3.5.5.0 (2004/03/12) No 欄そのものの作成判断追加
306                if( isNumberDisplay() ) {
307//                      buf.append("<colgroup class=\"X\" />");           // 4.0.0 (2005/01/31)
308//                      buf.append("<colgroup class=\"BIT\" />");
309//                      buf.append("<colgroup class=\"S9\" />");          // 4.0.0 (2005/01/31)
310                        buf.append("<colgroup class=\"X\" ><!-- --></colgroup>");             // 5.9.1.2 (2015/10/23)
311                        buf.append("<colgroup class=\"BIT\" ><!-- --></colgroup>");
312                        buf.append("<colgroup class=\"S9\" ><!-- --></colgroup>");    
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("\"><!-- --></colgroup>");            // 5.9.1.2 (2015/10/23)
323                                buf.append( HybsSystem.CR );
324                        }
325                }
326
327        // 3.5.2.0 (2003/10/20) ヘッダー繰り返し部をgetHeadLine()へ移動
328                buf.append("<thead id=\"header\">").append( HybsSystem.CR );      // 3.5.6.5 (2004/08/09)
329                buf.append( getHeadLine() );
330                buf.append("</thead>").append( HybsSystem.CR );
331
332                return buf.toString();
333        }
334
335        /**
336         * ヘッダー繰り返し部を、getTableHead()メソッドから分離。
337         *
338         * @og.rev 3.5.4.5 (2004/01/23) 実装をgetHeadLine( String thTag )に移動
339         *
340         * @return      テーブルのタグ文字列
341         */
342        protected String getHeadLine() {
343                return getHeadLine( "<th" ) ;
344        }
345
346        /**
347         * ヘッダー繰り返し部を、getTableHead()メソッドから分離。
348         *
349         * @og.rev 3.5.2.0 (2003/10/20) 新規作成
350         * @og.rev 3.5.4.3 (2004/01/05) useCheckControl 属性の機能を追加
351         * @og.rev 3.5.4.5 (2004/01/23) thタグの属性設定出来る様に新規追加。
352         * @og.rev 3.5.4.6 (2004/01/30) numberType="none" 時の処理を追加(Noラベルを出さない)
353         * @og.rev 3.5.4.7 (2004/02/06) ヘッダーにソート機能用のリンクを追加します。
354         * @og.rev 3.7.0.1 (2005/01/31) 全件チェックコントロール処理変更
355         *
356         * @param       thTag タグの文字列
357         *
358         * @return      テーブルのタグ文字列
359         */
360        protected String getHeadLine( final String thTag ) {
361                if( headerLine != null ) { return headerLine; }         // キャッシュを返す。
362
363                StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
364
365                buf.append("<tr class=\"row_h\"").append(" >").append( HybsSystem.CR );
366
367                // 3.5.5.0 (2004/03/12) No 欄そのものの作成判断追加
368                if( isNumberDisplay() ) {
369                        // 3.5.4.3 (2004/01/05) 追加分
370                        if( isUseCheckControl() && "checkbox".equals( getSelectedType() ) ) {
371                        // 3.5.4.5 (2004/01/23) thタグの属性設定出来る様に変更。
372                                buf.append( thTag ).append("></th>");
373                                buf.append( thTag ).append(">").append( getAllCheckControl() ).append("</th>");
374                                buf.append( thTag ).append(">").append( getNumberHeader() ).append("</th>");   // 3.5.4.6 (2004/01/30)
375                        }
376                        else {
377                        // 3.5.4.5 (2004/01/23) thタグの属性設定出来る様に変更。
378                                buf.append( thTag ).append(" colspan='3'>").append( getNumberHeader() ).append("</th>");       // 3.5.4.6 (2004/01/30)
379                        }
380                }
381
382                buf.append( HybsSystem.CR );
383                int clmCnt = getColumnCount();  // 3.5.5.7 (2004/05/10)
384                for(int column = 0; column < clmCnt; column++) {
385                        if( isColumnDisplay( column ) ) {
386                        // 3.5.4.5 (2004/01/23) thタグの属性設定出来る様に変更。
387                                buf.append( thTag ).append(">");
388                                buf.append( getSortedColumnLabel(column) );
389                                buf.append("</th>").append( HybsSystem.CR );
390                        }
391                }
392                buf.append("</tr>").append( HybsSystem.CR );
393
394                headerLine = buf.toString();
395                return headerLine;
396        }
397
398        /**
399         * テーブルのタイトルをセットします。
400         *
401         * @og.rev 3.1.1.0 (2003/03/28) 同期メソッド(synchronized付き)を非同期に変更する。
402         * @og.rev 5.1.6.0 (2010/05/01) caption 属性が使われていないため、削除する。
403         *
404         * @param  caption 属性
405         */
406//      public void setCaption( final String caption ) {
407//              this.caption = caption;
408//      }
409
410        /**
411         * フォーマットメソッドを使用できるかどうかを問い合わせます。
412         *
413         * @return  使用可能(true)/ 使用不可能(false)
414         */
415        public boolean canUseFormat() {
416                return false;
417        }
418
419        /**
420         * ogPopup で検索結果の値を返すキーを、CSV形式で指定します。
421         *
422         * popup の検索結果を返す画面で、結果のラジオボタンにイベントセットします。
423         * この場合、オープンもとのwindow に値を返しますが、そのキーをCSV形式で
424         * 指定します。なお、設定は、init 以降(つまり、DBTableModelは設定済み)の
425         * 状態で呼び出してください。(エラーにしません)
426         * なお、このメソッドは、一覧表示(HTMLTable)関係のビューのみでサポートして
427         * いますが、チェックメソッドの関係で、それ以外のビューに適用しても素通り
428         * するようにします。(エラーにしません)
429         *
430         * @og.rev 3.8.6.1 (2006/10/20) 新規追加
431         *
432         * @param  rtnKeys ogPopupで値を返すカラム文字列(CSV形式)
433         */
434        @Override
435        public void setPopupReturnKeys( final String rtnKeys ) {
436                DBTableModel table = getDBTableModel() ;
437                if( table != null && table.getRowCount() > 0 && rtnKeys != null ) {
438                        String[] clmNames = StringUtil.csv2Array( rtnKeys );
439                        popupClmNo = new int[clmNames.length];
440                        for( int i=0; i<clmNames.length; i++ ) {
441                                int no = table.getColumnNo( clmNames[i] );
442                                if( no >= 0 ) { popupClmNo[ i ] = no; }
443                        }
444                }
445        }
446
447        /**
448         * ogPopup で検索結果の値を返すキーを、CSV形式で指定します。
449         *
450         * popup の検索結果を返す画面で、結果のラジオボタンにイベントセットします。
451         * この場合、オープンもとのwindow に値を返しますが、そのキーをCSV形式で
452         * 指定します。なお、設定は、init 以降(つまり、DBTableModelは設定済み)の
453         * 状態で呼び出してください。(エラーにしません)
454         * なお、このメソッドは、一覧表示(HTMLTable)関係のビューのみでサポートして
455         * いますが、チェックメソッドの関係で、それ以外のビューに適用しても素通り
456         * するようにします。(エラーにしません)
457         * rtnPopup に値を渡す場合に、ダブルクオート(")、シングルクオート(')は、
458         * それぞれ、ASCII コード(¥x22、¥x27)に置き換えます。
459         *
460         * @og.rev 3.8.6.1 (2006/10/20) 新規追加
461         *
462         * @param  buf StringBuilder 追加するStringBuilderオブジェクト
463         * @param       rowNo   列番号
464         *
465         * @return      引数にデータを追加した後の同一オブジェクト
466         */
467        private StringBuilder makePopupReturn( final StringBuilder buf,final int rowNo ) {
468                buf.append( " onClick=\"rtnPopup(new Array(" );
469                int clmNo = popupClmNo[ 0 ];
470                String val = StringUtil.quoteFilter( getValue( rowNo,clmNo ) );
471                buf.append( "'" ).append( val ).append( "'" );
472                for( int i=1; i<popupClmNo.length; i++ ) {
473                        clmNo = popupClmNo[ i ];
474                        val = StringUtil.quoteFilter( getValue( rowNo,clmNo ) );
475                        buf.append( ",'" ).append( val ).append( "'" );
476                }
477                buf.append( "));\"" );
478
479                return buf;
480        }
481
482        /**
483         * 選択用のチェックボックスの input タグを作成します。
484         *
485         * @og.rev 3.5.5.5 (2004/04/23) 新規作成
486         *
487         * @return      チェックボックスのinputタグ
488         */
489        private String makeChboxTag() {
490                if( isCache ) { return cacheTag; }
491                isCache = true;
492
493                String type = getSelectedType();                // "checkbox"/"radio"/"hidden"
494
495                if( type != null ) {
496                        StringBuilder buf = new StringBuilder();
497
498                        buf.append( "<input type=\"" ).append( type ).append( "\" " );
499                        buf.append( "name=\"" ).append( HybsSystem.ROW_SEL_KEY ).append( "\"" );
500
501                        cacheTag = buf.toString();
502                }
503                return cacheTag ;
504        }
505
506        /**
507         * カラムのラベル名(短)を返します。
508         * カラムの項目名に対して,見える形の文字列を返します。
509         * 一般には,リソースバンドルと組合せて,各国ロケール毎にラベルを
510         * 切替えます。
511         *
512         * @og.rev 4.0.0.0 (2005/01/31) 新規追加( shortLabel を返します。)
513         *
514         * @param       column カラム番号
515         *
516         * @return      カラムのラベル名(短)
517         */
518        @Override
519        protected String getColumnLabel( final int column ) {
520                return getDBColumn( column ).getShortLabel();
521        }
522}