org.rhq.enterprise.gui.common.time
Class DurationComponent

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

public class DurationComponent
extends javax.faces.component.UIComponentBase

Author:
Joseph Marques

Nested Class Summary
static class DurationComponent.TimeUnit
           
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String OPTION_LIST_ATTRIBUTE
           
static String UNIT
           
static String VALUE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
DurationComponent()
           
 
Method Summary
 String getFamily()
           
 long getMillis()
           
 String getOptionList()
           
 String getUnit()
           
 DurationComponent.TimeUnit[] getUnitOptions()
           
 int getValue()
           
 void restoreState(javax.faces.context.FacesContext context, Object stateValues)
           
 Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setOptionList(String optionList)
           
 void setUnit(String unit)
           
 void setUnitOptions(DurationComponent.TimeUnit[] unitOptions)
           
 void setValue(int value)
           
 
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

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

DurationComponent

public DurationComponent()
Method Detail

getValue

public int getValue()

setValue

public void setValue(int value)

getUnit

public String getUnit()

setUnit

public void setUnit(String unit)

getOptionList

public String getOptionList()

setOptionList

public void setOptionList(String optionList)

getUnitOptions

public DurationComponent.TimeUnit[] getUnitOptions()

setUnitOptions

public void setUnitOptions(DurationComponent.TimeUnit[] unitOptions)

getMillis

public long getMillis()

getFamily

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

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.