001 /* 002 * Copyright (c) 2009 The openGion Project. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 013 * either express or implied. See the License for the specific language 014 * governing permissions and limitations under the License. 015 */ 016 package org.opengion.hayabusa.taglib; 017 018 import org.opengion.hayabusa.common.HybsSystem; 019 import org.opengion.hayabusa.resource.GUIInfo; 020 import org.opengion.fukurou.util.Attributes; 021 import org.opengion.fukurou.util.XHTMLTag; 022 023 import static org.opengion.fukurou.util.StringUtil.nval ; 024 025 import java.io.File; 026 027 /** 028 * ç”»é¢?©?¤ã¨åŒã˜ãƒ˜ãƒ«ãƒ—ファイルãŒã‚れã?リンクを作æ?ã™ã‚‹ã‚¿ã‚°ã§ã?通常㯠query.jsp ã«çµ?¾¼ã¿)ã€? 029 * 030 * ヘルプファイルã¯ã€ã‚·ã‚¹ãƒ?ƒ パラメータ ã® HELP_URL ã§å®šç¾©ã•れã¦ã?‚‹helpフォルãƒ?«é…ç½®ã—ã¾ã™ã? 031 * ã“ã?フォルãƒ?«ã€ç”»é¢IDã¨åŒã˜ãƒ•ァイル(例ãˆã°ã€GE0001.html ãªã©)ãŒã‚れã?ã€ãƒªãƒ³ã‚¯ã‚’作æ?ã—ã¾ã™ã? 032 * ファイルãŒãªã‘れã°ã€ãƒªãƒ³ã‚¯ã¯è¡¨ç¤ºã•れã¾ã›ã‚“ã€? 033 * メãƒ?‚»ãƒ¼ã‚¸ã®è¡¨ç¤ºã®åˆ¶å¾¡ã¯ã€viewMsg 属æ?ã§æŒ?®šã—ã¾ã™ã?(false ã§ãƒ•ァイルãŒå˜åœ¨ã—ãŸå ´åˆã?ã¿è¡¨ç¤º) 034 * ãƒ•ã‚¡ã‚¤ãƒ«ã®æ‹¡å¼µåã‚‚æŒ?®šã§ãã¾ã™ãŒã€ä¸?ˆ¬ã«ã€html ã§ãƒ˜ãƒ«ãƒ—ファイルを作æ?ã™ã‚‹ã»ã?Œ 035 * ã™ã?ã‚?表示ã§ãã¾ã™ã? 036 * ã¾ãŸã?og:topMenuã‚¿ã‚°å†?«ã“ã?タグを記述ã™ã‚‹ã“ã¨ã§ã€å„ç”»é¢åˆ?¡žã«å¯¾ã™ã‚‹ãƒ˜ãƒ«ãƒ—を表示ã™ã‚‹ã“ã¨ã? 037 * ã§ãるよã†ã«ãªã‚Šã¾ã™ã? 038 * (ã“ã?å ´åˆã‚‚ã€ç”»é¢åˆ?¡žã?ã‚ーãŒã?ルプファイルã®ã‚ーã«ãªã‚Šã¾ã? 039 * 040 * @og.formSample 041 * â—å½¢å¼ï¼šä¸?ˆ¬ãƒ¦ãƒ¼ã‚¶ãƒ¼ãŒç›´æŽ¥çµ?¿è¾¼ã‚?“ã¨ã¯ã‚りã¾ã›ã‚“ã€? 042 * â—body?šãªã? 043 * 044 * â—Tag定義?? 045 * <og:help 046 * guiInfoKey ã€TAG】GUIInfo ã®ã‚ーを指定ã—ã¾ã? 047 * extension ã€TAG】拡張åã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:html) 048 * lbl ã€TAG】ラベルリソースã®ãƒ©ãƒ™ãƒ«IDを指定ã—ã¾ã? 049 * target ã€TAG】TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:_blank) 050 * viewMsg ã€TAG】メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false) 051 * iconURL ã€TAG】ã?ãƒ«ãƒ—ãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã?(åˆæœŸå€¤:DEFAULT_HELP_ICON[=/image/help2.png]) 052 * faqIconURL ã€TAG】FAQãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã?(åˆæœŸå€¤:DEFAULT_FAQ_ICON[=/image/qaicon.png]) 053 * useFaq ã€TAG】FAQè¡¨ç¤ºã®æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?(åˆæœŸå€¤:USE_GUI_FAQ[=false]) 054 * debug ã€TAG】デãƒãƒƒã‚°æƒ??ã‚’å?力ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false) 055 * /> 056 * 057 * â—使用ä¾? 058 * <og:help guiInfoKey="{@GUI.KEY}" msg="HELP" /> 059 * 060 * <og:help 061 * guiInfoKey = "GUIInfo ã®ã‚ーを指定ã—ã¾ã™ã?(å¿??)" 062 * extension = "æ‹¡å¼µåã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:html)ã€? 063 * msg = "メãƒ?‚»ãƒ¼ã‚¸ãƒªã‚½ãƒ¼ã‚¹ã®ãƒ¡ãƒ?‚»ãƒ¼ã‚¸IDを指定ã—ã¾ã™ã?" 064 * target = "TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:_blank)ã€? 065 * viewMsg = "メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false)ã€? 066 * iconURL = "ヘルプアイコンã®URL(åˆæœŸå€¤:/image/help.png)"; // 5.3.8.0 (2011/08/01) 067 * /> 068 * 069 * @og.group メニュー制御 070 * 071 * @version 4.0 072 * @author Kazuhiko Hasegawa 073 * @since JDK5.0, 074 */ 075 public class HelpTag extends CommonTagSupport { 076 //* ã“ã?プãƒã‚°ãƒ©ãƒ??VERSIONæ–?—å?ã‚’è¨å®šã—ã¾ã™ã? {@value} */ 077 private static final String VERSION = "4.0.0.0 (2005/08/31)" ; 078 079 private static final long serialVersionUID = 4000 ; // 4.0.0 (2005/01/31) 080 081 private static final String JSP = HybsSystem.sys( "JSP" ); 082 083 private String guiInfoKey = null; 084 private String extension = "html"; 085 private String baseURL = HybsSystem.sys( "HELP_URL" ); 086 private String target = "_blank"; // 3.6.0.7 (2004/11/06) 087 private boolean viewMsg = false; 088 // private String iconURL = "/image/help.png"; // 5.3.8.0 (2011/08/01) 089 private String iconURL = HybsSystem.sys( "DEFAULT_HELP_ICON" ); // 5.4.3.6 (2012/01/19) 090 private String faqIconURL = HybsSystem.sys( "DEFAULT_FAQ_ICON" ); // 5.5.0.4 (2012/03/16) 091 private boolean useFaq = HybsSystem.sysBool( "USE_GUI_FAQ " ); // 5.5.0.4 (2012/03/16) 092 private String faqGUI = HybsSystem.sys( "DEFAULT_FAQ_GUI" ); // 5.5.0.4 (2012/03/16) 093 // private String syscode = "*"; // 5.5.0.4 (2012/03/16) 094 private boolean useFaqCtrl = HybsSystem.sysBool( "USE_GUI_FAQ_CTRL " ); // 5.6.4.3 (2013/05/24) 095 096 /** 097 * Taglibã®çµ‚äº?‚¿ã‚°ãŒè¦‹ã¤ã‹ã£ãŸã¨ãã«å‡¦ç?™ã‚?doEndTag() ã‚?オーãƒã?ライドã—ã¾ã™ã? 098 * 099 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€? 100 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿? 101 * @og.rev 5.5.0.4 (2012/03/16) FAQ対å¿? 102 * @og.rev 5.6.4.3 (2013/05/26) FAQã®ç”»é¢åˆ¥å¯¾å¿? 103 * 104 * @return 後続å?ç??æŒ?¤º 105 */ 106 @Override 107 public int doEndTag() { 108 debugPrint(); // 4.0.0 (2005/02/28) 109 110 TopMenuTag topMenu = (TopMenuTag)findAncestorWithClass( this,TopMenuTag.class ); 111 if( topMenu == null ) { 112 jspPrint( makeTag() ); 113 if(useFaq){ 114 jspPrint( makeTagFaq() ); 115 } 116 } 117 else { 118 // 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿? 119 String linkFormat = getLink( baseURL + "{FILENAME}" ); 120 String baseDir = HybsSystem.url2dir( baseURL ); 121 topMenu.add( "helpLinkFormat",linkFormat ); 122 topMenu.add( "helpBaseDir",baseDir ); 123 if(useFaq){ // 5.5.0.4 (2012/03/16) FAQ対å¿? 124 GUIInfo guiInfo = getGUIInfo( faqGUI ); 125 if( guiInfo != null ) { 126 String address = guiInfo.getRealAddress( get( "href" ) ); 127 String faqFormat = getFAQLink(getRequestParameter( address+"?command=NEW&GAMENID="+faqGUI+"&KNRNGUI={GUIKEY}" )); 128 topMenu.add( "faqLinkFormat",faqFormat ); 129 } 130 } 131 } 132 133 return(EVAL_PAGE); 134 } 135 136 /** 137 * タグリブオブジェクトをリリースã—ã¾ã™ã? 138 * ã‚ャãƒ?‚·ãƒ¥ã•れã¦å†åˆ©ç”¨ã•れるã?ã§ã€ãƒ•ィールドã?åˆæœŸè¨å®šã‚’行ã„ã¾ã™ã? 139 * 140 * @og.rev 2.0.0.4 (2002/09/27) カスタãƒ?‚¿ã‚°ã® release() メソãƒ?ƒ‰ã‚’ã?追åŠ? 141 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ?»? 142 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€? 143 * @og.rev 3.6.0.7 (2004/11/06) target 属æ?ã®åˆæœŸå€¤ã‚?_new ã‹ã‚‰ _blank ã«å¤‰æ›´ 144 * @og.rev 5.3.8.0 (2011/08/01) iconURL追åŠ? 145 * @og.rev 5.5.0.4 (2012/03/16) faq 146 * @og.rev 5.6.4.3 (2013/05/24) faqCtrl 147 */ 148 @Override 149 protected void release2() { 150 super.release2(); 151 guiInfoKey = null; 152 extension = "html"; 153 baseURL = HybsSystem.sys( "HELP_URL" ); 154 target = "_blank"; // 3.6.0.7 (2004/11/06) 155 viewMsg = false; 156 // iconURL = "/image/help.png"; // 5.3.8.0 (2011/08/01) 157 iconURL = HybsSystem.sys( "DEFAULT_HELP_ICON" ); // 5.4.3.6 (2012/01/19) 158 faqIconURL = HybsSystem.sys( "DEFAULT_FAQ_ICON" ); // 5.5.0.4 (2012/03/16) 159 useFaq = HybsSystem.sysBool( "USE_GUI_FAQ " ); // 5.5.0.4 (2012/03/16) 160 faqGUI = HybsSystem.sys( "DEFAULT_FAQ_GUI" ); // 5.5.0.4 (2012/03/16) 161 // syscode = "*"; // 5.5.0.4 (2012/03/16) 162 useFaqCtrl = HybsSystem.sysBool( "USE_GUI_FAQ_CTRL " ); // 5.6.4.3 (2013/05/24) 163 } 164 165 /** 166 * HELPリンクを作æ?ã—ã¾ã™ã? 167 * 168 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ? 169 * @og.rev 3.0.1.0 (2003/03/03) viewMsg フラグã®åˆ¶å¾¡ã®ãƒã‚°ä¿®æ£ 170 * @og.rev 5.3.8.0 (2011/08/01) iconURL対å¿? 171 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿? 172 * @og.rev 5.5.0.4 (2012/03/16) faq 173 * 174 * @return リンクタグæ–?—å? 175 */ 176 protected String makeTag() { 177 String rtn = ""; 178 179 if( guiInfoKey == null ) { 180 guiInfoKey = getGUIInfoAttri( "KEY" ); 181 } 182 183 String url = baseURL + guiInfoKey + "." + extension; 184 File file = new File( HybsSystem.url2dir( url ) ); 185 186 // ファイルã®å˜åœ¨ãƒã‚§ãƒ?‚¯ 187 if( file.exists() ) { // 3.5.6.0 (2004/06/18) 188 // 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿? 189 // Attributes attri = new Attributes(); 190 // String path = getContextPath(); 191 // attri.set( "href",path + "/" + url ); 192 // attri.set( "body",getMsglbl() ); 193 // attri.set( "body",getLinkBody() ); 194 // attri.set( "target",target ); 195 // 196 // rtn = XHTMLTag.link( attri ) ; 197 rtn = getLink( url ); 198 } 199 else if( viewMsg ) { 200 // rtn = getMsglbl() ; 201 // rtn = getLinkBody(); 202 rtn = getLinkBody(null,getMsglbl()); // 5.5.0.4 203 } 204 205 return rtn; 206 } 207 208 /** 209 * FAQリンクを作æ?ã—ã¾ã™ã? 210 * 211 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿? 212 * @og.rev 5.6.4.3 (2013/05/24) FAQå˜åœ¨ãƒã‚§ãƒ?‚¯å¯¾å¿? 213 * 214 * @return リンクタグæ–?—å? 215 */ 216 protected String makeTagFaq() { 217 String rtn = ""; 218 219 if( !useFaqCtrl && !"true".equals(getGUIInfoAttri( "FAQ" ) ) ) { return rtn; } // 5.6.4.3 (2013/05/24) 若干ã‚?£ã¤ã? 220 221 if( guiInfoKey == null ) { 222 guiInfoKey = getGUIInfoAttri( "KEY" ); 223 } 224 225 GUIInfo guiInfo = getGUIInfo( faqGUI ); 226 if( guiInfo == null ) { return rtn; } // 見ã¤ã‹ã‚‰ãªã??åˆã?ã€ã‚¢ã‚¯ã‚»ã‚¹ä¸å¯ 227 228 String address = guiInfo.getRealAddress( get( "href" ) ); 229 String url = getRequestParameter( address+"?command=NEW&GAMENID="+faqGUI+"&KNRNGUI="+guiInfoKey ); 230 231 rtn = getFAQLink( url ); 232 233 return rtn; 234 } 235 236 /** 237 * リンクæ–?—å?を作æ?ã—ã¾ã™ã? 238 * 239 * @og.rev 5.3.9.0 (2011/09/01) æ–°è¦ä½œæ? 240 * @og.rev 5.5.0.4 (2012/03/16) faq 241 * 242 * @param url リンクã®URL 243 * 244 * @return リンクæ–?—å? 245 */ 246 private String getLink( final String url ) { 247 Attributes attri = new Attributes(); 248 String path = getContextPath(); 249 attri.set( "href",path + "/" + url ); 250 // attri.set( "body",getMsglbl() ); 251 // attri.set( "body",getLinkBody() ); 252 attri.set( "body",getLinkBody(iconURL,getMsglbl()) ); //5.5.0.4 (2012/03/16) 253 attri.set( "target",target ); 254 attri.set( "class", "helplink" ); 255 256 return XHTMLTag.link( attri ); 257 } 258 259 /** 260 * FAQリンクæ–?—å?を作æ?ã—ã¾ã™ã? 261 * 262 * @og.rev 5.5.0.4 (2012/03/16) æ–°è¦ä½œæ? 263 * 264 * @param url リンクã®URL 265 * 266 * @return リンクæ–?—å? 267 */ 268 private String getFAQLink( final String url ) { 269 Attributes attri = new Attributes(); 270 attri.set( "href", url ); 271 attri.set( "body",getLinkBody(faqIconURL,"FAQ") ); 272 attri.set( "target",target ); 273 attri.set( "class", "faqlink" ); 274 275 return XHTMLTag.link( attri ); 276 } 277 278 /** 279 * リンクã®ãƒœãƒ‡ã‚£ãƒ¼éƒ¨åˆ?‚’作æ?ã—ã¾ã™ã? 280 * 281 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦ä½œæ? 282 * @og.rev 5.3.9.0 (2011/09/01) ç”»åƒè¡¨ç¤ºæ™‚ã«title属æ?ã‚’ä»˜åŠ 283 * @og.rev 5.5.0.4 (2012/03/16) 引数対å¿? 284 * 285 * @param icon アイコン 286 * @param title タイトル 287 * 288 * @return リンクボディーæ–?—å? 289 */ 290 // private String getLinkBody() { 291 private String getLinkBody(final String icon, final String title) { 292 String rtn = null; 293 // if( iconURL == null || iconURL.length() == 0 ) { 294 if( icon == null || icon.length() == 0 ) { 295 rtn = getMsglbl(); 296 } 297 else { 298 rtn = "<img src=\"" + JSP + icon + "\" title=\"" + title + "\"/>"; 299 } 300 return rtn; 301 } 302 303 /** 304 * ã€TAG】GUIInfo ã®ã‚ーを指定ã—ã¾ã™ã? 305 * 306 * @og.tag GUIInfo ã®ã‚ーを指定ã—ã¾ã™ã? 307 * 308 * @param key GUIInfo ã®ã‚ー 309 */ 310 public void setGuiInfoKey( final String key ) { 311 guiInfoKey = getRequestParameter( key ); 312 } 313 314 /** 315 * ã€TAG】拡張åã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:html)ã€? 316 * 317 * @og.tag 318 * ãªã«ã‚‚è¨å®šã•れã¦ã?ªã??åˆã?ã€?html" ãŒå?期å?ã¨ãªã‚Šã¾ã™ã? 319 * ã“ã“ã§ã¯ã€ãƒ”リオドã?ã€å«ã‚ã‚‹å¿?¦ã?ã‚りã¾ã›ã‚“ã€? 320 * 321 * @param ext æ‹¡å¼µå? 322 */ 323 public void setExtension( final String ext ) { 324 extension = nval( getRequestParameter( ext ),extension ); 325 } 326 327 /** 328 * ã€TAG】TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:_blank)ã€? 329 * 330 * @og.tag 331 * åˆæœŸå€¤ã¯ã€?"_blank" ã¨ã—ã¦ã€æ–°è¦ã«ç”»é¢ã‚’ç«‹ã¡ä¸Šã’ã¾ã™ã? 332 * CONTENTS ç‰ã‚’æŒ?®šã™ã‚Œã?ã€ã‚³ãƒ³ãƒ?ƒ³ãƒ?ƒ•レーãƒ?メニューã®å³å´å…¨é¢)ã«ã€? 333 * RESULT を指定ã™ã‚Œã?ã€ãƒªã‚¶ãƒ«ãƒˆãƒ•レーãƒ?メニューå³ä¸‹å?)ã«è¡¨ç¤ºã—ã¾ã™ã? 334 * 335 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ? 336 * 337 * @param val TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:"_blank") 338 */ 339 public void setTarget( final String val ) { 340 target = nval( getRequestParameter( val ),target ); 341 } 342 343 /** 344 * ã€TAG】メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false)ã€? 345 * 346 * @og.tag 347 * "true"ã®å ´åˆã?ã€å¸¸æ™‚表示ã•ã›ã¾ã™ã? 348 * ファイルãŒã?å˜åœ¨ã—ãŸå ´åˆã?ã€ãƒªãƒ³ã‚¯ãŒå¼µã‚‰ã‚Œã€å˜åœ¨ã—ãªã??åˆã?ã€ãƒªãƒ³ã‚¯ã? 349 * 張られã¾ã›ã‚“ã€? 350 * "false" ã®å ´åˆã?ã€ãƒ•ァイルãŒã?å˜åœ¨ã—ãŸå ´åˆã?ã€ãƒªãƒ³ã‚¯ãŒå¼µã‚‰ã‚Œã€å˜åœ¨ã—ãªã??åˆã?ã€? 351 * ãªã«ã‚‚表示ã•れã¾ã›ã‚“ã€? 352 * åˆæœŸå€¤ã¯ã€?"false"(メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã—ãªã?ã§ã™ã? 353 * 354 * @og.rev 3.0.0.3 (2003/02/21) メãƒ?‚»ãƒ¼ã‚¸è¡¨ç¤ºå±žæ?ã®æ–°è¦è¿½åŠ? 355 * 356 * @param flag メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹ã‚’指å®?[true:常時表示/false:éžè¡¨ç¤º] 357 */ 358 public void setViewMsg( final String flag ) { 359 viewMsg = nval( getRequestParameter( flag ),viewMsg ); 360 } 361 362 /** 363 * ã€TAG】ã?ãƒ«ãƒ—ãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã? 364 * (åˆæœŸå€¤:DEFAULT_HELP_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON}])ã€? 365 * 366 * @og.tag 367 * ãƒ˜ãƒ«ãƒ—ãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?ãã?アイコン画åƒã?URLを指定ã—ã¾ã™ã? 368 * URLã¯ã€?[CONTEXT_PATH]/jspを基準ã¨ã—ã¦æŒ?®šã—ã¾ã™ã? 369 * ä¾? /ge/jsp/image/help.pngã«å˜åœ¨ã™ã‚‹ç”»åƒã‚’æŒ?®šã™ã‚‹å?åˆã?iconURL=/image/help.pngを指定ã—ã¾ã™ã? 370 * ã“ã?URLãŒæŒ‡å®šã•れãªã??åˆã?ヘルプリンクã¯ã€msgLbl属æ?ã§æŒ?®šã•れãŸãƒ?‚ストã§è¡¨ç¤ºã•れã¾ã™ã? 371 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®DEFAULT_HELP_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON}])ã€? 372 * 373 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦è¿½åŠ? 374 * 375 * @param url アイコンURL 376 * @see org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON 377 */ 378 public void setIconURL( final String url ) { 379 iconURL = nval( getRequestParameter( url ),iconURL ); 380 } 381 382 /** 383 * ã€TAG】FAQãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã? 384 * (åˆæœŸå€¤:DEFAULT_FAQ_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON}])ã€? 385 * 386 * @og.tag 387 * FAQãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?ãã?アイコン画åƒã?URLを指定ã—ã¾ã™ã? 388 * URLã¯ã€?[CONTEXT_PATH]/jspを基準ã¨ã—ã¦æŒ?®šã—ã¾ã™ã? 389 * ä¾? /ge/jsp/image/help.pngã«å˜åœ¨ã™ã‚‹ç”»åƒã‚’æŒ?®šã™ã‚‹å?åˆã?iconURL=/image/help.pngを指定ã—ã¾ã™ã? 390 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®DEFAULT_FAQ_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON}])ã€? 391 * 392 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦è¿½åŠ? 393 * 394 * @param url アイコンURL 395 * @see org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON 396 */ 397 public void setFaqIconURL( final String url ) { 398 faqIconURL = nval( getRequestParameter( url ),faqIconURL ); 399 } 400 401 /** 402 * ã€TAG】FAQè¡¨ç¤ºã®æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã? 403 * (åˆæœŸå€¤:USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€? 404 * 405 * @og.tag 406 * trueを指定ã™ã‚‹ã¨ã€FAQç”»é¢ã¸ã®ãƒªãƒ³ã‚¯ãŒè¡¨ç¤ºã•れã¾ã™ã?(GE80ã«ãƒ??ã‚¿ãŒå˜åœ¨ã™ã‚‹ã‹ã?ç„¡é–¢ä¿? 407 * リンク先ã?faqGUIã§ã‚»ãƒ?ƒˆã—ãŸç”»é¢ã«å¯¾ã—ã¦ç”»é¢IDを引数ã¨ã—ã¦ã‚ãŸã—ã¾ã™ã? 408 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€? 409 * 410 * @og.rev 5.5.0.4 (2012/03/167) æ–°è¦è¿½åŠ? 411 * 412 * @param flag FAQè¡¨ç¤ºã®æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹ [true:利用ã™ã‚‹/false:利用ã—ãªã„] 413 * @see org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ 414 */ 415 public void setUseFaq( final String flag ) { 416 useFaq = nval( getRequestParameter( flag ),useFaq ); 417 } 418 419 420 /** 421 * ã€TAG】FAQã«é–¢é€£ç”»é¢æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã™ã? 422 * (åˆæœŸå€¤:USE_GUI_FAQ_CTRL[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ_CTRL}])ã€? 423 * 424 * @og.tag 425 * trueを指定ã™ã‚‹ã¨ã€GE80ã«ãƒ??ã‚¿ãŒé–¢é€£ç”»é¢IDã¨ã—ã¦å˜åœ¨ã™ã‚‹å ´åˆã?ã¿ã‚¢ã‚¤ã‚³ãƒ³ã‚? 426 * リンク先ã?faqGUIã§ã‚»ãƒ?ƒˆã—ãŸç”»é¢ã«å¯¾ã—ã¦ç”»é¢IDを引数ã¨ã—ã¦ã‚ãŸã—ã¾ã™ã? 427 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€? 428 * 429 * @og.rev 5.6.4.3 (2013/05/24) æ–°è¦è¿½åŠ? 430 * 431 * @param flag FAQã®å˜åœ¨ãƒã‚§ãƒ?‚¯æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹ [true:利用ã™ã‚‹/false:利用ã—ãªã„] 432 * @see org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ_CTRL 433 */ 434 public void setUseFaqCtrl( final String flag ) { 435 useFaqCtrl = nval( getRequestParameter( flag ),useFaqCtrl ); 436 } 437 438 /** 439 * ã“ã?オブジェクトã?æ–?—å?表ç¾ã‚’è¿”ã—ã¾ã™ã? 440 * 基本çš?«ãƒ?ƒãƒ?‚°ç›®çš?«ä½¿ç”¨ã—ã¾ã™ã? 441 * 442 * @return ã“ã?ã‚¯ãƒ©ã‚¹ã®æ–?—å?è¡¨ç¾ 443 */ 444 @Override 445 public String toString() { 446 return org.opengion.fukurou.util.ToString.title( this.getClass().getName() ) 447 .println( "VERSION" ,VERSION ) 448 .println( "guiInfoKey" ,guiInfoKey ) 449 .println( "extension" ,extension ) 450 .println( "baseURL" ,baseURL ) 451 .println( "target" ,target ) 452 .println( "viewMsg" ,viewMsg ) 453 .println( "iconURL" ,iconURL ) 454 .println( "Other..." ,getAttributes().getAttribute() ) 455 .fixForm().toString() ; 456 } 457 }