org.rhq.enterprise.gui.common.metric
Class MetricComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.rhq.enterprise.gui.common.metric.MetricComponent
All Implemented Interfaces:
javax.faces.component.StateHolder

public class MetricComponent
extends javax.faces.component.UIComponentBase

Author:
Fady Matar

Nested Class Summary
static class MetricComponent.TimeUnit
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
protected  org.apache.commons.logging.Log log
           
static String OPTION_LIST_ATTRIBUTE
           
static String UNIT
           
static String VALUE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
MetricComponent()
           
 
Method Summary
 String getFamily()
           
 org.rhq.enterprise.server.measurement.MeasurementPreferences.MetricRangePreferences getMetricRangePreferences()
           
 String getOptionList()
           
 MetricComponent.TimeUnit[] getUnitOptions()
           
 void restoreState(javax.faces.context.FacesContext context, Object stateValues)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setOptionList(String optionList)
           
 void setUnitOptions(MetricComponent.TimeUnit[] unitOptions)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

VALUE

public static final String VALUE
See Also:
Constant Field Values

UNIT

public static final String UNIT
See Also:
Constant Field Values

OPTION_LIST_ATTRIBUTE

public static final String OPTION_LIST_ATTRIBUTE
See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

MetricComponent

public MetricComponent()
Method Detail

getOptionList

public String getOptionList()

setOptionList

public void setOptionList(String optionList)

getUnitOptions

public MetricComponent.TimeUnit[] getUnitOptions()

setUnitOptions

public void setUnitOptions(MetricComponent.TimeUnit[] unitOptions)

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getMetricRangePreferences

public org.rhq.enterprise.server.measurement.MeasurementPreferences.MetricRangePreferences getMetricRangePreferences()

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object stateValues)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.