/*
 * MosP - Mind Open Source Project         http://www.mosp.jp/
 * Copyright (C) 1987-2009 MIND Co., Ltd.  http://www.e-mind.co.jp/
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package jp.mosp.system.vo;

import jp.mosp.common.CommonConst;
import jp.mosp.common.MosPVo;

public class OptionFunctionMenuVo extends MosPVo {

	private static final long serialVersionUID = 1855708611362378750L;

	// URL
	private static final String RETURN_URL = "/jsp/system/optionFunctionMenu.jsp";
	private static final String EXTRA_JS   = "/pub/system/js/optionFunctionMenu.js";
	private static final String EXTRA_CSS  = "/pub/system/css/optionFunctionMenu.css";

	// 画面サブタイトル	
	public final String TTL_OPION_FUNCTION_MENU = CommonConst.TTL_OPION_FUNCTION_MENU;

	// フィールド
	private String[][] aryOptionFunctionMenu ;

	/**
	 * コンストラクタ
	 */
	public OptionFunctionMenuVo() {
		super();
		setRetUrl(RETURN_URL);
		setExtraCss(EXTRA_CSS);
		addExtraJs(EXTRA_JS);
		aryOptionFunctionMenu 	= new String[0][0];
	}

	/**
	 * フィールド設定
	 * @param String[][] 
	 * @throws MospException
	 */
	public void setFields(String [][] aryOptionMenu) {
		aryOptionFunctionMenu = escapeArray(aryOptionMenu.clone());
	}

	/**
	 * JavaScript設定
	 * @param cls 情報取得クラス
	 * @throws IllegalAccessException
	 */
	@Override
	public String getDirectJs(Class cls) throws IllegalAccessException {
		StringBuffer sb = new StringBuffer();
		sb.append(super.getDirectJs(cls));
		return sb.toString();
	}

	public String[][]	getEscAryOptionFunctionMenu	() { return aryOptionFunctionMenu.clone()	; }

}
