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.fukurou.util.Cleanable;
019    import org.opengion.fukurou.util.StringUtil;
020    import org.opengion.hayabusa.common.HybsSystem ;
021    import org.opengion.hayabusa.common.SystemManager ;
022    import org.opengion.hayabusa.common.HybsSystemException ;
023    import org.opengion.hayabusa.common.BuildNumber ;
024    import org.opengion.hayabusa.resource.ResourceFactory;
025    import org.opengion.hayabusa.resource.ResourceManager ;
026    import org.opengion.hayabusa.resource.UserInfoFactory ;
027    import org.opengion.hayabusa.resource.UserInfo ;
028    import org.opengion.hayabusa.resource.GUIInfo ;
029    
030    import static org.opengion.fukurou.util.StringUtil.nval ;
031    
032    import javax.servlet.http.HttpSession ;
033    import javax.servlet.http.HttpServletRequest ;
034    import javax.servlet.http.HttpServletResponse ;
035    import javax.servlet.ServletException;
036    import javax.servlet.jsp.tagext.Tag ;
037    
038    import java.io.UnsupportedEncodingException;
039    import java.io.IOException;
040    import java.io.File;
041    import java.util.Map;
042    import java.util.HashMap;
043    
044    
045    /**
046     * HTMLファイルの head タグに相当する機?を付加します?
047     * レイアウトを構築する?合に、HTMLファイルの構?に準拠した形式で記述できるように
048     * なります?JavaScript ?body タグ?各JSPファイル?独自に設定できるように
049     * なる為、カスタマイズが容易になります?
050     *
051     * 機??は、旧バ?ジョンの
052     *    common/session_init.jsp
053     *    common/HTML.jsp
054     *    <og:responseHeader cacheControl = "max-age=0" />
055     * を?込んだ、common/jsp_init.jsp の代わりに使用できるタグになります?
056     *
057     * 属?に、下記?値を設定できます?それ以外?、BODY部に直接記述することで追?きます?
058     * BODY部、およ?、属?の引数には、{@XXXX}が使用できます?
059     * 例えば、{@SYS.CONTEXT_NAME}を使用すれば、相対アドレスでの?ではなく?
060     * 絶対アドレスで?可能になるため?ブラウザのキャ?ュが利用できます?
061     *
062     * @og.formSample
063     * ●形式?lt;og:head />
064     * ●body?あ?EVAL_BODY_BUFFERED:BODYを評価し?{@XXXX} を解析しま?
065     *
066     * ●Tag定義??
067     *   <og:head
068     *       title              【TAG】HTML の タイトルを設定しま?初期値:session に"GUI_TITLE" キーで登録されて?値)
069     *       headType           【TAG】??ータイ?xml,init,query,result,menu,simple,handy)を設定しま?初期値:null)
070     *       useScrollBar       【TAG】ScrollBar.js JavaScript を使用するかど?[true/false]を指定しま?初期値:true)
071     *       useGantt           【TAG】option/gantt.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)
072     *       useTreeBOM         【TAG】option/treeBOM.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)
073     *       useGuest           【TAG】ゲストユーザを利用するかど?[true/false]を指定しま?初期値false)
074     *       useAjaxTreeTable   【TAG】Ajaxを利用した?ー形式???ブル表示を使用するかを?しま?
075     *       noTransition       【TAG】画面遷移を行わな?式?登録方法を使用するかを?しま?
076     *       useTabLink         【TAG】og:tabLinkタグで使用され?common/tagLink.js をインクルードするかど?[true/false]を指定しま?初期値:false)
077     *       useTabstrip        【TAG】tabstrip.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)
078     *       useRealTimeCheck   【TAG】カラ?ェ?をリアルタイ?行うかど?[true/false]を指定しま?初期値:true)
079     *       useIE7Header       【TAG】IE8でIE7エミュレートモードで動作させるタグを?力するかど?[true/false]を指定しま?(初期値:USE_IE7_HEADER[=true])
080     *       useAjaxSubmit      【TAG】フォー??Submit処?JavaScriptを利用して行う?ポップア??エラー表示)
081     *       useFocusHilight    【TAG】フォーカスが当って?入力??スの色を変更するかど?[true/false]を指定しま?初期値:true)
082     *       useHrefIcon        【TAG】href(リンク)の拡張子に応じたアイコンを表示するかど?[true/false]を指定しま?初期値:false)
083     *       addEvent           【TAG】javaScript を?期ロードし、起動するメソ?を指定しま?初期値:null)
084     *       adjustEvent        【TAG】特定? javaScript を?期ロードし、起動するメソ?を指定しま?初期値:null)
085     *       useTbodyMovable    【TAG】option/ogTbodyMovable.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)
086     *       debug              【TAG】デバッグ??を?力するかど?[true/false]を指定しま?初期値:false)
087     *   >   ... Body ...
088     *   </og:head>
089     * ●使用?
090     *       <og:head
091     *          headType        = "[xml|init|query|result|menu|simple|handy]"
092     *          title           = "HEAD タグの TITLE属?"
093     *      //  useTimeSet      = "[true/false]"    timeSet.js , timeCheck.js
094     *      //  useToggleFrame  = "[true/false]"    toggleFrame.js      5.2.1.0 (2010/10/01) ?
095     *      //  useInputFocus   = "[true/false]"    inputFocus.js       4.3.5.0 (2009/02/01) ?
096     *      //  useHilightRow   = "[true/false]"    hilightRow.js       5.2.1.0 (2010/10/01) ?
097     *          useScrollBar    = "[true/false]"    scrollBar2.js
098     *      //  usePrintLine    = "[true/false]"    printLine.js        5.2.1.0 (2010/10/01) ?
099     *          useGantt        = "[false/true]"    option/gantt.js
100     *          useTreeBOM      = "[false/true]"    option/treeBOM.js
101     *          useAjaxTreeTable= "[false/true]"    option/ajaxTreeTable.js
102     *          noTransition    = "[false/true]"    option/noTransition.js
103     *          useTabLink      = "[false/true]"    option/tabLink.js
104     *          useTabstrip     = "[false/true]"    option/tabstrip.js
105     *      //  useRealTimeCheck= "[true/false]"    realTimeCheck.js    5.2.1.0 (2010/10/01) ?
106     *      //  useAutoConvert  = "[true/false]"    autoConvert.js      5.2.1.0 (2010/10/01) ?
107     *      //  useFocusHilight = "[true/false]"    focusHilight.js     5.2.1.0 (2010/10/01) ?
108     *      //  useFocusFirstElm= "[true/false]"    focusFirstElm.js    5.2.1.0 (2010/10/01) ?
109     *      //  useAdjustFrameHeight = "[true/false]" adjustFrameHeight 5.2.1.0 (2010/10/01) ?
110     *          // 5.4.5.0 (2012/03/01) 追?復活)
111     *          useRealTimeCheck= "[true/false]"    realTimeCheck.js
112     *          useFocusHilight = "[true/false]"    focusHilight.js
113     *          useHrefIcon     = "[false/true]"    hrefIcon.css            5.6.5.2 (2013/06/21) 追?
114     *          adjustEvent     = "[Bar|Matrix|Table|Gantt|Task]"       5.6.3.2 (2013/04/12) 追?
115     *          useTbodyMovable = "[false/true]"    option/ogTbodyMovable.js   5.6.3.3 (2013/04/19) 追?
116     *       > ... Body ...
117     *       </og:head>
118     *
119     * @og.rev 4.0.0.0 (2007/04/16) 新規作?
120     * @og.group そ??
121     *
122     * @version  4.0
123     * @author   Kazuhiko Hasegawa
124     * @since    JDK5.0,
125     */
126    public class HeadTag extends CommonTagSupport {
127            //* こ?プログラ??VERSION??を設定します?       {@value} */
128            private static final String VERSION = "5.7.1.0 (2013/12/06)" ;
129    
130            private static final long serialVersionUID = 571020131206L ;    // 5.7.1.0 (2013/12/06)
131    
132            private static final String CR           = HybsSystem.CR;
133            private static final String JSP_ADRS = "/" + HybsSystem.getContextName() + "/jsp/" ;
134            private static final String JSP_DIR  = HybsSystem.sys( "REAL_PATH" ) + "jsp/" ;                 // 5.2.1.0 (2010/10/01)
135    
136            /** adjustEvent 引数に渡す事?出来???リス? */
137            private static final String ADJUST_EVENT_LIST = "|Bar|Matrix|Table|Gantt|Task|" ;               // 5.6.3.2 (2013/04/12)
138    
139            // headType ?null の場合?使用されるJavaScript,stylesheet (XMLタイプ以外すべて)
140            private static final String DEFAULT_CSS         = "common/default.css";
141            private static final String CALENDAR_CSS        = "common/calendar.css";
142            private static final String CUSTOM_CSS          = "custom/custom.css";
143    
144            // init,query,result,menu 両タイプで使用されるJavaScript,stylesheet (null でなく?XML でな?べて)
145            private static final String JQUERY_JS           = "common/jquery/jquery.js";
146            private static final String JQUERY_OG_JS        = "common/jqog.js";
147            private static final String DEFAULT_JS          = "common/default.js";                                  // 5.2.1.0 (2010/10/01)
148    //              private static final String DEFAULT_JS          = "common/default.js";
149    //              private static final String INPUTMENU_JS        = "common/inputMenu.js";
150    //              private static final String OGPOPUP_JS          = "common/ogPopup.js";
151            private static final String TABLINK_JS          = "common/option/tabLink.js";                   // useTabLink
152    
153            // query,result 両タイプで使用されるJavaScript
154            private static final String EVENT_SCRIPT_JS             = "common/eventScript.js";                      // 5.2.1.0 (2010/10/01)
155    //              private static final String FOCUS_HILIGHT_JS    = "common/focusHilight.js";                     // 4.3.5.0 (2009/02/01)
156    //              private static final String AUTO_CONVERT_JS             = "common/autoConvert.js";                      // 4.3.5.0 (2009/02/01)
157    //              private static final String EVENT_COLUMN_JS             = "common/eventColumn.js";                      // 4.3.6.0 (2009/04/01)
158    //              private static final String REAL_TIME_CHECK_JS  = "common/realTimeCheck.js";            // 4.3.5.0 (2009/02/01)
159    //              private static final String BIND_EVENTS_JS              = "common/bindEvents.js";                       // 5.2.0.0 (2010/09/01)
160            private static final String REAL_TIME_CHECK_FLG = "USE_REAL_TIME_CHECK";        // 5.4.5.0 (2012/03/01)
161            private static final String FOCUS_HILIGHT_FLG   = "USE_FOCUS_HILIGHT";  // 5.4.5.0 (2012/03/01)
162    
163            private static final String JQUERY_FORM_JS              = "common/jquery/jquery.form.js";       // noTransition || useAjaxSubmit
164            private static final String JQUERY_DRAG_JS              = "common/jquery/jqDnR.js";                     // noTransition || useAjaxSubmit
165            private static final String JQUERY_MODAL_JS             = "common/option/jqModal.js";           // noTransition || useAjaxSubmit
166            private static final String JQUERY_MODAL_CSS    = "common/option/jqModal.css";          // noTransition || useAjaxSubmit
167    
168            // query タイプで使用されるJavaScript
169            private static final String QUERY_SCRIPT_JS                     = "common/queryScript.js";              // 5.2.1.0 (2010/10/01)
170    //      private static final String QUERYPRE_SCRIPT_JS          = "common/queryScriptPre.js";   // 5.6.0.3 (2013/01/24)
171            private static final String QUERYCONV_SCRIPT_JS         = "common/queryConvert.js";             // 5.6.2.3 (2013/03/22) QUERYPRE_SCRIPT_JS   ?QUERYCONV_SCRIPT_JS に変更
172    //              private static final String TIME_SET_JS                         = "common/timeSet.js";
173    //              private static final String TOGGLE_FRAME_JS                     = "common/toggleFrame.js";
174    //              private static final String ADJUST_FRAME_HEIGHT_JS      = "common/adjustFrameHeightEvent.js";
175    //              private static final String FOCUS_FIRST_ELM                     = "common/focusFirstElm.js";
176    
177            // result タイプで使用されるJavaScript,stylesheet
178            private static final String SCROLL_BAR_JS               = HybsSystem.sys( "SCROLL_BAR_TYPE" ) + ".js";  // 4.3.5.0 (2009/02/01)
179            private static final String SCROLL_BAR_CSS              = HybsSystem.sys( "SCROLL_BAR_TYPE" ) + ".css"; // 4.3.5.0 (2009/02/01)
180    
181            private static final String RESULT_SCRIPT_JS    = "common/resultScript.js";             // 5.2.1.0 (2010/10/01)
182    //              private static final String HILIGHT_ROW_JS              = "common/hilightRow.js";
183    //              private static final String BULK_SET_JS                 = "common/bulkSet.js";          // 5.2.1.0 (2010/10/01)
184    //              private static final String PRINT_LINE_JS               = "common/printLine.js";
185    //              private static final String TIME_CHECK_JS               = "common/timeCheck.js";
186    //              private static final String ROW_COUNT_REPLACE   = "common/rowCountReplace.js";                  // 4.3.7.6 (2009/07/15)
187    
188            private static final String GANTT_JS                    = "common/option/gantt.js";                             // useGantt
189            private static final String TREEBOM_JS                  = "common/option/treeBOM.js";                   // useTreeBOM
190            private static final String AJAX_TREETABLE_JS   = "common/option/ajaxTreeTable.js";             // useAjaxTreeTable
191            private static final String AJAX_HYBS_FORM              = "common/option/ajaxHybsForm.js";              // noTransition || useAjaxSubmit
192            private static final String NO_TRANSITION_JS    = "common/option/noTransition.js";              // noTransition
193            private static final String AJAX_SUBMIT_JS              = "common/option/ajaxSubmit.js";                // useAjaxSubmit
194    
195            private static final String TBODY_MOVABLE_JS    = "common/option/ogTbodyMovable.js";    // 5.6.3.3 (2013/04/19) useTbodyMovable 
196    
197            // 5.6.2.1 (2013/03/08) useGantt2="true" で?込?script,css 群
198    //      private static final String GANTT2_JS                   = "common/option/adjustGantTable.js";                   // 5.6.2.1 (2013/03/08) useGantt2
199    //      private static final String GANTT2_CSS                  = "common/option/adjustGantTable.css";                  // 5.6.2.1 (2013/03/08) useGantt2
200    //      private static final String GANTT2_SCRIPT               = "addEvent( this, \"load\", adjustGant );";    // 5.6.2.1 (2013/03/08) useGantt2   5.6.3.0 (2013/04/01) ?
201    
202            // 5.6.3.2 (2013/04/12) adjustEvent の引数に応じて、?期に?込?script,css 群を定義します?
203            private static final String AJST_GANTT_JS               = "common/option/adjustGanttTable.js";                  // 5.6.3.2 (2013/04/12) adjustTable,adjustGant,adjustTask
204            private static final String AJST_GANTT_CSS              = "common/option/adjustGanttTable.css";                 // 5.6.3.2 (2013/04/12) adjustTable,adjustGant,adjustTask
205            private static final String AJST_BAR_JS                 = "common/option/adjustBar.js";                                 // 5.6.3.2 (2013/04/12) adjustBar
206            private static final String AJST_MATRIX_JS              = "common/option/adjustMatrix.js";                              // 5.6.3.2 (2013/04/12) adjustMatrix
207    
208            private static final String HREF_ICON_CSS               = "common/hrefIcon.css";                                                // 5.6.5.2 (2013/06/21) useHrefIcon
209    
210            // 4.2.1.0 (2008/04/16) htmlタグにクラスを付けるため?HEAD1と2に?
211            // class名?"headtype"+headtype (IDの先?は数字では?なのでheadtypeを付け?
212            private static final String HEAD1 =
213                    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\""       + CR
214                    + "  \"http://www.w3.org/TR/html4/frameset.dtd\">"                           + CR
215                    + "<html class=\"headtype-";
216    
217            private static final String HEAD2 =
218                    "\">"                                + CR
219                    + "<head>"                        + CR
220                    + "  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" + CR
221                    + "  <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />"                     + CR
222                    + "  <meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\" />"     + CR;
223    
224            // 5.7.1.0 (2013/12/06) HTML5 用のヘッ??1
225            // HTML5では、DOCTYPE宣?なくなった?ですが、無?ブラウザが?互換モードになる為入れておきます?
226            private static final String HTML5_HEAD1 =
227                    "<!DOCTYPE html>" + CR
228                    + "<html class=\"headtype-";
229    
230            // 5.7.1.0 (2013/12/06) HTML5 用のヘッ??2
231            // HTML5では、content-style-type と Content-Script-Type も設定不要です?
232            private static final String HTML5_HEAD2 =
233                    "\">"                                + CR
234                    + "<head>"                        + CR
235                    + "  <meta charset=\"UTF-8\" />" + CR ;
236    
237            private static final String XML_HEAD =
238                    "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"     + CR;
239    
240            private static final String TAB_HEAD =
241                    "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"     + CR
242                    + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"" + CR
243                    + "    \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" + CR
244                    + "<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:mp xmlns:ts >"      + CR
245                    + "<head>"                                                                                                                                + CR
246                    + "  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" + CR
247                    + "  <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />"                     + CR
248                    + "  <meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\" />"     + CR
249                    + "  <?IMPORT NAMESPACE=\"mp\" IMPLEMENTATION=\""
250                    + JSP_ADRS + "common/option/multipage.htc\" />"                              + CR
251                    + "  <?IMPORT NAMESPACE=\"ts\" IMPLEMENTATION=\""
252                    + JSP_ADRS + "common/option/tabstrip.htc\" />"                               + CR;
253    
254            // 4.3.7.0 (2009/06/01) IE8対応?IE7用Metaタグ追?
255            private static final String IE7_HEAD =
256                    "  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />" + CR;
257    
258            // 5.5.8.0 (2012/11/01) タブレ?対?
259            private static final String MOBILE_HEAD =
260                    "  <meta content=\"width=device-width, initial-scale=1\" name=\"viewport\"/>" + CR;
261    
262            // 5.2.1.0 (2010/10/01) 予め合?できる??は合?しておく。 ?
263    //      private static final String VERSION_PREFIX = "v"; // 4.3.5.3 (2008/02/22)
264    //      private static final String VERSION_PREFIX = "?v=" + BuildNumber.BUILD_ID ;
265    
266            // 5.2.1.0 (2010/10/01) キャ?ュは、各ファイルのタイ?タンプ?ースで行う?
267            private static final Map<String,String> srcAdrs = new HashMap<String,String>();
268    
269            // 5.2.1.0 (2010/10/01) キャ?ュのクリアは、adminメニューの[?゚ー?削除]で可能
270            static {
271                    final Cleanable clr = new Cleanable() {
272                            public void clear() {
273                                    srcAdrs.clear();
274                            }
275                    };
276                    SystemManager.addCleanable( clr );
277            }
278    
279            //enum?
280            // 5.4.4.2 (2012/02/03) simple追?
281            // 5.7.1.0 (2013/12/06) handy追?
282    //      private enum HEAD_TYPE_ENUM { xml , init , query , result , menu , simple  };
283            private enum HEAD_TYPE_ENUM { xml , init , query , result , menu , simple , handy };
284    
285            private String  body            = null;
286            private String  title           = null;
287            private HEAD_TYPE_ENUM headType = null;
288    
289    //      private boolean useTimeSet              = true;         // 5.2.1.0 (2010/10/01) ?
290    //      private boolean useToggleFrame  = true;         // 5.2.1.0 (2010/10/01) ?
291    //      private boolean useInputFocus   = true;         // 5.2.1.0 (2010/10/01) ?
292    //      private boolean useHilightRow   = true;         // 5.2.1.0 (2010/10/01) ?
293            private boolean useScrollBar    = true;
294    //      private boolean usePrintLine    = true;         // 5.2.1.0 (2010/10/01) ?
295            private boolean useTabstrip             = false;
296            private boolean useGantt                = false;
297    //      private boolean useGantt2               = false;        // 5.6.2.1 (2013/03/08) 追??5.6.3.2 (2013/04/12) ?
298            private boolean useTreeBOM              = false;
299            private boolean useGuest                = false;                // 4.2.2.0 (2008/05/28)
300            private boolean useAjaxTreeTable= false;                // 4.3.1.0 (2008/09/02)
301            private boolean noTransition            = HybsSystem.sysBool( "NO_TRANSITION_MODE" );           // 4.3.1.0 (2008/09/02)
302            private boolean useAjaxSubmit           = HybsSystem.sysBool( "USE_AJAX_SUBMIT" );
303    //      private boolean useRealTimeCheck        = HybsSystem.sysBool( "USE_REAL_TIME_CHECK" );          // 4.3.3.0 (2008/10/01)
304            private boolean useRealTimeCheck        = true;         // 5.4.5.0 (2012/03/01)
305            private boolean useTabLink                      = false;        // 4.3.3.0 (2008/10/01)
306    //      private boolean useAutoConvert          = HybsSystem.sysBool( "USE_INPUT_AUTO_CONVERT" );       // 4.3.5.0 (2009/02/01)
307    //      private boolean useFocusHilight         = true;         // 4.3.5.0 (2009/02/01)
308            private boolean useFocusHilight         = true;         // 5.4.5.0 (2012/03/01)
309            private boolean useHrefIcon                     = false;        // 5.6.5.2 (2013/06/21) 追?
310    //      private boolean useFocusFirstElm        = true;         // 4.3.5.0 (2009/02/01)
311    //      private boolean useAdjustFrameHeight = true;    // 4.3.5.0 (2009/02/01)
312    //      private boolean useEventColumn          = true;         // 4.3.6.0 (2009/04/01)
313            private boolean useIE7Header            = HybsSystem.sysBool( "USE_IE7_HEADER" );                       // 4.3.7.0 (2009/06/01) IE8対?
314    //      private boolean useRowCountReplace      = HybsSystem.sysBool( "USE_ROWCNT_REPLACE" );           // 4.3.8.0 (2009/08/01)
315            private boolean useViewPort                     = HybsSystem.sysBool( "USE_VIEWPORT_HEADER" );          // 5.5.8.0 (2012/11/01)
316            private String  addEvent                        = null;         // 5.6.3.0 (2013/04/01) addEvent 追?
317            private String  adjustEvent                     = null;         // 5.6.3.2 (2013/04/12) adjustEvent 追?
318            private boolean useTbodyMovable         = false;        // 5.6.3.3 (2013/04/19) 新規追?
319    
320            private boolean useHTML5                        = HybsSystem.sysBool( "USE_HTML5_HEADER" );                     // 5.7.1.0 (2013/12/06) HTML5対?
321    
322            /**
323             * こ?タグハンドラの親(?近くを囲んで?タグハンドラ)を設定す?
324             * setParent( Tag ) ?オーバ?ライドします?
325             * こ?、オーバ?ライド?、カスタ?グのライフサイクルに基づき?
326             * ?セ?ーメソ?の前に呼ばれる メソ?として、利用して?す?
327             *
328             * 目??、sessionInit() メソ?の実行により、{&#064;SYS.XXXX} 変数を利用可能にすることです?
329             *
330             * @og.rev 4.3.4.1 (2008/12/08) 新規作?
331             *
332             * @param  tag タグハンドラの親
333             */
334            @Override
335            public void setParent( final Tag tag ) {
336                    super.setParent( tag );
337                    sessionInit() ;
338            }
339    
340            /**
341             * Taglibの開始タグが見つかったときに処??doStartTag() ?オーバ?ライドします?
342             *
343             * @og.rev 4.2.1.0 (2008/04/16) headTypeのenum?
344             * @og.rev 4.3.4.1 (2008/12/08) sessionInit() を?setParent( Tag ) メソ?へ移動?title 属?の設?
345             * @og.rev 5.2.3.0 (2010/12/01) 画面アクセス履歴管??
346             *
347             * @return      後続????( EVAL_BODY_BUFFERED )
348             */
349            @Override
350            public int doStartTag() {
351                    // 4.3.5.7 (2009/03/22) アクセスカウント?不?合対応?sessionInitから移?
352                    if( headType == HEAD_TYPE_ENUM.result ) {
353                            GUIInfo guiInfo = (GUIInfo)getSessionAttribute( HybsSystem.GUIINFO_KEY );
354                            guiInfo.addAccessCount();
355                            // 5.2.3.0 (2010/12/01) 画面アクセス履歴管??
356                            UserInfo userInfo = (UserInfo)getSessionAttribute( HybsSystem.USERINFO_KEY );
357                            userInfo.setAccessGui( guiInfo );
358                    }
359    
360                    HttpServletResponse response = (HttpServletResponse)pageContext.getResponse();
361                    // if( headType == XML_TYPE ) { // 4.2.1.0 (2008/04/16)
362                    if( headType == HEAD_TYPE_ENUM.xml ) {
363                            response.setHeader( "contentType","text/xml; charset=UTF-8" );
364                    }
365                    response.setHeader( "Cache-Control","max-age=0" );
366    
367                    // if( headType == QUERY_TYPE ) { // 4.2.1.0 (2008/04/16)
368                    if( headType == HEAD_TYPE_ENUM.query ){
369                            removeSessionAttribute( HybsSystem.TBL_MDL_CONKEY );
370                    }
371    
372                    // 4.3.4.1 (2008/12/08) title 属??sessionInit() でなく?doStartTag() メソ?で処?
373                    // title 属?を最優先で設定する?
374                    if( title != null ) {
375                            setSessionAttribute( "GUI_TITLE", title );
376                    }
377                    else {
378                            title = String.valueOf( getSessionAttribute( "GUI_TITLE" ) );
379                    }
380    
381                    return( EVAL_BODY_BUFFERED );   // Body を評価する? extends BodyTagSupport ?
382            }
383    
384            /**
385             * Taglibのタグ本体を処??doAfterBody() ?オーバ?ライドします?
386             *
387             * @return      後続????(SKIP_BODY)
388             */
389            @Override
390            public int doAfterBody() {
391                    body = nval( getBodyString(),null );
392                    return(SKIP_BODY);
393            }
394    
395            /**
396             * Taglibの終?グが見つかったときに処??doEndTag() ?オーバ?ライドします?
397             *
398             * @og.rev 4.2.1.0 (2008/04/16) headTypeのenum化?HTMLタグにclass属?を??
399             * @og.rev 4.3.1.0 (2008/09/02) AJax?ー??ブル、画面遷移なしモード?対?
400             * @og.rev 4.3.3.0 (2008/10/01) リアルタイ?ェ?時にjQueryをインクルード?tabLinkのJS追?
401             * @og.rev 4.3.5.0 (2009/02/01) JavaScript整?伴?更
402             * @og.rev 4.3.6.0 (2009/04/01) eventColumn追?
403             * @og.rev 4.3.8.0 (2009/08/01) useAjaxSubmit追?
404             * @og.rev 5.1.3.0 (2010/02/01) CSSは、headTypeがnullでもinclude(forward.jspでエラーが発生した?合への対?
405             * @og.rev 5.1.3.0 (2010/02/01) noTransition,ajaxSubmitのコントロールは、requestで行う?
406             * @og.rev 5.2.0.0 (2010/09/01) Javaスクリプトで登録したイベントをイベントハンドラにバインドす?
407             * @og.rev 5.2.1.0 (2010/10/01) bulkSet.js追?、JavaScript の統合??
408             * @og.rev 5.3.6.0 (2011/06/01) QUERYのFocusの制御を追?
409             * @og.rev 5.4.4.2 (2012/02/03) type simple追?
410             * @og.rev 5.4.5.0 (2012/03/01) realTimeCheck,focusHilight制御追?
411             * @og.rev 5.5.8.0 (2012/11/01) viewport
412             * @og.rev 5.6.0.3 (2013/01/24) EventScriptの前に呼ぶqueryScriptPre追?
413             * @og.rev 5.6.2.1 (2013/03/08) useGantt2="true" の条件追?
414             * @og.rev 5.6.2.3 (2013/03/22) QUERYPRE_SCRIPT_JS   ?QUERYCONV_SCRIPT_JS に変更
415             * @og.rev 5.6.3.0 (2013/04/01) addEvent 追??useGantt2="true" 時?処??容と?
416             * @og.rev 5.6.3.2 (2013/04/12) useGantt2 ?。adjustEvent の引数で使??ける?
417             * @og.rev 5.6.3.3 (2013/04/19) useTbodyMovable 追?
418             * @og.rev 5.6.5.2 (2013/06/21) useHrefIcon 追?
419             * @og.rev 5.7.1.0 (2013/12/06) HTML5対?, handyタイプ追?, 処?法を変更?
420             *
421             * @return      後続????
422             */
423            @Override
424            public int doEndTag() {
425                    debugPrint();           // 4.0.0 (2005/02/28)
426    
427                    // 4.3.3.0 (2008/10/01) ?ォルト?として、リクエストパラメーターを使用
428                    noTransition = nval( getRequest().getParameter( HybsSystem.NO_TRANSITION_MODE_KEY ), noTransition ) ;
429                    useAjaxSubmit = nval( getRequest().getParameter( HybsSystem.USE_AJAX_SUBMIT_KEY ), useAjaxSubmit ) ;
430                    // 4.3.8.0 (2009/08/01) useAjaxSubmit追?noTransitionがtrueの場合?ajaxSubmitはfalse
431                    if( noTransition ) { useAjaxSubmit = false; }
432    
433                    setNoTransitionRequest( noTransition );
434                    setAjaxSubmitRequest( useAjaxSubmit );
435    
436                    // if( headType == XML_TYPE ) { // 4.2.1.0 (2008/04/16)
437                    if( headType == HEAD_TYPE_ENUM.xml ){
438                            jspPrint( XML_HEAD );
439                            return(EVAL_PAGE);              // ペ?ジの残りを評価する?
440                    }
441                    // 5.7.1.0 (2013/12/06) ======= ※ ここより下流には、HEAD_TYPE_ENUM.xml の headType は来な?? =======
442    
443                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
444    
445                    if( useTabstrip ) { buf.append( TAB_HEAD ); }   // tabstrip 機?を使用する場?
446                    else {
447                            // 5.7.1.0 (2013/12/06) HTML5対?
448    //                      buf.append( HEAD1 );
449                            if( useHTML5 ) { buf.append( HTML5_HEAD1 ); } else { buf.append( HEAD1 ); }
450                            buf.append( headType );
451    //                      buf.append( HEAD2  );
452                            if( useHTML5 ) { buf.append( HTML5_HEAD2 ); } else { buf.append( HEAD2 ); }
453                    }
454    
455                    // 4.3.7.0 (2009/06/01) IE8対?
456                    if ( useIE7Header ){
457                            buf.append ( IE7_HEAD );
458                    }
459    
460                    // 5.5.8.0 (2012/11/01) 
461                    if( useViewPort ){
462                            buf.append( MOBILE_HEAD );
463                    }
464    
465                    if( title.startsWith( "<span" ) ) {
466                            int adrs1 = title.indexOf( '>' );
467                            int adrs2 = title.length() - 7;         // </span> で終?て?はず?
468                            buf.append( title.substring( 0,adrs1+1 ) ).append( "<title>" );
469                            buf.append( title.substring( adrs1+1,adrs2 ) ).append( "</title>" );
470                            buf.append( title.substring( adrs2 ) );
471                    }
472                    else {
473                            buf.append( "  <title>" ).append( title ).append( "</title>" ).append( CR );
474                    }
475    
476                    // 5.7.1.0 (2013/12/06) HEAD_TYPE_ENUM.handy の設定を終わらせてしま??
477                    if( headType == HEAD_TYPE_ENUM.handy ){
478                            // CALENDAR_CSS を?込まな??
479                            addStyleTag(  DEFAULT_CSS       ,buf );
480                            addStyleTag(  CUSTOM_CSS        ,buf );
481                    }
482    
483                    // 5.7.1.0 (2013/12/06) HEAD_TYPE_ENUM.simple と handy の設定を終わらせてしま??
484                    if( headType == HEAD_TYPE_ENUM.simple || headType == HEAD_TYPE_ENUM.handy ){
485                            // 以前?、useHrefIcon == true で、HREF_ICON_CSS を?込んで?が??込まな??
486    
487                            // 注意:body の直前には、改行?入れな??良??(Tomcat4.1.30 では)
488                            if( body != null ) {    buf.append( body ); }
489                            buf.append( "</head>" );
490    
491                            jspPrint( buf.toString() );
492                            return(EVAL_PAGE);              // ペ?ジの残りを評価する?
493                    }
494                    // 5.7.1.0 (2013/12/06) ======= ※ ここより下流には、HEAD_TYPE_ENUM.simple と handy headType は来な?? =======
495    
496                    // 5.4.5.0 (2012/03/01) イベント制御用JSフラグ出?
497                    if( headType == HEAD_TYPE_ENUM.query || headType == HEAD_TYPE_ENUM.result ){
498                            buf.append("<script type=\"text/javascript\">").append( CR );
499                            addScriptFlg(REAL_TIME_CHECK_FLG ,useRealTimeCheck ,buf);
500                            addScriptFlg(FOCUS_HILIGHT_FLG ,useFocusHilight ,buf);
501                            buf.append( "</script>" ).append( CR );
502                    }
503    
504                    // 5.1.3.0 (2010/02/01) CSSは、headTypeがnullでもinclude
505                    // 5.4.4.2 (2012/02/03) CSSを読み込まな?イプsimpleを追?
506                    // 5.7.1.0 (2013/12/06) headType?xml と simple と headType は、来な??
507    //              if( headType == null || ( headType != HEAD_TYPE_ENUM.xml && headType != HEAD_TYPE_ENUM.simple ) ) {
508                            addStyleTag(  DEFAULT_CSS       ,buf );
509                            addStyleTag(  CALENDAR_CSS      ,buf );
510                            addStyleTag(  CUSTOM_CSS        ,buf );
511    //              }
512    
513                    // init,query,result,menu タイプで使用されるJavaScript
514                    // 5.4.4.2 (2012/02/03) simple追?
515                    // 5.7.1.0 (2013/12/06) headType?xml と simple と headType は、来な??
516    //              if ( headType != null && headType != HEAD_TYPE_ENUM.xml && headType != HEAD_TYPE_ENUM.simple ){ // 4.2.1.0 (2008/04/21) or連結を反転
517                    if ( headType != null ){
518                            addScriptTag( JQUERY_JS         ,buf ); // 4.3.5.0 (2009/02/01)
519                            addScriptTag( JQUERY_OG_JS  ,buf ); // 4.3.5.0 (2009/02/01)
520                            addScriptTag( DEFAULT_JS        ,buf );
521    //                      addScriptTag( INPUTMENU_JS      ,buf );         // 5.2.1.0 (2010/10/01) DEFAULT_JS に統?
522    //                      addScriptTag( OGPOPUP_JS        ,buf );         // 5.2.1.0 (2010/10/01) DEFAULT_JS に統?
523                            if( useTabLink ) { addScriptTag( TABLINK_JS     ,buf ); } // 4.3.3.0 (2008/10/01)
524                    }
525    
526                    // 5.6.0.3 (2013/01/24) EventScrpt前に呼び出すquery専用スクリプト
527                    if( headType == HEAD_TYPE_ENUM.query ){
528    //                      addScriptTag( QUERYPRE_SCRIPT_JS ,buf );                        // 5.6.2.3 (2013/03/22) QUERYPRE_SCRIPT_JS   ?QUERYCONV_SCRIPT_JS に変更
529                            addScriptTag( QUERYCONV_SCRIPT_JS ,buf );
530                    }
531                    
532                    // query,result タイプで使用されるJavaScript
533                    if( headType == HEAD_TYPE_ENUM.query || headType == HEAD_TYPE_ENUM.result ){
534                            addScriptTag( EVENT_SCRIPT_JS, buf );   // 5.2.1.0 (2010/10/01) JavaScript新規統?
535    //                      if( useFocusHilight ) { addScriptTag( FOCUS_HILIGHT_JS, buf ); }        // 4.3.5.0 (2009/02/01)
536    //                      if( useAutoConvert ) { addScriptTag( AUTO_CONVERT_JS, buf ); }          // 4.3.5.0 (2009/02/01)
537    //                      if( useEventColumn ) { addScriptTag( EVENT_COLUMN_JS, buf ); }          // 4.3.6.0 (2009/04/01)
538                            // 4.3.3.0 (2008/10/01)
539    //                      if( noTransition || useAjaxTreeTable || useRealTimeCheck || useAjaxSubmit ) { // 4.3.8.0 (2009/08/01)
540                                    if( noTransition || useAjaxSubmit ){ // 4.3.8.0 (2009/08/01)
541                                            addScriptTag( JQUERY_FORM_JS, buf );
542                                            addScriptTag( JQUERY_DRAG_JS, buf );
543                                            addScriptTag( JQUERY_MODAL_JS, buf );
544                                            addStyleTag( JQUERY_MODAL_CSS, buf );
545                                    }
546    //                              if( useRealTimeCheck ){ addScriptTag( REAL_TIME_CHECK_JS, buf ); } // 4.3.4.2 (2008/12/15)
547    //                      }
548    
549                            // 5.6.4.3 (2013/05/24) useTbodyMovable 付け忘れ
550                            if( useTbodyMovable ) {
551                                    addScriptTag( TBODY_MOVABLE_JS, buf );          // 5.6.3.3 (2013/04/19) useTbodyMovable 追?
552                            }
553    
554                            // 5.2.0.0 (2010/09/01) Javaスクリプトで登録したイベントをイベントハンドラにバイン?
555    //                      addScriptTag( BIND_EVENTS_JS ,buf );
556                    }
557    
558                    // 4.3.5.0 (2008/02/01) 位置を両タイプで利用される前のインクルードから後に変更
559                    // query タイプで使用されるJavaScript
560                    if( headType == HEAD_TYPE_ENUM.query ){
561                            addScriptTag( QUERY_SCRIPT_JS ,buf );   // 5.2.1.0 (2010/10/01) JavaScript新規統?
562    
563                            // 5.3.6.0 (2011/06/01) QUERYのFocusの制御を追?
564                            boolean isFocus = StringUtil.nval( getRequestValue( HybsSystem.QUERY_FOCUS_KEY ), true );
565                            // 機?を利用しな??合?み変数を??
566                            if( !isFocus ) { addScriptValue( HybsSystem.QUERY_FOCUS_KEY, "false", buf ); }
567    //                      if( useTimeSet          ) { addScriptTag( TIME_SET_JS    ,buf ); }
568    //                      if( useToggleFrame      ) { addScriptTag( TOGGLE_FRAME_JS,buf ); }
569    //                      if( useAdjustFrameHeight ) { addScriptTag( ADJUST_FRAME_HEIGHT_JS,buf ); } // 4.3.5.0 (2009/02/01)
570    //                      if( useFocusFirstElm ) { addScriptTag( FOCUS_FIRST_ELM,buf ); } // 4.3.5.0 (2009/02/01)
571                    }
572    
573                    // result タイプで使用されるJavaScript
574                    if( headType == HEAD_TYPE_ENUM.result ) {
575                            addScriptTag( RESULT_SCRIPT_JS ,buf );  // 5.2.1.0 (2010/10/01) JavaScript新規統?
576    
577    //                      if( useHilightRow       ) { addScriptTag( HILIGHT_ROW_JS        ,buf ); }
578                            if( useScrollBar        ) {
579                                                                            //  4.3.5.0 (2009/02/01) CSSも読み込?
580                                                                            addScriptTag( SCROLL_BAR_JS, buf );
581                                                                            addStyleTag ( SCROLL_BAR_CSS, buf );
582    
583                                            // ※ 取り合えず?専用の制御フラグを持たな??で、useScrollBar に間?りします?
584    //                                      addScriptTag( BULK_SET_JS, buf );       // 5.2.1.0 (2010/10/01)
585                            }
586    //                      if( usePrintLine        ) { addScriptTag( PRINT_LINE_JS         ,buf ); }
587    //                      if( useTimeSet          ) { addScriptTag( TIME_CHECK_JS         ,buf ); }
588                            if( useGantt            ) { addScriptTag( GANTT_JS                      ,buf ); }
589                            if( useTreeBOM          ) { addScriptTag( TREEBOM_JS            ,buf ); }
590                            if( useAjaxTreeTable) { addScriptTag( AJAX_TREETABLE_JS ,buf ); }               // 4.3.1.0 (2008/09/02)
591                            if( noTransition        ) {
592                                                                            addScriptTag( AJAX_HYBS_FORM    ,buf );                 // 4.3.8.0 (2009/08/01)
593                                                                            addScriptTag( NO_TRANSITION_JS  ,buf );
594                                                                      } // 4.3.1.0 (2008/09/02)
595                            if( useAjaxSubmit       ) {
596                                                                            addScriptTag( AJAX_HYBS_FORM    ,buf );
597                                                                            addScriptTag( AJAX_SUBMIT_JS    ,buf );
598                                                                      } // 4.3.8.0 (2009/08/01)
599    //                      if ( useRowCountReplace ){ addScriptTag( ROW_COUNT_REPLACE ,buf ); }    // 4.3.8.0 (2009/08/01)
600    //                      if( useGantt2           ) {                                                                                                     // 5.6.2.1 (2013/03/08) useGantt2 追?
601    //                                                                      addStyleTag ( GANTT2_CSS        ,buf );
602    //                                                                      addScriptTag( GANTT2_JS         ,buf );
603    //                                                                      buf.append( "  <script type=\"text/javascript\">" );
604    //                                                                      buf.append( GANTT2_SCRIPT );
605    //                                                                      buf.append( "  </script>" ).append( CR );
606    //                      }
607    
608                            // 5.6.3.0 (2013/04/01) addEvent 追??5.6.3.2 (2013/04/12) ?
609    //                      if( addEvent != null && addEvent.length() > 0 ) {
610    //                                                                      buf.append( "  <script type=\"text/javascript\"> addEvent( this, \"load\", " );
611    //                                                                      buf.append( addEvent );
612    //                                                                      buf.append( " ); </script>" ).append( CR );
613    //                      }
614    
615                            // 5.6.3.2 (2013/04/12) useGantt2 ?。adjustEvent の引数で使??ける?
616                            if( adjustEvent != null ) {
617                                    if( "Bar".equals( adjustEvent ) ) {
618                                            addScriptTag(   AJST_BAR_JS             ,buf );
619                                    }
620                                    else if( "Matrix".equals( adjustEvent ) ) {
621                                            addScriptTag(   AJST_MATRIX_JS  ,buf );
622                                    }
623                                    else if( "Table".equals( adjustEvent ) || "Gantt".equals( adjustEvent ) || "Task".equals( adjustEvent ) ) {
624                                            addStyleTag (   AJST_GANTT_CSS  ,buf );
625                                            addScriptTag(   AJST_GANTT_JS   ,buf );
626                                    }
627                                    addEventScript( "adjust" + adjustEvent  ,buf );
628                            }
629    
630                            // 5.6.3.2 (2013/04/12) addEvent 追?を?メソ??
631                            addEventScript( addEvent,buf );
632                    }
633    
634                    // 5.6.5.2 (2013/06/21) useHrefIcon
635                    if( useHrefIcon ) {
636                            addStyleTag(  HREF_ICON_CSS     ,buf );
637                    }
638    
639                    // 注意:body の直前には、改行?入れな??良??(Tomcat4.1.30 では)
640                    if( body != null ) {    buf.append( body ); }
641                    buf.append( "</head>" );
642    
643                    jspPrint( buf.toString() );
644                    return(EVAL_PAGE);              // ペ?ジの残りを評価する?
645            }
646    
647            /**
648             * タグリブオブジェクトをリリースします?
649             * キャ?ュされて再利用される?で、フィールド?初期設定を行います?
650             *
651             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
652             * @og.rev 5.4.5.0 (2012/03/01) realTimeCheck,focusHilight
653             * @og.rev 5.5.8.0 (2012/11/01) useViewPort  追?
654             * @og.rev 5.6.2.1 (2013/03/08) useGantt2  追?
655             * @og.rev 5.6.3.0 (2013/04/01) addEvent 追?
656             * @og.rev 5.6.3.2 (2013/04/12) useGantt2 ?。adjustEvent の引数で使??ける?
657             * @og.rev 5.6.3.3 (2013/04/19) useTbodyMovable 追?
658             * @og.rev 5.6.5.2 (2013/06/21) useHrefIcon 追?
659             * @og.rev 5.7.1.0 (2013/12/06) HTML5対?
660             */
661            @Override
662            protected void release2() {
663                    super.release2();
664                    body                    = null;
665                    title                   = null ;
666                    headType                = null;
667    //              useTimeSet              = true;         // 5.2.1.0 (2010/10/01) 統?
668    //              useToggleFrame  = true;         // 5.2.1.0 (2010/10/01) 統?
669    //              useInputFocus   = true;         // 5.2.1.0 (2010/10/01) 統?
670    //              useHilightRow   = true;         // 5.2.1.0 (2010/10/01) 統?
671                    useScrollBar    = true;
672    //              usePrintLine    = true;         // 5.2.1.0 (2010/10/01) 統?
673                    useTabstrip             = false;
674                    useGantt                = false;
675    //              useGantt2               = false;                // 5.6.2.1 (2013/03/08) 追??.6.3.2 (2013/04/12) ?
676                    useTreeBOM              = false;
677                    useGuest                = false;                // 4.2.2.0 (2008/05/28)
678                    useAjaxTreeTable= false;                // 4.3.1.0 (2008/09/02)
679                    noTransition    = HybsSystem.sysBool( "NO_TRANSITION_MODE" );   // 4.3.1.0 (2008/09/02)
680                    useAjaxSubmit   = HybsSystem.sysBool( "USE_AJAX_SUBMIT" );
681    //              useRealTimeCheck= HybsSystem.sysBool( "USE_REAL_TIME_CHECK" );  // 4.3.3.0 (2008/10/01) ,// 5.2.1.0 (2010/10/01) 統?
682                    useRealTimeCheck= true; // 5.4.5.0 (2012/03/01) 復活
683                    useTabLink              = false;                // 4.3.3.0 (2008/10/01)
684    //              useAutoConvert  = HybsSystem.sysBool( "USE_INPUT_AUTO_CONVERT" ); // 4.3.5.0 (2009/02/01) , // 5.2.1.0 (2010/10/01) 統?
685    //              useFocusHilight = true;                 // 4.3.5.0 (2009/02/01) , // 5.2.1.0 (2010/10/01) 統?
686                    useFocusHilight = true;                 // 5.4.5.0 (2012/03/01) 復活
687                    useHrefIcon             = false;                // 5.6.5.2 (2013/06/21) 追?
688    //              useFocusFirstElm= true;                 // 4.3.5.0 (2009/02/01) , // 5.2.1.0 (2010/10/01) 統?
689    //              useAdjustFrameHeight = true;    // 4.3.5.0 (2009/02/01) , // 5.2.1.0 (2010/10/01) 統?
690    //              useEventColumn  = true;                 // 4.3.6.0 (2009/04/01) , // 5.2.1.0 (2010/10/01) 統?
691                    useIE7Header    = HybsSystem.sysBool( "USE_IE7_HEADER" ); // 4.3.7.0 (2009/06/01) IE8対?
692    //              useRowCountReplace = HybsSystem.sysBool( "USE_ROWCNT_REPLACE" ); // 4.3.8.0 (2009/08/01) , // 5.2.1.0 (2010/10/01) 統?
693                    useViewPort             = HybsSystem.sysBool( "USE_VIEWPORT_HEADER" ); // 5.5.8.0 (2012/11/01)
694                    addEvent                = null;                 // 5.6.3.0 (2013/04/01) addEvent 追?
695                    adjustEvent             = null;                 // 5.6.3.2 (2013/04/12) adjustEvent 追?
696                    useTbodyMovable = false;                // 5.6.3.3 (2013/04/19) 新規追?
697                    useHTML5                = HybsSystem.sysBool( "USE_HTML5_HEADER" );     // 5.7.1.0 (2013/12/06) HTML5対?
698            }
699    
700            /**
701             * スクリプトを制御するための変数??を作?します?
702             * JavaScriptのファイル統合によりファイルを行うか否かでは、機?のON/OFF?
703             * 行うことができません?
704             * こ?ため、機?のON/OFFを制御するための変数を書き?して、JavaScript?
705             * これをコントロールします?
706             * &lt;script type="text/javascript" &lt;!-- var (key)="(value)"; --&gt;&lt;/script&gt;
707             *
708             * @og.rev 5.3.6.0 (2011/06/01) 新規作?
709             *
710             * @param       key             JavaScript変数?
711             * @param       value   JavaScriptに渡す?
712             * @param       buf     ?文字?を追??StringBuilder
713             *
714             * @return      追?れたStringBuilder
715             */
716            private StringBuilder addScriptValue( final String key, final String value, final StringBuilder buf ) {
717                    if( value != null && value.length() > 0 ) {
718                            String tag = "  <script type=\"text/javascript\">"
719                                    + " var " + key + "=\"" + value + "\"; </script>"
720                                    + CR ;
721                            buf.append( tag );
722                    }
723                    return buf ;
724            }
725    
726            /**
727             * スクリプト?文字?を作?します?
728             * JSPアドレスと、スクリプトファイル名を?、スクリプト?文字?を作?します?
729             * &lt;script type="text/javascript" <del>language="JavaScript"</del>
730             *       src="(jspAdrs)(filename)" &gt;&lt;!-- --&gt;&lt;/script&gt;
731             *
732             * @og.rev 4.3.5.3 (2008/02/22) Tomcatキャ?ュ対?CSSとJavaScriptのパラメーターにバ?ジョン番号を付加)
733             * @og.rev 5.2.1.0 (2010/10/01) 予め合?できる??は合?しておく?
734             * @og.rev 5.2.1.0 (2010/10/01) キャ?ュのパラメータを??ァイルの?更新日を使用する?
735             * @og.rev 5.6.2.1 (2013/03/08) ファイルの?更新日が取得できな??合?、BuildNumber.BUILD_ID を使用する?
736             *
737             * @param       filename        スクリプトファイル?common/default.js)
738             * @param       buf                     ?文字?を追??StringBuilder
739             *
740             * @return      追?れたStringBuilder
741             */
742    //      private StringBuilder addScriptTag( final String filename, final StringBuilder buf ) {
743    //              buf.append( "  <script type=\"text/javascript\" src=\"" );
744    //              buf.append( JSP_ADRS );
745    ////            buf.append( XHTMLTag.addUrlEncode( filename, XHTMLTag.urlEncode( VERSION_PREFIX, BuildNumber.BUILD_ID ) ) ); // 4.3.5.3 (2008/02/22)
746    //              buf.append( filename ).append( VERSION_PREFIX );        // 5.2.1.0 (2010/10/01)
747    //              buf.append( "\" ><!-- --></script>" ).append( CR );
748    //
749    //              return buf ;
750    //      }
751            private StringBuilder addScriptTag( final String filename, final StringBuilder buf ) {
752                    String tag = srcAdrs.get( filename );
753                    if( tag == null ) {
754                            File file = new File( JSP_DIR + filename );
755                            // 5.6.2.1 (2013/03/08) ファイルの?更新日が取得できな??合?、BuildNumber.BUILD_ID を使用
756                            long ts = file.lastModified();
757                            String tsv = (ts != 0L) ? String.valueOf( ts ) : BuildNumber.BUILD_ID ;
758    
759                            tag = "  <script type=\"text/javascript\" src=\""
760                                            + JSP_ADRS
761                                            + filename
762                                            + "?v="
763    //                                      + String.valueOf( file.lastModified() )
764    //                                      + file.lastModified()                                           // 5.3.0.0 (2010/12/01) String.valueOf は不?
765                                            + tsv                                                                           // 5.6.2.1 (2013/03/08) 
766                                            + "\" ><!-- --></script>"
767                                            + CR ;
768                            srcAdrs.put( filename,tag );
769                    }
770                    buf.append( tag );
771                    return buf ;
772            }
773    
774            /**
775             * var xxx = true;のような??を作?します?
776             * xxxとtrue/falseを外部から与えます?
777             *
778             * @og.rev 5.4.5.0 (2012/03/01) 新規作?
779             *
780             * @param       var     変数?
781             * @param       flg     true/false
782             * @param       buf     ?文字?を追??StringBuilder
783             *
784             * @return      追?れたStringBuilder
785             */
786            private StringBuilder addScriptFlg( final String var, final boolean flg, final StringBuilder buf ) {
787                    buf.append( "var ")
788                            .append( var )
789                            .append( " = ")
790                            .append( flg )
791                            .append( ";" )
792                            .append( CR );
793                    return buf ;
794            }
795    
796            /**
797             * スタイルシート指定文字?を作?します?
798             * JSPアドレスと、スタイルシートファイル名を?、スタイルシート指定文字?を作?します?
799             * &lt;link rel="stylesheet" type="text/css"
800             *       href="(jspAdrs)(filename)" /&gt;
801             *
802             * @og.rev 4.3.5.3 (2008/02/22) Tomcatキャ?ュ対?CSSとJavaScriptのパラメーターにバ?ジョン番号を付加)
803             * @og.rev 5.2.1.0 (2010/10/01) 予め合?できる??は合?しておく?
804             * @og.rev 5.2.1.0 (2010/10/01) キャ?ュのパラメータを??ァイルの?更新日を使用する?
805             * @og.rev 5.3.0.0 (2010/11/22) linkタグの終?scriptで終?て?バグを修正?
806             * @og.rev 5.6.2.1 (2013/03/08) ファイルの?更新日が取得できな??合?、BuildNumber.BUILD_ID を使用する?
807             *
808             * @param       filename        スタイルシートファイル?common/default.js)
809             * @param       buf                     ?文字?を追??StringBuilder
810             *
811             * @return      追?れたStringBuilder
812             */
813    //      private StringBuilder addStyleTag( final String filename, final StringBuilder buf ) {
814    //              buf.append( "  <link rel=\"stylesheet\" type=\"text/css\" href=\"" );
815    //              buf.append( JSP_ADRS );
816    ////            buf.append( XHTMLTag.addUrlEncode( filename, XHTMLTag.urlEncode( VERSION_PREFIX, BuildNumber.BUILD_ID ) ) ); // 4.3.5.3 (2008/02/22)
817    //              buf.append( filename ).append( VERSION_PREFIX );        // 5.2.1.0 (2010/10/01)
818    //              buf.append( "\" />" ).append( CR );
819    //
820    //              return buf ;
821    //      }
822            private StringBuilder addStyleTag( final String filename, final StringBuilder buf ) {
823                    String tag = srcAdrs.get( filename );
824                    if( tag == null ) {
825                            File file = new File( JSP_DIR + filename );
826                            // 5.6.2.1 (2013/03/08) ファイルの?更新日が取得できな??合?、BuildNumber.BUILD_ID を使用
827                            long ts = file.lastModified();
828                            String tsv = (ts != 0L) ? String.valueOf( ts ) : BuildNumber.BUILD_ID ;
829    
830                            tag = "  <link rel=\"stylesheet\" type=\"text/css\" href=\""
831                                            + JSP_ADRS
832                                            + filename
833                                            + "?v="
834    //                                      + String.valueOf( file.lastModified() )
835    //                                      + file.lastModified()                                           // 5.3.0.0 (2010/12/01) String.valueOf は不?
836                                            + tsv                                                                           // 5.6.2.1 (2013/03/08) 
837    //                                      + "\" ><!-- --></script>"
838                                            + "\" />"
839                                            + CR ;
840                            srcAdrs.put( filename,tag );
841                    }
842                    buf.append( tag );
843                    return buf ;
844            }
845    
846            /**
847             * addEvent でJavaScript をロードする??行う??を作?します?
848             * イベント名を外部から与えます?
849             *
850             * @og.rev 5.6.3.2 (2013/04/12) 新規作?
851             *
852             * @param       event   イベント名
853             * @param       buf     ?文字?を追??StringBuilder
854             *
855             * @return      追?れたStringBuilder
856             */
857            private StringBuilder addEventScript( final String event, final StringBuilder buf ) {
858                    if( event != null && event.length() > 0 ) {
859                            buf.append( "  <script type=\"text/javascript\"> addEvent( this, \"load\", " )
860                                    .append( event )
861                                    .append( " ); </script>" )
862                                    .append( CR );
863                    }
864                    return buf ;
865            }
866    
867            /**
868             * セ?ョンの初期処?行います?
869             * common/session_init.jsp をタグに?込みました?
870             *
871             * @og.rev 3.8.0.0 (2005/06/07) 同??ョンでのマルチ起動対策を行います?
872             * @og.rev 3.8.0.4 (2005/08/08) custom を呼び出せるように追?
873             * @og.rev 3.8.1.2 (2005/12/19) 認証無し?場合?ユーザー制御修正
874             * @og.rev 4.0.0.0 (2007/10/18) メ?ージリソース統? getResource().getMessage > getResource().getLabel )
875             * @og.rev 4.0.0.0 (2007/10/31) ロール?でのログイン機?追?
876             * @og.rev 4.2.1.0 (2008/04/16) headTypeのenum?
877             * @og.rev 4.2.2.0 (2008/05/28) GUESTユーザの復活
878             * @og.rev 4.2.4.1 (2008/07/08) pageContext.include時にflushしな??修正
879             * @og.rev 4.3.3.1 (2008/10/08) シス?パラメータの初期値設定? userInfo 作?ブロ?の外で行うように変更します?
880             * @og.rev 4.3.4.1 (2008/12/08) title 属?を使用しなくします?(doStartTag() メソ?で処?
881             * @og.rev 5.1.4.0 (2010/03/01) lang を書き換え可能とする?
882             * @og.rev 5.1.8.0 (2010/07/01) useGuest属?が有効にならな?グを修正?
883             * @og.rev 5.1.8.0 (2010/07/01) ユーザーIDの大??小文字を区別する(大?化を?)
884             * @og.rev 5.2.0.0 (2010/09/01) アクセス禁止アドレスによる不正アクセス防止機?追?
885             */
886            private void sessionInit() {
887                    HttpSession session = pageContext.getSession();
888                    HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
889    
890                    // 3.5.3.0 (2003/10/27) encode.jsp ?
891                    try {
892                            request.setCharacterEncoding( "UTF-8" );
893                    }
894                    catch (UnsupportedEncodingException ex) {
895                            throw new HybsSystemException( ex );
896                    }
897    
898                    // 3.8.0.0 (2005/06/07) 同??ョンでのマルチ起動対策を行います?
899                    String cntR = request.getParameter( HybsSystem.MULTI_SESSION_CHECK );
900                    if( cntR != null ) {
901                            String cntS = (String)session.getAttribute( HybsSystem.MULTI_SESSION_CHECK );
902                            if( cntS != null && !cntR.equals( cntS ) ) {
903                                    ResourceManager resource = ResourceFactory.newInstance( request.getLocale().getLanguage() );
904    
905                                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
906                                    buf.append( resource.getLabel( "ERR0035.T" ) ).append( HybsSystem.CR );
907                                    buf.append( resource.getLabel( "ERR0035.1" ) ).append( HybsSystem.CR );
908                                    buf.append( resource.getLabel( "ERR0035.2" ) ).append( HybsSystem.CR );
909                                    buf.append( resource.getLabel( "ERR0035.3" ) ).append( HybsSystem.CR );
910    
911                                    throw new HybsSystemException( buf.toString() );
912                            }
913                    }
914    
915                    // シス?パラメータの初期値設?
916                    // 4.3.3.1 (2008/10/08) 戻るリンクの不?合対応で、後方の userInfo 作?ブロ?の外に出してくる?
917                    if( ! HybsSystem.isParamSet() ) {
918                            String  serverName      = request.getServerName();
919                            String  scheme          = request.getScheme();
920                            int             port            = request.getServerPort();
921                            String  contextPath = request.getContextPath();
922    
923                            HybsSystem.setRequestParam( serverName,scheme,port,contextPath );
924                    }
925    
926                    // 3.3.0.0 (2003/06/23) 操作?中以外でのセ?ョン?に対応?
927                    // ログイン時?初期化を行います?
928                    UserInfo userInfo = (UserInfo)getSessionAttribute( HybsSystem.USERINFO_KEY );
929                    String userID = request.getRemoteUser() ;
930    
931                    // 3.8.1.2 (2005/12/19)
932                    if( userInfo == null || ( userID != null && ! userID.equalsIgnoreCase( userInfo.getUserID() ))) {
933                    // セ?ョンタイ?ウト?確?command が?null,"NEW","INIT" 以外?、エラー
934                            String command = request.getParameter( "command" );
935                            if( command == null || "NEW".equals( command ) || "INIT".equals( command ) ) {
936                                    if( userID == null ) {
937                                            // 4.2.2.0 (2008/05/28) GUESTユーザ復活(useGuestで制御)
938                                            // 5.1.8.0 (2010/07/01) useGuest属?が有効にならな?グを修正?
939                                            userID = "GUEST" ;              // 認証されて???合?、強制? GUESTユーザー
940                                    }
941                                    userInfo = UserInfoFactory.newInstance( userID,request.getRemoteAddr(),request.getParameter( "ROLES" ) );
942    
943                                    // 5.1.4.0 (2010/03/01) lang を書き換え可能とする?
944                                    String newLang = request.getParameter( "NEWLANG" ) ;
945                                    if( newLang != null ) { userInfo.setLang( newLang ); }
946    
947                                    session.setAttribute( HybsSystem.USERINFO_KEY, userInfo );
948    
949                                    // セ?ョンタイ?ウトを変更
950                                    session.setMaxInactiveInterval( HybsSystem.sysInt( "MAX_INACTIVE_INTERVAL" ) );
951                                    SystemManager.addSession( session );
952    
953                                    try {
954                                            // 4.2.4.1 (2008/07/08)
955                                            pageContext.include( "/jsp/custom/init.jsp", false );
956                                    } catch ( IOException ex ) {
957                                            String errMsg = "/jsp/custom/init.jsp の include に失敗しました?" + toString();
958                                            throw new HybsSystemException( errMsg,ex );             // 3.5.5.4 (2004/04/15) 引数の並び?更
959                                    } catch ( ServletException ex ) {
960                                            String errMsg = "/jsp/custom/init.jsp の include に失敗しました?" + toString();
961                                            throw new HybsSystemException( errMsg,ex );             // 3.5.5.4 (2004/04/15) 引数の並び?更
962                                    }
963                            }
964                            else {
965                                    ResourceManager resource = ResourceFactory.newInstance( request.getLocale().getLanguage() );
966    
967                                    // エラー表示ペ?ジを表示する?.0.0 (2005/01/31)
968                                    String msg = String.valueOf( HybsSystem.sysInt( "MAX_INACTIVE_INTERVAL" ) ) ;
969    
970                                    // ERR0002.T=ユーザーログインエラー
971                                    // ERR0002.1=セ?ョンのタイ?ウトか?また?ユーザーログインエラーが発生しました?
972                                    // ERR0002.2=現在のタイ?ウト? {0} 秒にセ?されて?す?
973                                    // ERR0002.3=長時間使用しな??合?,画面を閉じる事により,サーバ?側の?を軽減する事ができます?
974                                    // ERR0002.4=<h2>もう??ログインし直して下さ??</h2>
975    
976                                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
977                                    buf.append( resource.getLabel( "ERR0002.T" ) ).append( HybsSystem.CR );
978                                    buf.append( resource.getLabel( "ERR0002.1" ) ).append( HybsSystem.CR );
979                                    buf.append( resource.getLabel( "ERR0002.2",new String[] { msg } ) ).append( HybsSystem.CR );
980                                    buf.append( resource.getLabel( "ERR0002.3" ) ).append( HybsSystem.CR );
981                                    buf.append( resource.getLabel( "ERR0002.4" ) ).append( HybsSystem.CR );
982    
983                                    throw new HybsSystemException( buf.toString() );                // 4.0.0 (2005/01/31)
984                            }
985                    }
986    
987                    boolean useGamenId = false;
988                    String gamenId = request.getParameter( "GAMENID" );
989                    String requestURI = request.getRequestURI();
990    
991                    int index2 = requestURI.lastIndexOf( '/' );
992                    String jspID   = requestURI.substring( index2+1 );
993                    if( gamenId == null ) {
994                            int index1 = requestURI.lastIndexOf( '/',index2-1 );
995                            gamenId = requestURI.substring( index1+1,index2 );
996                    }
997                    else {
998                            useGamenId = true;
999                    }
1000    
1001                    ResourceManager resource = ResourceFactory.newInstance( userInfo.getLang() );
1002                    // 4.0.0 (2004/12/31)
1003                    if( ! userInfo.isGUIInfoSet() ) {
1004                            resource.makeGUIInfos( userInfo );
1005                    }
1006    
1007                    GUIInfo guiInfo = null;
1008                    String gui_title ;
1009                    // 3.8.0.4 (2005/08/08) custom を呼び出せるように追?
1010                    if( "menu".equals( gamenId ) || "jsp".equals( gamenId ) || "custom".equals( gamenId ) || "common".equals( gamenId ) ) {
1011                            // 3.5.4.5 (2004/01/23) トップメニューの設?
1012                            // 4.3.4.1 (2008/12/08) title 属?を使用しなくします?(doStartTag() メソ?で処?
1013                            gui_title = HybsSystem.sys( "GUI_TOP_TITLE" );
1014                            if( gui_title == null ) { gui_title = "Hayabusa " + gamenId ; }
1015                    }
1016                    else {
1017                            guiInfo = userInfo.getGUIInfo( gamenId );               // 4.0.0 (2004/12/31)
1018    
1019                            if( guiInfo != null ) {
1020                                    session.setAttribute( HybsSystem.GUIINFO_KEY, guiInfo );
1021                                    session.setAttribute( "JSPID", jspID );
1022                            }
1023                            else {
1024                                    // エラー表示ペ?ジを表示する?.0.0 (2005/01/31)
1025                                    String msg = userInfo.getJname();
1026    
1027                                    StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
1028                                    buf.append( resource.getLabel( "ERR0003.T" ) ).append( HybsSystem.CR );
1029                                    buf.append( resource.getLabel( "ERR0002.1",new String[] { msg } ) ).append( HybsSystem.CR );
1030                                    buf.append( resource.getLabel( "ERR0002.2" ) ).append( HybsSystem.CR );
1031    
1032                                    throw new HybsSystemException( buf.toString() );                // 4.0.0 (2005/01/31)
1033                            }
1034    
1035                            // 画面のタイトルをリクエスト変数でも指定できるようにします?
1036                            // 相当??つけ仕事が入って?すが、?見直します?
1037                            // 4.3.4.1 (2008/12/08) title 属?を使用しなくします?(doStartTag() メソ?で処?
1038                            gui_title = request.getParameter( "GUI_TITLE" );
1039                            if( gui_title == null || gui_title.length() == 0 ) {
1040                                    String cmd = request.getParameter( "command" );
1041                                    if( cmd == null || cmd.equals( "NEW" ) ||
1042                                             cmd.equals( "RENEW" ) || cmd.equals( "INIT" ) ||
1043                                             cmd.equals( "RESET" ) || cmd.length() == 0  ) {
1044                                            gui_title = guiInfo.getLongName();
1045                                    }
1046                            }
1047                    }
1048    
1049                    // 5.2.0.0 (2010/09/01) アクセス禁止アドレスによる不正アクセス防止機?追?
1050                    if( useGamenId ) {
1051                            int idx1 = requestURI.lastIndexOf( "/jsp/" ) + 5;
1052                            int idx2 = requestURI.lastIndexOf( '/' );
1053                            if( idx1 >= 0 && idx2 >= 0 && idx1 < idx2 ) {
1054                                    String reqAddr = requestURI.substring( idx1, idx2 );
1055                                    if( reqAddr.indexOf( '/' ) < 0 && !userInfo.isValidAddr( reqAddr ) ) {
1056                                            String msg = userInfo.getJname();
1057                                            StringBuilder buf = new StringBuilder( HybsSystem.BUFFER_MIDDLE );
1058                                            buf.append( resource.getLabel( "ERR0003.T" ) ).append( HybsSystem.CR );
1059                                            buf.append( resource.getLabel( "ERR0002.1",new String[] { msg } ) ).append( HybsSystem.CR );
1060                                            throw new HybsSystemException( buf.toString() );
1061                                    }
1062                            }
1063                    }
1064    
1065                    // 4.3.4.1 (2008/12/08) title 属?を使用しなくします?(doStartTag() メソ?で処?
1066                    if( gui_title != null ) {
1067                            session.setAttribute( "GUI_TITLE", gui_title );
1068                    }
1069            }
1070    
1071            /**
1072             * 【TAG】HTML の タイトルを設定しま?初期値:session に"GUI_TITLE" キーで登録されて?値)?
1073             *
1074             * @og.tag
1075             *  head タグのBody部に、title タグを設定します?
1076             * &lt;title&gt;タイトル &lt;/title&gt; を追?ます?
1077             * 設定?、このタグでの?が?先されます?次に、リクエスト情報の
1078             * GUI_TITLE があれ?、使用されます??に、?期?である、session の
1079             * "GUI_TITLE" キーで登録されて?値を使用します?
1080             * session に登録されて?値とは、GUIリソースで定義された?名前(長)です?
1081             *
1082             * 初期値は、session に"GUI_TITLE" キーで登録されて?値です?
1083             * トップメニューのタイトルは、シス?パラメータ の、GUI_TOP_TITLE キー
1084             * で登録されて?値です?
1085             *
1086             * @param       titl    タイトル
1087             */
1088            public void setTitle( final String titl ) {
1089                    title = nval( getRequestParameter( titl ),title );
1090            }
1091    
1092            /**
1093             * 【TAG】??ータイプを設定しま?初期値:null)?
1094             *
1095             * @og.tag
1096             * ヘッ??タイ?とは、?別の設定をしなくても?基本?バリエーション?
1097             * 簡易的に設定する?合に使用するキーワードです?
1098             * ここでは、null,xml,init,query,result,menu,simple,handy の8つが指定できます?
1099             * query を指定すると、query.jsp で使用する基本?設定を再現できます?
1100             * timeSet.js , toggleFrame.js , inputFocus.js が標準で設定されます?
1101             * result も同様で、result.jsp で使用する基本?設定を再現できます?
1102             * hilightRow.js , ScrollBar.js , printLine.js ,
1103             * timeCheck.js , inputFocus.js が標準で設定されます?
1104             * inputFocus.js に関しては、query,result 両タイプとも設定されます?
1105             * init の場合???常はユーザーに見えな?面ですが、登録時エラーで
1106             * 処?停止する場合があり、CSSファイルのみ?込??があります?
1107             * menu はmultiMenu.jsp等?メニュー画面用の設定です?
1108             * なにも指定しな???null)では、index.jsp , forward.jsp などの?
1109             * 直接画面に表示されな?イプ?ヘッ??になります?
1110             * simple は何もインクルードしな?イプです?携帯電話用画面等でdefault.css
1111             * すらインクルードしたくな?、JSPの作りは同じにしておきたい場合に利用します?
1112             * xml は、Webサービス??Ajax などで使用する XML レスポンス用の
1113             * 特別なヘッ??を作?します?
1114             * handy は、ハン?ーターミナル等??最小限のインクルードを行います?
1115             * 初期値は、null です?
1116             *
1117             * @og.rev 4.2.1.0 (2008/04/16) headTypeのenum化に伴?更
1118             * @og.rev 5.4.4.2 (2012/02/03) simpleタイプ追?
1119             * @og.rev 5.7.1.0 (2013/12/06) handyタイプ追?JavaDoc修正)
1120             *
1121             * @param       type    ヘッ??タイ?null,xml,init,query,result,handy)
1122             */
1123            public void setHeadType( final String type ) {
1124                    String hType = nval( getRequestParameter( type ),null );
1125                    if( "null".equals( hType )){ // nullを?れた?
1126                            hType = null;
1127                    }
1128                    if( hType != null ) {
1129                            try {
1130                                    headType = HEAD_TYPE_ENUM.valueOf( hType );
1131                            }
1132                            catch (IllegalArgumentException  iaex) {
1133                                    StringBuilder errBuf = new StringBuilder(100);
1134                                    errBuf.append( "headType は" );
1135                                    for( HEAD_TYPE_ENUM obj : HEAD_TYPE_ENUM.values() ) {
1136                                            errBuf.append( ',' );
1137                                            errBuf.append( obj.name() );
1138                                    }
1139                                    errBuf.append("から選んでください?);
1140                                    throw new HybsSystemException( errBuf.toString(),iaex );        // 4.3.1.1 (2008/08/23)
1141                            }
1142                    }
1143            }
1144    
1145            /**
1146             * 【TAG】timeSet.js , timeCheck.js JavaScript を使用するかど?を指定しま?初期値:true)?
1147             *
1148             * @og.tag
1149             * 標準?込みJavaScriptである、timeSet.js, timeCheck.js を使用するかど??
1150             * ?します?
1151             * timeSet.js は、query タイプで、timeCheck.js は、result タイプで有効です?
1152             * 初期値は、使用する(true)です?
1153             *
1154             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1155             *
1156             * @param       flag    使用するかど?(true:使用する/false:使用しな?
1157             */
1158    //      public void setUseTimeSet( final String flag ) {
1159    //              useTimeSet = nval( getRequestParameter( flag ),useTimeSet );
1160    //      }
1161    
1162            /**
1163             * 【TAG】toggleFrame.js JavaScript を使用するかど?を指定しま?初期値:true)?
1164             *
1165             * @og.tag
1166             * 標準?込みJavaScriptである、toggleFrame.js を使用するかど?を指定します?
1167             * query タイプで有効です?
1168             * 初期値は、使用する(true)です?
1169             *
1170             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1171             *
1172             * @param       flag    使用するかど?(true:使用する/false:使用しな?
1173             */
1174    //      public void setUseToggleFrame( final String flag ) {
1175    //              useToggleFrame = nval( getRequestParameter( flag ),useToggleFrame );
1176    //      }
1177    
1178            /**
1179             * 【?】inputFocus.js JavaScript を使用するかど?を指定します?
1180             *
1181             * @og.tag
1182             * 標準?込みJavaScriptである、inputFocus.js を使用するかど?を指定します?
1183             * query,result 両タイプで有効です?
1184             * 初期値は、使用する(true)です?
1185             *
1186             * inputFocus.jsが?されたため?こ?属?は無効です?
1187             * フォーカス色はfocusHilight.js
1188             * リアルタイ?ェ?はrealTimeCheck.js
1189             * 大小文字?動変換はautoConvert.js
1190             * を利用するように変更されました?
1191             * これらにつ?は
1192             * useFocusHilight,useRealTimeCheck,useAutoConvert
1193             * 属?をご覧下さ??
1194             *
1195             * @og.rev 4.3.5.0 (2009/02/01) ?
1196             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1197             *
1198             * @param       flag    使用するかど?(true:使用する/false:使用しな?
1199             */
1200    //      @Deprecated public void setUseInputFocus( final String flag ) {
1201    //              useInputFocus = nval( getRequestParameter( flag ),useInputFocus );
1202    //      }
1203    
1204            /**
1205             * 【TAG】hilightRow.js JavaScript を使用するかど?を指定しま?初期値:true)?
1206             *
1207             * @og.tag
1208             * 標準?込みJavaScriptである、hilightRow.js を使用するかど?を指定します?
1209             * result タイプで有効です?
1210             * 初期値は、使用する(true)です?
1211             *
1212             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1213             *
1214             * @param       flag    使用するかど?(true:使用する/false:使用しな?
1215             */
1216    //      public void setUseHilightRow( final String flag ) {
1217    //              useHilightRow = nval( getRequestParameter( flag ),useHilightRow );
1218    //      }
1219    
1220            /**
1221             * 【TAG】ScrollBar.js JavaScript を使用するかど?[true/false]を指定しま?初期値:true)?
1222             *
1223             * @og.tag
1224             * 標準?込みJavaScriptである、ScrollBar.js を使用するかど?を指定します?
1225             * (従来のTYPE2です?)
1226             * result タイプで有効です?
1227             * 初期値は、使用する(true)です?
1228             *
1229             * @param       flag    使用するかど? [true:使用する/false:使用しない]
1230             */
1231            public void setUseScrollBar( final String flag ) {
1232                    useScrollBar = nval( getRequestParameter( flag ),useScrollBar );
1233            }
1234    
1235            /**
1236             * 【TAG】printLine.js JavaScript を使用するかど?を指定しま?初期値:true)?
1237             *
1238             * @og.tag
1239             * 標準?込みJavaScriptである、printLine.js を使用するかど?を指定します?
1240             * result タイプで有効です?
1241             * 初期値は、使用する(true)です?
1242             *
1243             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1244             *
1245             * @param       flag    使用するかど?(true:使用する/false:使用しな?
1246             */
1247    //      public void setUsePrintLine( final String flag ) {
1248    //              usePrintLine = nval( getRequestParameter( flag ),usePrintLine );
1249    //      }
1250    
1251            /**
1252             * 【TAG】tabstrip.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)?
1253             *
1254             * @og.tag
1255             * 標準?込みJavaScriptである、tabstrip.js を使用するかど?を指定します?
1256             * init,query,result タイプで有効です?
1257             * こ?機?は特別な為、?期?は、使用しな?false)です?
1258             *
1259             * @param       flag    使用するかど? [true:使用する/false:使用しない]
1260             */
1261            public void setUseTabstrip( final String flag ) {
1262                    useTabstrip = nval( getRequestParameter( flag ),useTabstrip );
1263            }
1264    
1265            /**
1266             * 【TAG】option/gantt.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)?
1267             *
1268             * @og.tag
1269             * 標準?込みJavaScriptである、option/gantt.js を使用するかど?を指定します?
1270             * result タイプで有効です?
1271             * こ?機?は特別な為、?期?は、使用しな?false)です?
1272             *
1273             * @param       flag    使用するかど? [true:使用する/false:使用しない]
1274             */
1275            public void setUseGantt( final String flag ) {
1276                    useGantt = nval( getRequestParameter( flag ),useGantt );
1277            }
1278    
1279            /**
1280             * 【TAG】option/adjustGanttTable.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)?
1281             *
1282             * @og.tag
1283             * 標準?込みJavaScriptである、option/adjustGanttTable.js を使用するかど?を指定します?
1284             * result タイプで有効です?
1285             * これを?true に設定すると、option/adjustGanttTable.js 、option/adjustGanttTable.css が?込まれます?
1286             * また?useGantt = false; 、useScrollBar = false; も同時に?設定されます?
1287             * こ?機?は特別な為、?期?は、使用しな?false)です?
1288             *
1289             * なお?ガントを利用するには、起動時にJavaScriptをロー?実行する?があるので?
1290             * addEvent もセ?しておく?があります?
1291             *
1292             * adjustTable : ??ブル?
1293             * adjustGant  : ガン?積み上げガン?
1294             * adjustTask  : 積み上げガント(?部積み上げ??
1295             *
1296             * script として、addEvent( this, "load", adjustGant ); と?形式を出力します?
1297             *
1298             * @og.rev 5.6.2.1 (2013/03/08) 新規追?
1299             * @og.rev 5.6.3.2 (2013/04/12) useGantt2 ?。addEvent の引数で使??ける?
1300             *
1301             * @param       flag    使用するかど? [true:使用する/false:使用しない]
1302             * @see         #setAddEvent( String )
1303             */
1304    //      public void setUseGantt2( final String flag ) {
1305    //              useGantt2 = nval( getRequestParameter( flag ),useGantt2 );
1306    //              if( useGantt2 ) {
1307    //                      useGantt     = false;
1308    //                      useScrollBar = false;
1309    //              }
1310    //      }
1311    
1312            /**
1313             * 【TAG】option/treeBOM.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)?
1314             *
1315             * @og.tag
1316             * 標準?込みJavaScriptである、option/treeBOM.js を使用するかど?を指定します?
1317             * result タイプで有効です?
1318             * こ?機?は特別な為、?期?は、使用しな?false)です?
1319             *
1320             * @param       flag    使用するかど? [true:使用する/false:使用しない]
1321             */
1322            public void setUseTreeBOM( final String flag ) {
1323                    useTreeBOM = nval( getRequestParameter( flag ),useTreeBOM );
1324            }
1325    
1326            /**
1327             * 【TAG】ゲストユーザを利用するかど?[true/false]を指定しま?初期値false)?
1328             *
1329             * @og.tag
1330             *
1331             * ユーザIDが指定されて?かった?合にユーザのIDをGUESTとしてログインさせるかを指定します?
1332             * TOMCATの認証機?を外した?域でユーザを限定せずにログインさせたい場合等に利用します?
1333             * なお?シス?定数RESOURCE_USER_SQLで帰ってくる結果に「GUEST」IDのユーザが?です?
1334             * 初期値はfalse(利用しな?となります?
1335             *
1336             * @param       flag    ゲストユーザを使用するかど? [true:使用する/false:使用しない]
1337             *
1338             * @og.rev 4.2.2.0 (2008/05/28) 新規作?
1339             */
1340            public void setUseGuest( final String flag ) {
1341                    useGuest = nval( getRequestParameter( flag ),useGuest );
1342            }
1343    
1344            /**
1345             * 【TAG】Ajaxを利用した?ー形式???ブル表示を使用するかを?します?
1346             *
1347             * @og.tag
1348             * Ajaxを利用した?ー形式???ブル表示を使用するかを?します?
1349             * viewタグのviewFormType="HTMLAjaxTreeTable"を使用する場合?、?trueを指定して下さ??
1350             *
1351             * また??ー形式???ブルに対して登録を行う場合?、noTransition属??
1352             * 同時にtrueにしておく?があります?
1353             *
1354             * 初期値は、false(使用しな?です?
1355             *
1356             * @og.rev 4.3.1.0 (2008/09/02) 新規追?
1357             *
1358             * @param   flag Ajaxを利用した?ー形式???ブル表示を使用する?
1359             */
1360            public void setUseAjaxTreeTable( final String flag ) {
1361                    useAjaxTreeTable = nval( getRequestParameter( flag ), useAjaxTreeTable );
1362            }
1363    
1364            /**
1365             * 【TAG】画面遷移を行わな?式?登録方法を使用するかを?します?
1366             *
1367             * @og.tag
1368             * 画面遷移なし?登録を行うかど?を指定します?
1369             * trueが指定された場合?画面遷移を行わず選択行?みを動??替えることで?
1370             * 編??登録を行います?サーバ?への??タ送信には、jQueryのFormPlugin?
1371             * 利用して?す?
1372             * また???タを?信する対象のフォー?は、id="noTransition"を指定して下さ??
1373             * (該当?IDのフォー?存在しな??合?、JSPの1番目のフォー?送信されます?)
1374             * 初期値は、シス?リソースのNO_TRANSITION_MODEで設定することが可能です?
1375             *
1376             * シス?パラメーターまた?、このタグの属?でtrueに?された場合でも?submitされ?
1377             * commandがINSERT,COPY,MODIFY,DELETE,ENTRY,UNDOの場合?み、バ?グラウンドで
1378             * 実行されます?
1379             * それ以外?コマンドでは通常通り、画面遷移を伴?ubmitとなります?
1380             *
1381             * また?シス?パラメーターまた?、このタグの属?でtrueに?された場合?バックグラウン?
1382             * で実行されるJSPには、その値が引き継がれるため、これらのJSPの?グでtrueを指定す?
1383             * ??ありません?
1384             *
1385             * @og.rev 4.3.1.0 (2008/09/02) 新規追?
1386             * @og.rev 4.3.8.0 (2009/08/01) noTransitionにnullを許容する
1387             * @og.rev 5.1.3.0 (2010/02/01) リクエストに戻?
1388             *
1389             * @param   noTrnstn 画面遷移を行わな?式?登録方法を使用する?
1390             */
1391            public void setNoTransition( final String noTrnstn ) {
1392                    noTransition = nval( getRequestParameter( noTrnstn ), noTransition );
1393            }
1394    
1395            /**
1396             * 【TAG】og:tabLinkタグで使用され?common/tagLink.js をインクルードするかど?[true/false]を指定しま?初期値:false)?
1397             *
1398             * @og.tag
1399             * og:tabLinkタグで使用され?common/tagLink.js をインクルードするかを指定します?
1400             * trueが指定された場合?該当?JavaScriptをインクルードします?
1401             * og:tabLinkを使用する場合?、?trueを指定して下さ??
1402             * 初期値は、false(インクルードしな?です?
1403             *
1404             * @og.rev 4.3.3.0 (2008/10/01) 新規追?
1405             *
1406             * @param   flag common/tagLink.js をインクルー?[true:する/false:しない]
1407             */
1408            public void setUseTabLink( final String flag ) {
1409                    useTabLink = nval( getRequestParameter( flag ), useTabLink );
1410            }
1411    
1412            /**
1413             * 【TAG】カラ?ェ?をリアルタイ?行うかど?[true/false]を指定しま?初期値:true)?
1414             *
1415             * @og.tag
1416             * &lt;del&gt;common/realTimeCheck.jsをインクルードするかの?です?
1417             * インクルードするとカラ?ェ?がリアルタイ?行われます?
1418             * (フォーカスが離れた時に動?
1419             * &lt;del&gt;
1420             * リアルタイ?ェ?イベントを無効にするかど?を決めます?
1421             * falseを指定すると、リアルタイ?ェ?を行いません?
1422             * query,result 両タイプで有効です?
1423             * こ?チェ?はDBTypeを用?簡易的なチェ?です?
1424             * チェ?にかかった?合?バルーンで警告が表示されます?
1425             * &lt;del&gt;初期値は、シス?リソースのUSE_REAL_TIME_CHECKで設定することが可能です?&lt;del&gt;
1426             * 初期値はtrue(利用する)です?
1427             *
1428             * @og.rev 4.3.5.0 (2009/02/01) 新規追?
1429             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1430             * @og.rev 5.4.5.0 (2012/03/01) 復活 ローカルリソース時等で使?くな??合がある
1431             *
1432             * @param   flag common/realTimeCheck.jsをインクルー?[true:する/false:しない]
1433             */
1434            public void setUseRealTimeCheck( final String flag ) {
1435                    useRealTimeCheck = nval( getRequestParameter( flag ), useRealTimeCheck );
1436            }
1437    
1438            /**
1439             * 【TAG】大??小文字?自動変換を行うかを?します?
1440             *
1441             * @og.tag
1442             * common/autoConvert.jsをインクルードするかの?です?
1443             * インクルードするとDBTypeがXL,XUの場合に大??小文字?
1444             * 自動変換が行われます?(フォーカスが離れた時に動?
1445             * query,result 両タイプで有効です?
1446             * 初期値は、シス?リソースのUSE_INPUT_AUTO_CONVERTで設定することが可能です?
1447             *
1448             * @og.rev 4.3.5.0 (2009/02/01) 新規追?
1449             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1450             *
1451             * @param   flag common/autoConvert.jsをインクルードするか
1452             */
1453    //      public void setUseAutoConvert( final String flag ) {
1454    //              useAutoConvert = nval( getRequestParameter( flag ), useAutoConvert );
1455    //      }
1456    
1457            /**
1458             * 【TAG】フォーカスが当って?入力??スの色を変更するかど?[true/false]を指定しま?初期値:true)?
1459             *
1460             * @og.tag
1461             * &lt;del&gt;標準?込みJavaScriptである、focusHilight.jsをインクルードするかの?です?
1462             * フォーカスが当って?入力??スの背景色を変更します?
1463             * インクルードすると自動的に有効になります?
1464             * &lt;del&gt;
1465             * 入力??ス色変更JavaScriptのイベントを無効にするフラグの制御を行います?
1466             * falseを指定するとイベントを無効にします?
1467             * ポップア??時にプル?ンが正常動作しな??合?これをfalseとしてください?
1468             * query,result 両タイプで有効です?
1469             * 初期値は使用する(true)です?
1470             *
1471             * @og.rev 4.3.5.0 (2009/02/01) 新規追?
1472             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1473             * @og.rev 5.4.5.0 (2012/03/01) モー??アログのプル?ン挙動対応で復活
1474             *
1475             * @param   flag common/focusHilight.jsをインクルー?[true:する/false:しない]
1476             */
1477            public void setUseFocusHilight( final String flag ) {
1478                    useFocusHilight = nval( getRequestParameter( flag ), useFocusHilight );
1479            }
1480    
1481            /**
1482             * 【TAG】href(リンク)の拡張子に応じたアイコンを表示するかど?[true/false]を指定しま?初期値:false)?
1483             *
1484             * @og.tag
1485             * 標準?込みCSSである、hrefIcon.cssをインクルードするかの?です?
1486             * これは、href(リンク)の拡張子に応じたアイコンを?jsp/image/ext フォル?下?画像ファイルと
1487             * 拡張子と関連付けて、アイコン画像をリンクの頭に表示します?
1488             * 初期値は使用しな?false)です?
1489             *
1490             * @og.rev 5.6.5.2 (2013/06/21) 新規追?
1491             *
1492             * @param   flag common/hrefIcon.cssをインクルー?[true:する/false:しない]
1493             */
1494            public void setUseHrefIcon( final String flag ) {
1495                    useHrefIcon = nval( getRequestParameter( flag ), useHrefIcon );
1496            }
1497    
1498            /**
1499             * 【TAG】フォーカスが当って?入力??スの色を変更するかど?(初期値:true)?
1500             *
1501             * @og.tag
1502             * 標準?込みJavaScriptである、focusFirstElm.jsをインクルードするかの?です?
1503             * ??の入力??スにフォーカスが当たり?フレー??高さを調整します?
1504             * インクルードすると自動的に有効になります?
1505             * queryタイプで有効です?
1506             * 初期値は使用する(true)です?
1507             *
1508             * @og.rev 4.3.5.0 (2009/02/01) 新規追?
1509             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1510             *
1511             * @param   flag common/focusFirstElm.jsをインクルードするか
1512             */
1513    //      public void setUseFocusFirstElm( final String flag ) {
1514    //              useFocusFirstElm = nval( getRequestParameter( flag ), useFocusFirstElm );
1515    //      }
1516    
1517            /**
1518             * 【TAG】フレー??高さを調?るかど?(初期値:true)?
1519             *
1520             * @og.tag
1521             * 標準?込みJavaScriptである、default.jsの関数adjustFrameHeightを実行するかの?です?
1522             * trueとするとイベント登録JavaScriptのadjustFrameHeightEvent.jsがインクルードされます?
1523             * インクルードされると自動的に有効になります?
1524             * queryタイプで有効です?
1525             * 初期値は使用する(true)です?
1526             *
1527             * @og.rev 4.3.5.0 (2009/02/01) 新規追?
1528             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1529             *
1530             * @param   flag common/adjustFrameHeightEvent.jsをインクルードするか
1531             */
1532    //      public void setUseAdjustFrameHeight( final String flag ) {
1533    //              useAdjustFrameHeight = nval( getRequestParameter( flag ), useAdjustFrameHeight );
1534    //      }
1535    
1536            /**
1537             * 【TAG】親子カラ?定用JSをインクルードするか(初期値:true)?
1538             *
1539             * @og.tag
1540             * 親子?ル?ン等で使用され?common/makeColumn.js をインクルードするかを指定します?
1541             * trueが指定された場合?該当?JavaScriptをインクルードします?
1542             * eventColumnを使用する場合?、?trueを指定して下さ??
1543             * 初期値は、true(インクルードす?です?
1544             *
1545             * @og.rev 4.3.6.0 (2009/04/01)
1546             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1547             *
1548             * @param   flag common/makeColumn.jsをインクルードするか
1549             */
1550    //      public void setUseEventColumn( final String flag ) {
1551    //              useEventColumn = nval( getRequestParameter( flag ), useEventColumn );
1552    //      }
1553    
1554            /**
1555             * 【TAG】IE8でIE7エミュレートモードで動作させるタグを?力するかど?[true/false]を指定しま?
1556             *              (初期値:USE_IE7_HEADER[={@og.value org.opengion.hayabusa.common.SystemData#USE_IE7_HEADER}])?
1557             *
1558             * @og.tag
1559             * IE8でIE7エミュレートモード動作をさせるため?METAタグを?力するか?します?
1560             * (初期値:シス?定数のUSE_IE7_HEADER[={@og.value org.opengion.hayabusa.common.SystemData#USE_IE7_HEADER}])?
1561             *
1562             * @og.rev 4.3.7.0 (2009/06/01)
1563             *
1564             * @param   flag IE7エミュレートモード用METAタグを吐くか [true:出力す?false:出力しない]
1565             * @see         org.opengion.hayabusa.common.SystemData#USE_IE7_HEADER
1566             */
1567            public void setUseIE7Header( final String flag ) {
1568                    useIE7Header = nval( getRequestParameter( flag ), useIE7Header );
1569            }
1570            
1571            /**
1572             * 【TAG】タブレ?等?画面サイズ調整METAタグ(viewport?を吐くかど?[true/false]を指定しま?
1573             *              (初期値:USE_VIEWPORT_HEADER[={@og.value org.opengion.hayabusa.common.SystemData#USE_VIEWPORT_HEADER}])?
1574             *
1575             * @og.tag
1576             * タブレ?等?画面サイズ調整METAタグ(viewport?を吐くかど?[true/false]を指定します?
1577             * trueを指定すると、METAタグで
1578             * content="width=device-width, initial-scale=1" name="viewport"
1579             * の値が?力されます?
1580             * (初期値:シス?定数のUSE_VIEWPORT_HEADER[={@og.value org.opengion.hayabusa.common.SystemData#USE_VIEWPORT_HEADER}])?
1581             *
1582             * @og.rev 5.5.8.0 (2012/11/01) 新規作?
1583             *
1584             * @param   flag タブレ?画面サイズ調整METAタグを吐くか [true:出力す?false:出力しない]
1585             * @see         org.opengion.hayabusa.common.SystemData#USE_VIEWPORT_HEADER
1586             */
1587            public void setUseViewPort( final String flag ) {
1588                    useViewPort = nval( getRequestParameter( flag ), useViewPort );
1589            }
1590    
1591            /**
1592             * 【TAG】フォー??Submit処?JavaScriptを利用して行う?ポップア??エラー表示)?
1593             *
1594             * @og.tag
1595             * こ?属?をtrueにセ?する事で、ajaxを利用したsubmitを行います?
1596             * submit後?ペ?ジでエラーが発生した?合?画面が?り替わらずに
1597             * ポップア??形式でエラー表示されま?command=ENTRYの場合?み)?
1598             * 動的カラ?eventColumn属?)をRESULT部?利用する場合?、戻る?タン?
1599             * 正常に動作しな?め?こ?属?をtrueにする方が望ましいです?
1600             *
1601             * ??タを?信する対象のフォー?は、id="ajaxSubmit"を指定して下さ??
1602             * (該当?IDのフォー?存在しな??合?、JSPの1番目のフォー?送信されます?)
1603             *
1604             * シス?パラメーターまた?、このタグの属?でtrueに?された場合でも?submitされ?
1605             * commandがENTRYの場合?み、バ?グラウンドで実行されます?
1606             * それ以外?コマンドでは通常通り、画面遷移を伴?ubmitとなります?
1607             *
1608             * また?シス?パラメーターまた?、このタグの属?でtrueに?された場合?バックグラウン?
1609             * で実行されるJSPには、その値が引き継がれるため、これらのJSPの?グでtrueを指定す?
1610             * ??ありません?
1611             *
1612             * 初期値はシス?パラメータの「USE_AJAX_SUBMIT」です?
1613             *
1614             * @og.rev 4.3.8.0 (2009/08/01) 新規追?
1615             * @og.rev 5.1.3.0 (2010/02/01) リクエストに戻?
1616             *
1617             * @param   flag ajaxSubmitを行うかど?
1618             */
1619            public void setUseAjaxSubmit( final String flag ) {
1620                    useAjaxSubmit = nval( getRequestParameter( flag ), useAjaxSubmit );
1621            }
1622    
1623            /**
1624             * 【TAG】javaScript を?期ロードし、起動するメソ?名を?しま?初期値:null)?
1625             *
1626             * @og.tag
1627             * これは、addEvent( this, "load", method ); をJavaScript として?込みます?
1628             *
1629             * @og.rev 5.6.3.0 (2013/04/01) 新規作?
1630             *
1631             * @param   method javaScriptを?期ロードし、起動するメソ??
1632             */
1633            public void setAddEvent( final String method ) {
1634                    addEvent = nval( getRequestParameter( method ), addEvent );
1635            }
1636    
1637            /**
1638             * 【TAG】javaScript を?期ロードし、起動する定義名を?しま?初期値:null)?
1639             *
1640             * @og.tag
1641             * これは、指定?定義に対応する?javaScript を?込みます?
1642             * Bar?Matrix?Table?Gantt?Task が指定できます?
1643             * これらを?込?には、useGantt = "false" , useScrollBar = "false" も?動セ?されます?
1644             * ?込まれるJavaScript,CSSファイルは、jsp/common/option/ 以下にあります?
1645             * <table border="1" frame="box" rules="all" >
1646             *   <tr><th>利用タグ    </th><th>タグ機?          </th><th>adjustEvent</th><th>?込まれるJavaScript</th><th>?込まれるCSS     </th><th>初期ロードされるメソ??/th></tr>
1647             *   <tr><th>og:iHead    </th><th>ヘッ??補足      </th><th>Bar        </th><th>adjustBar.js          </th><th>                    </th><th>adjustBar   </th></tr>
1648             *   <tr><th>og:iBar     </th><th>縦棒(?細??     </th><th>Bar        </th><th>adjustBar.js          </th><th>                    </th><th>adjustBar   </th></tr>
1649             *   <tr><th>og:iMatrix  </th><th>配置図?座席表    </th><th>Matrix     </th><th>adjustMatrix.js       </th><th>                    </th><th>adjustMatrix</th></tr>
1650             *   <tr><th>og:iTable   </th><th>左右?          </th><th>Table      </th><th>adjustGanttTable.js   </th><th>adjustGanttTable.css</th><th>adjustTable </th></tr>
1651             *   <tr><th>og:iGantt   </th><th>ガント??       </th><th>Gantt      </th><th>adjustGanttTable.js   </th><th>adjustGanttTable.css</th><th>adjustGantt </th></tr>
1652             *   <tr><th>og:iGanttBar</th><th>ガント積?       </th><th>Gantt      </th><th>adjustGanttTable.js   </th><th>adjustGanttTable.css</th><th>adjustGantt </th></tr>
1653             *   <tr><th>og:iTask    </th><th>ガント積??)  </th><th>Task       </th><th>adjustGanttTable.js   </th><th>adjustGanttTable.css</th><th>adjustTask  </th></tr>
1654             * </table>
1655             *
1656             * @og.rev 5.6.3.2 (2013/04/12) 新規作?
1657             *
1658             * @param   ajEvent javaScriptを?期ロードし、起動する定義?
1659             */
1660            public void setAdjustEvent( final String ajEvent ) {
1661                    adjustEvent = nval( getRequestParameter( ajEvent ), ajEvent );
1662    
1663                    if( adjustEvent != null ) {
1664                            if( check( adjustEvent , ADJUST_EVENT_LIST ) ) {
1665                                    useGantt     = false;
1666                                    useScrollBar = false;
1667                            }
1668                            else {
1669                                    String errMsg = "adjustEvent に?する?は、[" + ADJUST_EVENT_LIST + "] から選んでください?
1670                                                                            + HybsSystem.CR
1671                                                                            + " adjustEvent = " + adjustEvent ;
1672                                    throw new HybsSystemException( errMsg );
1673                            }
1674                    }
1675            }
1676    
1677            /**
1678             * 【TAG】option/ogTbodyMovable.js JavaScript を使用するかど?[true/false]を指定しま?初期値:false)?
1679             *
1680             * @og.tag
1681             * option?込みJavaScriptである、ogTbodyMovable.js を使用するかど?を指定します?
1682             * これは、id="viewTable" の tbody を?ウス、また?カーソルキーで上下に動かす動作を行います?
1683             * こ?動作と、TbodyMovableTag を?合わせれば、左右?等で同期をとりながら上下に動かしたり?
1684             * 値を?れ替える?つまり???位置から動かな?や?1??1するなどの機?を使?で?
1685             * 視覚的に上下を入れ替えたのそ?値を登録することが可能になります?
1686             * ガントテーブルでのマウスでの入れ替えなどに効果的です?
1687             * 初期値は、使用しな?false)です?
1688             *
1689             * @og.rev 5.6.3.3 (2013/04/19) 新規作?
1690             *
1691             * @param   flag option/ogTbodyMovable.jsをインクルー?[true:する/false:しない]
1692             * @see         org.opengion.hayabusa.taglib.TbodyMovableTag
1693             */
1694            public void setUseTbodyMovable( final String flag ) {
1695                    useTbodyMovable = nval( getRequestParameter( flag ),useTbodyMovable );
1696            }
1697    
1698            /**
1699             * 【TAG】viewで出力される件数[1-4/4]の表示場?ヘッ?するか?
1700             *
1701             * @og.tag
1702             * ??タ表示場??確保?ために、ビューの件数表示場?
1703             * JavaScriptを利用してヘッ??移します?
1704             * ?のviewがある?合???viewの件数になります?
1705             * 初期値はシス?パラメータの「USE_ROWCNT_REPLACE」です?
1706             *
1707             * @og.rev 4.3.8.0 (2009/08/01)
1708             * @og.rev 5.2.1.0 (2010/10/01) JavaScript の統合??
1709             *
1710             * @param   flag viewの件数表示場?変更する?
1711             */
1712    //      public void setUseRowCountReplace( final String flag ) {
1713    //              useRowCountReplace = nval( getRequestParameter( flag ), useRowCountReplace );
1714    //      }
1715    
1716            /**
1717             * こ?オブジェクト???表現を返します?
1718             * 基本???目?使用します?
1719             *
1720             * @return こ?クラスの??表現
1721             */
1722            @Override
1723            public String toString() {
1724                    return org.opengion.fukurou.util.ToString.title( this.getClass().getName() )
1725                                    .println( "VERSION"             ,VERSION        )
1726                                    .println( "body"                ,body           )
1727                                    .println( "title"               ,title          )
1728                                    .println( "Other..."    ,getAttributes().getAttribute() )
1729                                    .fixForm().toString() ;
1730            }
1731    }