org.rhq.enterprise.gui.legacy.action
Class BaseValidatorForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AddGroupResourcesForm, AddLdapGroupsForm, AddResourceGroupsForm, AddUserRolesForm, AddUsersForm, CalendarForm, ChangeOwnerForm, DashboardBaseForm, EditForm, EditPasswordForm, ExampleForm, GroupForm, HubForm, RemoveForm, RemoveForm, RemoveGroupForm, RemoveGroupResourcesForm, RemoveResourceForm, RemoveResourceGroupsForm, RemoveRolesForm, RemoveUsersForm, RoleForm, SystemConfigForm
public class BaseValidatorForm
- extends org.apache.struts.validator.ValidatorForm
A subclass of ValidatorForm that adds convenience methods for dealing with image-based form buttons.
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts.validator.ValidatorForm |
page, validatorResults |
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
| Methods inherited from class org.apache.struts.validator.ValidatorForm |
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
BaseValidatorForm
public BaseValidatorForm()
setAdd
public void setAdd(org.apache.struts.util.ImageButtonBean add)
getAdd
public org.apache.struts.util.ImageButtonBean getAdd()
setCancel
public void setCancel(org.apache.struts.util.ImageButtonBean cancel)
getCancel
public org.apache.struts.util.ImageButtonBean getCancel()
setCreate
public void setCreate(org.apache.struts.util.ImageButtonBean create)
getCreate
public org.apache.struts.util.ImageButtonBean getCreate()
setDelete
public void setDelete(org.apache.struts.util.ImageButtonBean delete)
getDelete
public org.apache.struts.util.ImageButtonBean getDelete()
setOk
public void setOk(org.apache.struts.util.ImageButtonBean ok)
getOk
public org.apache.struts.util.ImageButtonBean getOk()
getPs
public Integer getPs()
setPs
public void setPs(Integer pageSize)
setRemove
public void setRemove(org.apache.struts.util.ImageButtonBean remove)
getRemove
public org.apache.struts.util.ImageButtonBean getRemove()
setReset
public void setReset(org.apache.struts.util.ImageButtonBean reset)
getReset
public org.apache.struts.util.ImageButtonBean getReset()
setEnable
public void setEnable(org.apache.struts.util.ImageButtonBean enable)
getEnable
public org.apache.struts.util.ImageButtonBean getEnable()
setUserset
public void setUserset(org.apache.struts.util.ImageButtonBean userset)
getUserset
public org.apache.struts.util.ImageButtonBean getUserset()
setInstall
public void setInstall(org.apache.struts.util.ImageButtonBean install)
getInstall
public org.apache.struts.util.ImageButtonBean getInstall()
getManualUninstall
public org.apache.struts.util.ImageButtonBean getManualUninstall()
setPn
public void setPn(Integer pn)
- Setter for property p.
- Parameters:
pn - New value of property p.
getPn
public Integer getPn()
- Getter for property p.
- Returns:
- Value of property p.
setOkassign
public void setOkassign(org.apache.struts.util.ImageButtonBean okAdd)
- Sets the okAdd.
- Parameters:
okAdd - The okAdd to userset
getOkassign
public org.apache.struts.util.ImageButtonBean getOkassign()
- Returns:
- ImageButtonBean
setUninventory
public void setUninventory(org.apache.struts.util.ImageButtonBean value)
getUninventory
public org.apache.struts.util.ImageButtonBean getUninventory()
isAddClicked
public boolean isAddClicked()
isCancelClicked
public boolean isCancelClicked()
isCreateClicked
public boolean isCreateClicked()
isDeleteClicked
public boolean isDeleteClicked()
isOkClicked
public boolean isOkClicked()
isOkAssignClicked
public boolean isOkAssignClicked()
isRemoveClicked
public boolean isRemoveClicked()
isResetClicked
public boolean isResetClicked()
isEnableClicked
public boolean isEnableClicked()
isUsersetClicked
public boolean isUsersetClicked()
isInstallClicked
public boolean isInstallClicked()
isManualUninstallClicked
public boolean isManualUninstallClicked()
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
reset in class org.apache.struts.validator.ValidatorForm
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Only validate if 1) the form's ok or okassign button was clicked and 2) the mapping specifies an input form to
return to. condition #2 can be false when a form has failed validation and has forwarded to the input page; the
ok button request parameter will still be userset, but the prepare action for the input page will not have
(another) input page specified.
- Overrides:
validate in class org.apache.struts.validator.ValidatorForm
shouldValidate
protected boolean shouldValidate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.