org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility
Class MetricDisplayRangeForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
org.rhq.enterprise.gui.legacy.action.CalendarForm
org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility.MetricDisplayRangeForm
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- IndicatorViewsForm, MetricsControlForm, ProblemMetricsDisplayForm, ViewChartForm
public class MetricDisplayRangeForm
- extends CalendarForm
Represents the controls on various pages that display metrics summaries.
- See Also:
- Serialized Form
| Fields inherited from class org.rhq.enterprise.gui.legacy.action.CalendarForm |
AM, PM |
| 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.rhq.enterprise.gui.legacy.action.CalendarForm |
calcHour, getEndAmPm, getEndDate, getEndDay, getEndHour, getEndMin, getEndMonth, getEndYear, getInitStartTime, getStartAmPm, getStartDate, getStartDay, getStartHour, getStartMin, getStartMonth, getStartYear, getYearOptions, populateEndDate, populateStartDate, setEndAmPm, setEndDay, setEndHour, setEndMin, setEndMonth, setEndYear, setStartAmPm, setStartDay, setStartHour, setStartMin, setStartMonth, setStartYear, setWantEndDate, validateDateRange |
| Methods inherited from class org.rhq.enterprise.gui.legacy.action.BaseValidatorForm |
getAdd, getCancel, getCreate, getDelete, getEnable, getInstall, getManualUninstall, getOk, getOkassign, getPn, getPs, getRemove, getReset, getUninventory, getUserset, isAddClicked, isCancelClicked, isCreateClicked, isDeleteClicked, isEnableClicked, isInstallClicked, isManualUninstallClicked, isOkAssignClicked, isOkClicked, isRemoveClicked, isResetClicked, isUsersetClicked, setAdd, setCancel, setCreate, setDelete, setEnable, setInstall, setOk, setOkassign, setPn, setPs, setRemove, setReset, setUninventory, setUserset, shouldValidate |
| 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 |
ACTION_LASTN
public static final Integer ACTION_LASTN
ACTION_DATE_RANGE
public static final Integer ACTION_DATE_RANGE
MetricDisplayRangeForm
public MetricDisplayRangeForm()
getA
public Integer getA()
setA
public void setA(Integer b)
getCtype
public Integer getCtype()
setCtype
public void setCtype(Integer ctype)
getId
public Integer getId()
setId
public void setId(Integer resourceId)
getRn
public Integer getRn()
setRn
public void setRn(Integer i)
getRu
public Integer getRu()
setRu
public void setRu(Integer i)
getCategory
public String getCategory()
setCategory
public void setCategory(String category)
getWantEndDate
public boolean getWantEndDate()
- Always check the end date.
- Overrides:
getWantEndDate in class CalendarForm
isLastnSelected
public boolean isLastnSelected()
isDateRangeSelected
public boolean isDateRangeSelected()
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
reset in class CalendarForm
shouldValidateDateRange
protected boolean shouldValidateDateRange()
- Overrides:
shouldValidateDateRange in class CalendarForm
toString
public String toString()
- Overrides:
toString in class CalendarForm
setDefaults
protected void setDefaults()
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Description copied from class:
BaseValidatorForm
- 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 CalendarForm
getGroupId
public int getGroupId()
- Returns:
- the groupId
setGroupId
public void setGroupId(int groupId)
- Parameters:
groupId - the groupId to set
getParent
public int getParent()
- Returns:
- the parent
setParent
public void setParent(int parent)
- Parameters:
parent - the parent to set
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.