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.hayabusa.taglib; 017 018 import org.opengion.hayabusa.html.FormatterType; 019 020 /** 021 * 検索結果に対してヘッ??フォーマットを変更するタグです? 022 * 023 * @og.formSample 024 * ●形式?lt;og:thead rowspan="..." > ... Body ... </og:thead> 025 * ●body?あ?EVAL_BODY_BUFFERED:BODYを評価し?{@XXXX} を解析しま? 026 * 027 * ●Tag定義?? 028 * <og:thead 029 * rowspan ○?TAG】表示??タを作?する場合?フォーマット?行数(rowspan)をセ?しま?初期値:2)???) 030 * useTrCut 【TAG】?頭trタグを削除するかど?[true/false]を指定しま?初期値:true) 031 * caseKey 【TAG】このタグ自体を利用するかど?の条件キーを指定しま?初期値:null) 032 * caseVal 【TAG】このタグ自体を利用するかど?の条件値を指定しま?初期値:null) 033 * caseNN 【TAG】指定?値が?null/ゼロ?? でな???Not Null=NN)は、このタグは使用されま?初期値:true) 034 * caseNull 【TAG】指定?値が?null/ゼロ?? の場合?、このタグは使用されま?初期値:true) 035 * debug 【TAG】デバッグ??を?力するかど?[true/false]を指定しま?初期値:false) 036 * > ... Body ... 037 * </og:thead> 038 * 039 * ●使用? 040 * <og:view 041 * viewFormType = "HTMLCustomTable" 042 * command = "{@command}" 043 * writable = "false" 044 * startNo = "{@startNo}" 045 * pageSize = "{@pageSize}" 046 * rowspan = "1" 047 * numberType = "delete" 048 * > 049 * <og:thead rowspan="1" > 050 * <tr><td>&amp;nbsp;</td><td>[VALUENAME]</td><td>[DESCRIPTION]</td></tr> 051 * </og:thead> 052 * ... 053 * </og:view> 054 * 055 * @og.rev 3.5.4.0 (2003/11/25) TFormatTag のサブクラスとして再定義? 056 * @og.group 画面部? 057 * 058 * @version 4.0 059 * @author Kazuhiko Hasegawa 060 * @since JDK5.0, 061 */ 062 public class TheadTag extends TFormatTag { 063 //* こ?プログラ??VERSION??を設定します? {@value} */ 064 private static final String VERSION = "4.0.0.0 (2005/08/31)" ; 065 066 private static final long serialVersionUID = 400020050831L ; 067 068 /** 069 * こ?フォーマット?タイプを返します? 070 * 071 * @og.rev 3.5.4.0 (2003/11/25) 新規追? 072 * 073 * @return こ?フォーマット?タイプを返します? 074 */ 075 @Override 076 protected FormatterType getType() { 077 return FormatterType.TYPE_HEAD; 078 } 079 080 // protected String getType() { 081 // return TableFormatter.TYPE_HEAD; 082 // } 083 }