com.sun.rave.web.ui.component
Class Time

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by com.sun.rave.web.ui.component.TimeBase
                      extended by com.sun.rave.web.ui.component.Time
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.NamingContainer, javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class Time
extends TimeBase
implements javax.faces.component.NamingContainer


Field Summary
static java.lang.String HOUR_FACET
           
static java.lang.String HOUR_ID
           
static java.lang.String MINUTES_FACET
           
static java.lang.String MINUTES_ID
           
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
Time()
           
 
Method Summary
 java.util.Calendar getCalendar()
          Returns a new Calendar instance corresponding to the user's current locale and the developer specified time zone (if any).
 DropDown getHourMenu()
           
 java.lang.String getHourTooltipKey()
          Getter for property hourTooltipKey.
 DropDown getMinutesMenu()
           
 java.lang.String getMinutesTooltipKey()
          Getter for property minutesTooltipKey.
 java.lang.String getOffset()
          Get the time-zone as a string.
 void processDecodes(javax.faces.context.FacesContext context)
          Specialized decode behavior on top of that provided by the superclass.
 void setHourTooltipKey(java.lang.String hourTooltipKey)
          Setter for property hourTooltipKey.
 void setMinutesTooltipKey(java.lang.String minutesTooltipKey)
          Setter for property minutesTooltipKey.
 void validate(javax.faces.context.FacesContext context)
          Perform the following algorithm to validate the local value of this UIInput.
 
Methods inherited from class com.sun.rave.web.ui.component.TimeBase
getFamily, getStyle, getStyleClass, getTabIndex, getTimeZone, isDisabled, isReadOnly, isVisible, restoreState, saveState, setDisabled, setReadOnly, setStyle, setStyleClass, setTabIndex, setTimeZone, setVisible
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, 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
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue, setConverter
 

Field Detail

HOUR_FACET

public static final java.lang.String HOUR_FACET
See Also:
Constant Field Values

HOUR_ID

public static final java.lang.String HOUR_ID
See Also:
Constant Field Values

MINUTES_FACET

public static final java.lang.String MINUTES_FACET
See Also:
Constant Field Values

MINUTES_ID

public static final java.lang.String MINUTES_ID
See Also:
Constant Field Values
Constructor Detail

Time

public Time()
Method Detail

getHourMenu

public DropDown getHourMenu()

getMinutesMenu

public DropDown getMinutesMenu()

getOffset

public java.lang.String getOffset()

Get the time-zone as a string.


getCalendar

public java.util.Calendar getCalendar()

Returns a new Calendar instance corresponding to the user's current locale and the developer specified time zone (if any).

Returns:
java.util.Calendar A new Calendar instance with the correct locale and time zone.

getHourTooltipKey

public java.lang.String getHourTooltipKey()
Getter for property hourTooltipKey.

Returns:
Value of property hourTooltipKey.

setHourTooltipKey

public void setHourTooltipKey(java.lang.String hourTooltipKey)
Setter for property hourTooltipKey.

Parameters:
hourTooltipKey - New value of property hourTooltipKey.

getMinutesTooltipKey

public java.lang.String getMinutesTooltipKey()
Getter for property minutesTooltipKey.

Returns:
Value of property minutesTooltipKey.

setMinutesTooltipKey

public void setMinutesTooltipKey(java.lang.String minutesTooltipKey)
Setter for property minutesTooltipKey.

Parameters:
minutesTooltipKey - New value of property minutesTooltipKey.

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)

Specialized decode behavior on top of that provided by the superclass. In addition to the standard processDecodes behavior inherited from UIComponentBase, calls validate() if the the immediate property is true; if the component is invalid afterwards or a RuntimeException is thrown, calls FacesContext.renderResponse().

Overrides:
processDecodes in class javax.faces.component.UIInput
Throws:
java.lang.NullPointerException

validate

public void validate(javax.faces.context.FacesContext context)

Perform the following algorithm to validate the local value of this UIInput.

Overrides:
validate in class javax.faces.component.UIInput
Parameters:
context - The FacesContext for the current request