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}" lbl="HELP" />
059 *
060 * <og:help
061 * guiInfoKey = "GUIInfo ã®ã‚ーを指定ã—ã¾ã?å¿??)ã€?
062 * extension = "æ‹¡å¼µåã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:html)ã€?
063 * lbl = "ラベルリソースã®ãƒ¡ãƒ?‚»ãƒ¼ã‚¸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 = "5.6.7.3 (2013/08/23)" ;
078
079 private static final long serialVersionUID = 567320130823L ; // 5.6.7.3 (2013/08/23)
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 private boolean useFaq = HybsSystem.sysBool( "USE_GUI_FAQ" ); // 5.6.7.3 (2013/08/23)
097 private boolean useFaqCtrl = HybsSystem.sysBool( "USE_GUI_FAQ_CTRL" ); // 5.6.7.3 (2013/08/23)
098
099 /**
100 * Taglibã®çµ‚äº?‚¿ã‚°ãŒè¦‹ã¤ã‹ã£ãŸã¨ãã«å‡¦ç?™ã‚?doEndTag() ã‚?オーãƒã?ライドã—ã¾ã™ã?
101 *
102 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€?
103 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿?
104 * @og.rev 5.5.0.4 (2012/03/16) FAQ対�
105 * @og.rev 5.6.4.3 (2013/05/26) FAQã®ç”»é¢åˆ¥å¯¾å¿?
106 *
107 * @return 後続å?ç??æŒ?¤º
108 */
109 @Override
110 public int doEndTag() {
111 debugPrint(); // 4.0.0 (2005/02/28)
112
113 TopMenuTag topMenu = (TopMenuTag)findAncestorWithClass( this,TopMenuTag.class );
114 if( topMenu == null ) {
115 jspPrint( makeTag() );
116 if(useFaq){
117 jspPrint( makeTagFaq() );
118 }
119 }
120 else {
121 // 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿?
122 String linkFormat = getLink( baseURL + "{FILENAME}" );
123 String baseDir = HybsSystem.url2dir( baseURL );
124 topMenu.add( "helpLinkFormat",linkFormat );
125 topMenu.add( "helpBaseDir",baseDir );
126 if(useFaq){ // 5.5.0.4 (2012/03/16) FAQ対�
127 GUIInfo guiInfo = getGUIInfo( faqGUI );
128 if( guiInfo != null ) {
129 String address = guiInfo.getRealAddress( get( "href" ) );
130 String faqFormat = getFAQLink(getRequestParameter( address+"?command=NEW&GAMENID="+faqGUI+"&KNRNGUI={GUIKEY}" ));
131 topMenu.add( "faqLinkFormat",faqFormat );
132 }
133 }
134 }
135
136 return(EVAL_PAGE);
137 }
138
139 /**
140 * タグリブオブジェクトをリリースã—ã¾ã™ã?
141 * ã‚ャãƒ?‚·ãƒ¥ã•れã¦å†åˆ©ç”¨ã•れるã?ã§ã€ãƒ•ィールドã?åˆæœŸè¨å®šã‚’行ã„ã¾ã™ã?
142 *
143 * @og.rev 2.0.0.4 (2002/09/27) カスタãƒ?‚¿ã‚°ã® release() メソãƒ?ƒ‰ã‚’ã?追åŠ?
144 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ?»?
145 * @og.rev 3.1.1.2 (2003/04/04) Tomcat4.1 対応ã?release2() ã‚?doEndTag()ã§å‘¼ã¶ã€?
146 * @og.rev 3.6.0.7 (2004/11/06) target 属æ?ã®åˆæœŸå€¤ã‚?_new ã‹ã‚‰ _blank ã«å¤‰æ›´
147 * @og.rev 5.3.8.0 (2011/08/01) iconURL追�
148 * @og.rev 5.5.0.4 (2012/03/16) faq
149 * @og.rev 5.6.4.3 (2013/05/24) faqCtrl
150 * @og.rev 5.6.7.3 (2013/08/23) useFaq 㨠useFaqCtrl ã®ã‚ーã®å¾Œã‚ã«ã‚¹ãƒšã?スãŒå?ã£ã¦ã?Ÿã€?
151 */
152 @Override
153 protected void release2() {
154 super.release2();
155 guiInfoKey = null;
156 extension = "html";
157 baseURL = HybsSystem.sys( "HELP_URL" );
158 target = "_blank"; // 3.6.0.7 (2004/11/06)
159 viewMsg = false;
160 // iconURL = "/image/help.png"; // 5.3.8.0 (2011/08/01)
161 iconURL = HybsSystem.sys( "DEFAULT_HELP_ICON" ); // 5.4.3.6 (2012/01/19)
162 faqIconURL = HybsSystem.sys( "DEFAULT_FAQ_ICON" ); // 5.5.0.4 (2012/03/16)
163 // useFaq = HybsSystem.sysBool( "USE_GUI_FAQ " ); // 5.5.0.4 (2012/03/16)
164 faqGUI = HybsSystem.sys( "DEFAULT_FAQ_GUI" ); // 5.5.0.4 (2012/03/16)
165 // syscode = "*"; // 5.5.0.4 (2012/03/16)
166 // useFaqCtrl = HybsSystem.sysBool( "USE_GUI_FAQ_CTRL " ); // 5.6.4.3 (2013/05/24)
167
168 useFaq = HybsSystem.sysBool( "USE_GUI_FAQ" ); // 5.6.7.3 (2013/08/23)
169 useFaqCtrl = HybsSystem.sysBool( "USE_GUI_FAQ_CTRL" ); // 5.6.7.3 (2013/08/23)
170 }
171
172 /**
173 * HELPリンクを作æ?ã—ã¾ã™ã?
174 *
175 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ?
176 * @og.rev 3.0.1.0 (2003/03/03) viewMsg フラグã®åˆ¶å¾¡ã®ãƒã‚°ä¿®æ£
177 * @og.rev 5.3.8.0 (2011/08/01) iconURL対�
178 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿?
179 * @og.rev 5.5.0.4 (2012/03/16) faq
180 *
181 * @return リンクタグæ–?—å?
182 */
183 protected String makeTag() {
184 String rtn = "";
185
186 if( guiInfoKey == null ) {
187 guiInfoKey = getGUIInfoAttri( "KEY" );
188 }
189
190 String url = baseURL + guiInfoKey + "." + extension;
191 File file = new File( HybsSystem.url2dir( url ) );
192
193 // ファイルã®å˜åœ¨ãƒã‚§ãƒ?‚¯
194 if( file.exists() ) { // 3.5.6.0 (2004/06/18)
195 // 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿?
196 // Attributes attri = new Attributes();
197 // String path = getContextPath();
198 // attri.set( "href",path + "/" + url );
199 // attri.set( "body",getMsglbl() );
200 // attri.set( "body",getLinkBody() );
201 // attri.set( "target",target );
202 //
203 // rtn = XHTMLTag.link( attri ) ;
204 rtn = getLink( url );
205 }
206 else if( viewMsg ) {
207 // rtn = getMsglbl() ;
208 // rtn = getLinkBody();
209 rtn = getLinkBody(null,getMsglbl()); // 5.5.0.4
210 }
211
212 return rtn;
213 }
214
215 /**
216 * FAQリンクを作æ?ã—ã¾ã™ã?
217 *
218 * @og.rev 5.3.9.0 (2011/09/01) メニューã§ã®ãƒ˜ãƒ«ãƒ—アイコン対å¿?
219 * @og.rev 5.6.4.3 (2013/05/24) FAQå˜åœ¨ãƒã‚§ãƒ?‚¯å¯¾å¿?
220 *
221 * @return リンクタグæ–?—å?
222 */
223 protected String makeTagFaq() {
224 String rtn = "";
225
226 if( !useFaqCtrl && !"true".equals(getGUIInfoAttri( "FAQ" ) ) ) { return rtn; } // 5.6.4.3 (2013/05/24) 若干ã‚?£ã¤ã?
227
228 if( guiInfoKey == null ) {
229 guiInfoKey = getGUIInfoAttri( "KEY" );
230 }
231
232 GUIInfo guiInfo = getGUIInfo( faqGUI );
233 if( guiInfo == null ) { return rtn; } // 見ã¤ã‹ã‚‰ãªã??åˆã?ã€ã‚¢ã‚¯ã‚»ã‚¹ä¸å¯
234
235 String address = guiInfo.getRealAddress( get( "href" ) );
236 String url = getRequestParameter( address+"?command=NEW&GAMENID="+faqGUI+"&KNRNGUI="+guiInfoKey );
237
238 rtn = getFAQLink( url );
239
240 return rtn;
241 }
242
243 /**
244 * リンクæ–?—å?を作æ?ã—ã¾ã™ã?
245 *
246 * @og.rev 5.3.9.0 (2011/09/01) æ–°è¦ä½œæ?
247 * @og.rev 5.5.0.4 (2012/03/16) faq
248 *
249 * @param url リンクã®URL
250 *
251 * @return リンクæ–?—å?
252 */
253 private String getLink( final String url ) {
254 Attributes attri = new Attributes();
255 String path = getContextPath();
256 attri.set( "href",path + "/" + url );
257 // attri.set( "body",getMsglbl() );
258 // attri.set( "body",getLinkBody() );
259 attri.set( "body",getLinkBody(iconURL,getMsglbl()) ); //5.5.0.4 (2012/03/16)
260 attri.set( "target",target );
261 attri.set( "class", "helplink" );
262
263 return XHTMLTag.link( attri );
264 }
265
266 /**
267 * FAQリンクæ–?—å?を作æ?ã—ã¾ã™ã?
268 *
269 * @og.rev 5.5.0.4 (2012/03/16) æ–°è¦ä½œæ?
270 *
271 * @param url リンクã®URL
272 *
273 * @return リンクæ–?—å?
274 */
275 private String getFAQLink( final String url ) {
276 Attributes attri = new Attributes();
277 attri.set( "href", url );
278 attri.set( "body",getLinkBody(faqIconURL,"FAQ") );
279 attri.set( "target",target );
280 attri.set( "class", "faqlink" );
281
282 return XHTMLTag.link( attri );
283 }
284
285 /**
286 * リンクã®ãƒœãƒ‡ã‚£ãƒ¼éƒ¨åˆ?‚’作æ?ã—ã¾ã™ã?
287 *
288 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦ä½œæ?
289 * @og.rev 5.3.9.0 (2011/09/01) ç”»åƒè¡¨ç¤ºæ™‚ã«title属æ?を付åŠ
290 * @og.rev 5.5.0.4 (2012/03/16) 引数対�
291 *
292 * @param icon アイコン
293 * @param title タイトル
294 *
295 * @return リンクボディーæ–?—å?
296 */
297 // private String getLinkBody() {
298 private String getLinkBody(final String icon, final String title) {
299 String rtn = null;
300 // if( iconURL == null || iconURL.length() == 0 ) {
301 if( icon == null || icon.length() == 0 ) {
302 rtn = getMsglbl();
303 }
304 else {
305 rtn = "<img src=\"" + JSP + icon + "\" title=\"" + title + "\"/>";
306 }
307 return rtn;
308 }
309
310 /**
311 * ã€TAG】GUIInfo ã®ã‚ーを指定ã—ã¾ã™ã?
312 *
313 * @og.tag GUIInfo ã®ã‚ーを指定ã—ã¾ã™ã?
314 *
315 * @param key GUIInfo ã®ã‚ー
316 */
317 public void setGuiInfoKey( final String key ) {
318 guiInfoKey = getRequestParameter( key );
319 }
320
321 /**
322 * ã€TAG】拡張åã‚’æŒ?®šã—ã¾ã?åˆæœŸå€¤:html)ã€?
323 *
324 * @og.tag
325 * ãªã«ã‚‚è¨å®šã•れã¦ã?ªã??åˆã?ã€?html" ãŒå?期å?ã¨ãªã‚Šã¾ã™ã?
326 * ã“ã“ã§ã¯ã€ãƒ”リオドã?ã€å«ã‚ã‚‹å¿?¦ã?ã‚りã¾ã›ã‚“ã€?
327 *
328 * @param ext æ‹¡å¼µå?
329 */
330 public void setExtension( final String ext ) {
331 extension = nval( getRequestParameter( ext ),extension );
332 }
333
334 /**
335 * ã€TAG】TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:_blank)ã€?
336 *
337 * @og.tag
338 * åˆæœŸå€¤ã¯ã€?"_blank" ã¨ã—ã¦ã€æ–°è¦ã«ç”»é¢ã‚’ç«‹ã¡ä¸Šã’ã¾ã™ã?
339 * CONTENTS ç‰ã‚’æŒ?®šã™ã‚Œã?ã€ã‚³ãƒ³ãƒ?ƒ³ãƒ?ƒ•レーãƒ?メニューã®å³å´å…¨é¢)ã«ã€?
340 * RESULT を指定ã™ã‚Œã?ã€ãƒªã‚¶ãƒ«ãƒˆãƒ•レーãƒ?メニューå³ä¸‹å?)ã«è¡¨ç¤ºã—ã¾ã™ã?
341 *
342 * @og.rev 3.0.0.3 (2003/02/21) ターゲãƒ?ƒˆå±žæ?ã®æ–°è¦è¿½åŠ?
343 *
344 * @param val TARGET 属æ?を指定ã—ã¾ã?åˆæœŸå€¤:"_blank")
345 */
346 public void setTarget( final String val ) {
347 target = nval( getRequestParameter( val ),target );
348 }
349
350 /**
351 * ã€TAG】メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?åˆæœŸå€¤:false)ã€?
352 *
353 * @og.tag
354 * "true"ã®å ´åˆã?ã€å¸¸æ™‚表示ã•ã›ã¾ã™ã?
355 * ファイルãŒã?å˜åœ¨ã—ãŸå ´åˆã?ã€ãƒªãƒ³ã‚¯ãŒå¼µã‚‰ã‚Œã€å˜åœ¨ã—ãªã??åˆã?ã€ãƒªãƒ³ã‚¯ã?
356 * 張られã¾ã›ã‚“ã€?
357 * "false" ã®å ´åˆã?ã€ãƒ•ァイルãŒã?å˜åœ¨ã—ãŸå ´åˆã?ã€ãƒªãƒ³ã‚¯ãŒå¼µã‚‰ã‚Œã€å˜åœ¨ã—ãªã??åˆã?ã€?
358 * ãªã«ã‚‚表示ã•れã¾ã›ã‚“ã€?
359 * åˆæœŸå€¤ã¯ã€?"false"(メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã—ãªã?ã§ã™ã?
360 *
361 * @og.rev 3.0.0.3 (2003/02/21) メãƒ?‚»ãƒ¼ã‚¸è¡¨ç¤ºå±žæ?ã®æ–°è¦è¿½åŠ?
362 *
363 * @param flag メãƒ?‚»ãƒ¼ã‚¸ã‚’常時表示ã•ã›ã‚‹ã‹ã©ã?‹ã‚’指å®?[true:常時表示/false:éžè¡¨ç¤º]
364 */
365 public void setViewMsg( final String flag ) {
366 viewMsg = nval( getRequestParameter( flag ),viewMsg );
367 }
368
369 /**
370 * ã€TAG】ã?ãƒ«ãƒ—ãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã?
371 * (åˆæœŸå€¤:DEFAULT_HELP_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON}])ã€?
372 *
373 * @og.tag
374 * ãƒ˜ãƒ«ãƒ—ãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?ãã?アイコン画åƒã?URLを指定ã—ã¾ã™ã?
375 * URLã¯ã€?[CONTEXT_PATH]/jspを基準ã¨ã—ã¦æŒ?®šã—ã¾ã™ã?
376 * ä¾? /ge/jsp/image/help.pngã«å˜åœ¨ã™ã‚‹ç”»åƒã‚’æŒ?®šã™ã‚‹å?åˆã?iconURL=/image/help.pngを指定ã—ã¾ã™ã?
377 * ã“ã?URLãŒæŒ‡å®šã•れãªã??åˆã?ヘルプリンクã¯ã€msgLbl属æ?ã§æŒ?®šã•れãŸãƒ?‚ストã§è¡¨ç¤ºã•れã¾ã™ã?
378 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®DEFAULT_HELP_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON}])ã€?
379 *
380 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦è¿½åŠ?
381 *
382 * @param url アイコンURL
383 * @see org.opengion.hayabusa.common.SystemData#DEFAULT_HELP_ICON
384 */
385 public void setIconURL( final String url ) {
386 iconURL = nval( getRequestParameter( url ),iconURL );
387 }
388
389 /**
390 * ã€TAG】FAQãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?アイコンURLを指定ã—ã¾ã?
391 * (åˆæœŸå€¤:DEFAULT_FAQ_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON}])ã€?
392 *
393 * @og.tag
394 * FAQãƒªãƒ³ã‚¯ã‚’ã‚¢ã‚¤ã‚³ãƒ³ã§æŒ?®šã™ã‚‹å?åˆã?ãã?アイコン画åƒã?URLを指定ã—ã¾ã™ã?
395 * URLã¯ã€?[CONTEXT_PATH]/jspを基準ã¨ã—ã¦æŒ?®šã—ã¾ã™ã?
396 * ä¾? /ge/jsp/image/help.pngã«å˜åœ¨ã™ã‚‹ç”»åƒã‚’æŒ?®šã™ã‚‹å?åˆã?iconURL=/image/help.pngを指定ã—ã¾ã™ã?
397 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®DEFAULT_FAQ_ICON[={@og.value org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON}])ã€?
398 *
399 * @og.rev 5.3.8.0 (2011/08/01) æ–°è¦è¿½åŠ?
400 *
401 * @param url アイコンURL
402 * @see org.opengion.hayabusa.common.SystemData#DEFAULT_FAQ_ICON
403 */
404 public void setFaqIconURL( final String url ) {
405 faqIconURL = nval( getRequestParameter( url ),faqIconURL );
406 }
407
408 /**
409 * ã€TAG】FAQè¡¨ç¤ºã®æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã?
410 * (åˆæœŸå€¤:USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€?
411 *
412 * @og.tag
413 * trueを指定ã™ã‚‹ã¨ã€FAQç”»é¢ã¸ã®ãƒªãƒ³ã‚¯ãŒè¡¨ç¤ºã•れã¾ã™ã?(GE80ã«ãƒ??ã‚¿ãŒå˜åœ¨ã™ã‚‹ã‹ã?ç„¡é–¢ä¿?
414 * リンク先ã?faqGUIã§ã‚»ãƒ?ƒˆã—ãŸç”»é¢ã«å¯¾ã—ã¦ç”»é¢IDを引数ã¨ã—ã¦ã‚ãŸã—ã¾ã™ã?
415 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€?
416 *
417 * @og.rev 5.5.0.4 (2012/03/167) æ–°è¦è¿½åŠ?
418 *
419 * @param flag FAQè¡¨ç¤ºã®æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹ [true:利用ã™ã‚‹/false:利用ã—ãªã„]
420 * @see org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ
421 */
422 public void setUseFaq( final String flag ) {
423 useFaq = nval( getRequestParameter( flag ),useFaq );
424 }
425
426
427 /**
428 * ã€TAG】FAQã«é–¢é€£ç”»é¢æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹[true/false]を指定ã—ã¾ã™ã?
429 * (åˆæœŸå€¤:USE_GUI_FAQ_CTRL[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ_CTRL}])ã€?
430 *
431 * @og.tag
432 * trueを指定ã™ã‚‹ã¨ã€GE80ã«ãƒ??ã‚¿ãŒé–¢é€£ç”»é¢IDã¨ã—ã¦å˜åœ¨ã™ã‚‹å ´åˆã?ã¿ã‚¢ã‚¤ã‚³ãƒ³ã‚?
433 * リンク先ã?faqGUIã§ã‚»ãƒ?ƒˆã—ãŸç”»é¢ã«å¯¾ã—ã¦ç”»é¢IDを引数ã¨ã—ã¦ã‚ãŸã—ã¾ã™ã?
434 * (åˆæœŸå€¤:シスãƒ?ƒ 定数ã®USE_GUI_FAQ[={@og.value org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ}])ã€?
435 *
436 * @og.rev 5.6.4.3 (2013/05/24) æ–°è¦è¿½åŠ?
437 *
438 * @param flag FAQã®å˜åœ¨ãƒã‚§ãƒ?‚¯æ©Ÿè?を利用ã™ã‚‹ã‹ã©ã?‹ [true:利用ã™ã‚‹/false:利用ã—ãªã„]
439 * @see org.opengion.hayabusa.common.SystemData#USE_GUI_FAQ_CTRL
440 */
441 public void setUseFaqCtrl( final String flag ) {
442 useFaqCtrl = nval( getRequestParameter( flag ),useFaqCtrl );
443 }
444
445 /**
446 * ã“ã?オブジェクトã?æ–?—å?表ç¾ã‚’è¿”ã—ã¾ã™ã?
447 * 基本çš?«ãƒ?ƒãƒ?‚°ç›®çš?«ä½¿ç”¨ã—ã¾ã™ã?
448 *
449 * @return ã“ã?ã‚¯ãƒ©ã‚¹ã®æ–?—å?表ç¾
450 */
451 @Override
452 public String toString() {
453 return org.opengion.fukurou.util.ToString.title( this.getClass().getName() )
454 .println( "VERSION" ,VERSION )
455 .println( "guiInfoKey" ,guiInfoKey )
456 .println( "extension" ,extension )
457 .println( "baseURL" ,baseURL )
458 .println( "target" ,target )
459 .println( "viewMsg" ,viewMsg )
460 .println( "iconURL" ,iconURL )
461 .println( "Other..." ,getAttributes().getAttribute() )
462 .fixForm().toString() ;
463 }
464 }