edu.nrao.sss.webapp.faces.component
Class DateTimeUIComponent

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 edu.nrao.sss.webapp.faces.component.DateTimeUIComponent
All Implemented Interfaces:
EditableValueHolder, StateHolder, ValueHolder

public class DateTimeUIComponent
extends UIInput


Field Summary
protected static SimpleDateFormat getDay
           
protected static SimpleDateFormat getHour
           
protected static SimpleDateFormat getMinute
           
protected static SimpleDateFormat getMonth
           
protected static SimpleDateFormat getSecond
           
protected static SimpleDateFormat getYear
           
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
DateTimeUIComponent()
           
 
Method Summary
 void decode(FacesContext context)
           
 void encodeBegin(FacesContext context)
           
 void encodeChildren(FacesContext context)
          Overridden to be empty.
 void encodeEnd(FacesContext context)
          Overridden to be empty.
 String getDateSeparator()
           
 Boolean getShowTime()
           
 String getTimeSeparator()
           
 Boolean isEnabled()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setDateSeparator(String s)
           
 void setEnabled(Boolean e)
           
 void setShowTime(Boolean s)
           
 void setTimeSeparator(String s)
           
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, getConvertedValue, getFamily, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
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

getYear

protected static final SimpleDateFormat getYear

getMonth

protected static final SimpleDateFormat getMonth

getDay

protected static final SimpleDateFormat getDay

getHour

protected static final SimpleDateFormat getHour

getMinute

protected static final SimpleDateFormat getMinute

getSecond

protected static final SimpleDateFormat getSecond
Constructor Detail

DateTimeUIComponent

public DateTimeUIComponent()
Method Detail

encodeBegin

public void encodeBegin(FacesContext context)
                 throws IOException
Overrides:
encodeBegin in class UIComponentBase
Throws:
IOException

decode

public void decode(FacesContext context)
Overrides:
decode in class UIInput

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIInput

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIInput

getDateSeparator

public String getDateSeparator()

setDateSeparator

public void setDateSeparator(String s)

getTimeSeparator

public String getTimeSeparator()

setTimeSeparator

public void setTimeSeparator(String s)

isEnabled

public Boolean isEnabled()

setEnabled

public void setEnabled(Boolean e)

getShowTime

public Boolean getShowTime()

setShowTime

public void setShowTime(Boolean s)

encodeEnd

public void encodeEnd(FacesContext context)
               throws IOException
Overridden to be empty.

Overrides:
encodeEnd in class UIComponentBase
Throws:
IOException

encodeChildren

public void encodeChildren(FacesContext context)
                    throws IOException
Overridden to be empty.

Overrides:
encodeChildren in class UIComponentBase
Throws:
IOException


Copyright © 2009. All Rights Reserved.