📄 butorvalidatorform.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.ActionMapping;import org.apache.struts.validator.ValidatorForm;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 ButorValidatorForm extends ValidatorForm implements IButorValidatorForm { protected ButorFieldsController f_fieldsController = new ButorFieldsController(); /** * @see org.butor.wak.web.action.IButorActionForm#clear() */ 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 org.apache.struts.action.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 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); } /** * @see ActionForm#validate(ActionMapping, HttpServletRequest) */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { return validateForm(mapping, new ButorServletRequest(request)); } /** * */ public ActionErrors validateForm(ActionMapping mapping, ButorServletRequest request) { return super.validate((ActionMapping)mapping, request); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -