⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 butoractionform.java

📁 一个实用工具类
💻 JAVA
字号:
/* * Copyright (C) butor.com. All rights reserved. * * This software is published under the terms of the GNU Library General * Public License (GNU LGPL), a copy of which has been included with this * distribution in the LICENSE.txt file.  */package org.butor.web.action;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;import org.butor.web.helper.ButorFieldsController;import org.butor.web.helper.ButorServletRequest;/** * @author nacroaz * * To change this generated comment edit the template variable "typecomment": * Window>Preferences>Java>Templates. */public class ButorActionForm extends ActionForm implements IButorActionForm {		protected ButorFieldsController f_fieldsController = new ButorFieldsController();						/**	 * @see org.butor.wak.web.action.IButorActionForm#clear()	 * 	 * There is not field to clear here	 */	public void clear() {	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#getEnabled(String)	 */	public boolean getEnabled(String property) {		return f_fieldsController.getEnabled(property);	}	public boolean isEnablePropertyExists(String property) {		return f_fieldsController.isEnablePropertyExists(property);		}	/**	 * @see org.butor.wak.web.action.IButorActionForm#getVisible(String)	 */	public boolean getVisible(String property) {		return f_fieldsController.getVisible(property);	}	/**	 * @see ActionForm#reset(ActionMapping, HttpServletRequest)	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		resetForm(mapping, new ButorServletRequest(request));	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#resetForm(ButorActionMapping, ButorServletRequest)	 */	public void resetForm(ActionMapping mapping, ButorServletRequest request) {		super.reset(mapping, request);	}			/**	 * @see ActionForm#reset(ActionMapping, HttpServletRequest)	 */	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {		return validateForm(mapping, new ButorServletRequest(request));	}			/**	 * @see org.butor.wak.web.action.IButorActionForm#validateForm(ButorActionMapping, ButorServletRequest)	 */	public ActionErrors validateForm(ActionMapping mapping, ButorServletRequest request) {		return super.validate((ActionMapping)mapping, request);	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#setAllEnabled(boolean)	 */	public void setAllEnabled(boolean enabled) {		f_fieldsController.setAllEnabled(enabled);	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#setAllVisible(boolean)	 */	public void setAllVisible(boolean visible) {		f_fieldsController.setAllVisible(visible);	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#setEnabled(String, boolean)	 */	public void setEnabled(String property, boolean enabled) {		f_fieldsController.setEnabled(property, enabled);	}	/**	 * @see org.butor.wak.web.action.IButorActionForm#setVisible(String, boolean)	 */	public void setVisible(String property, boolean visible) {		f_fieldsController.setVisible(property, visible);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -