org.rhq.enterprise.gui.legacy.action.resource.common.monitor.visibility
Class MetricDisplayRangeForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by org.rhq.enterprise.gui.legacy.action.BaseValidatorForm
              extended by org.rhq.enterprise.gui.legacy.action.CalendarForm
                  extended by 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

Field Summary
static Integer ACTION_DATE_RANGE
           
static Integer ACTION_LASTN
           
 
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
 
Constructor Summary
MetricDisplayRangeForm()
           
 
Method Summary
 Integer getA()
           
 String getCategory()
           
 Integer getCtype()
           
 int getGroupId()
           
 Integer getId()
           
 int getParent()
           
 Integer getRn()
           
 Integer getRu()
           
 boolean getWantEndDate()
          Always check the end date.
 boolean isDateRangeSelected()
           
 boolean isLastnSelected()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void setA(Integer b)
           
 void setCategory(String category)
           
 void setCtype(Integer ctype)
           
protected  void setDefaults()
           
 void setGroupId(int groupId)
           
 void setId(Integer resourceId)
           
 void setParent(int parent)
           
 void setRn(Integer i)
           
 void setRu(Integer i)
           
protected  boolean shouldValidateDateRange()
           
 String toString()
           
 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.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_LASTN

public static final Integer ACTION_LASTN

ACTION_DATE_RANGE

public static final Integer ACTION_DATE_RANGE
Constructor Detail

MetricDisplayRangeForm

public MetricDisplayRangeForm()
Method Detail

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.