com.sun.j2ee.blueprints.ui.popupcalendar
Class PopupCalendarComponent

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 javax.faces.component.html.HtmlInputText
                      extended by com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarComponent
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class PopupCalendarComponent
extends javax.faces.component.html.HtmlInputText

Date picker with a JavaScript popup calendar


Field Summary
 
Fields inherited from class javax.faces.component.html.HtmlInputText
COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
PopupCalendarComponent()
           
 
Method Summary
protected  java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, java.lang.Object isoValue)
           
 java.lang.String getDateFormatPattern()
           Pattern to use for date format.
 java.lang.String getFamily()
           
 java.lang.String getLocaleString()
           Underscore or dash separated locale string used to determine calendar format such as year, month, date ordering, month names, and week names.
 java.lang.String getStyle()
           CSS style attribute.
 java.lang.String getStyleClass()
           CSS "class" attribute.
 java.lang.String getValueAsString()
           This is a String-typed alias for the "value" property and is the model value that will be the initially displayed date in the control and will reflect changes made by the webapp user during post-back.
 void restoreState(javax.faces.context.FacesContext _context, java.lang.Object _state)
           Restore the state of this component.
 java.lang.Object saveState(javax.faces.context.FacesContext _context)
           Save the state of this component.
 void setDateFormatPattern(java.lang.String dateFormatPattern)
           Pattern to use for date format.
 void setLocaleString(java.lang.String localeString)
           Underscore or dash separated locale string used to determine calendar format such as year, month, date ordering, month names, and week names.
 void setStyle(java.lang.String style)
           CSS style attribute.
 void setStyleClass(java.lang.String styleClass)
           CSS "class" attribute.
 void setValueAsString(java.lang.String stringValue)
           This is a String-typed alias for the "value" property and is the model value that will be the initially displayed date in the control and will reflect changes made by the webapp user during post-back.
 void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)
           
 void validate(javax.faces.context.FacesContext context)
           
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getDir, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setTabindex, setTitle
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, 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, encodeBegin, encodeChildren, encodeEnd, 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
 
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
 

Constructor Detail

PopupCalendarComponent

public PopupCalendarComponent()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIInput

validate

public void validate(javax.faces.context.FacesContext context)
Overrides:
validate in class javax.faces.component.UIInput

getConvertedValue

protected java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                             java.lang.Object isoValue)
                                      throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.component.UIInput
Throws:
javax.faces.convert.ConverterException

getLocaleString

public java.lang.String getLocaleString()

Underscore or dash separated locale string used to determine calendar format such as year, month, date ordering, month names, and week names. If null, then the default locale from the view root will be used. For example, "de_DE", "fr_CA", "es".


setLocaleString

public void setLocaleString(java.lang.String localeString)

Underscore or dash separated locale string used to determine calendar format such as year, month, date ordering, month names, and week names. If null, then the default locale from the view root will be used. For example, "de_DE", "fr_CA", "es".

See Also:
getLocaleString()

getDateFormatPattern

public java.lang.String getDateFormatPattern()

Pattern to use for date format. A combination of the strings "yyyy", "MM", "dd", plus a separator character, with "yyyy" either first or last. If null, then derive a default one from the locale. See "locale" property for details. If pattern is not valid, then ISO 8601 "yyyy-MM-dd" will be used. For example, "yyyy-MM-dd", "dd.MM.yyyy", "MM/dd/yyyy".


setDateFormatPattern

public void setDateFormatPattern(java.lang.String dateFormatPattern)

Pattern to use for date format. A combination of the strings "yyyy", "MM", "dd", plus a separator character, with "yyyy" either first or last. If null, then derive a default one from the locale. See "locale" property for details. If pattern is not valid, then ISO 8601 "yyyy-MM-dd" will be used. For example, "yyyy-MM-dd", "dd.MM.yyyy", "MM/dd/yyyy".

See Also:
getDateFormatPattern()

getValueAsString

public java.lang.String getValueAsString()

This is a String-typed alias for the "value" property and is the model value that will be the initially displayed date in the control and will reflect changes made by the webapp user during post-back. Without any converters, this property is a String in ISO 8601 YYYY-MM-DD format. A value of null means no date is selected. Use the "value" property for non-String types.


setValueAsString

public void setValueAsString(java.lang.String stringValue)

This is a String-typed alias for the "value" property and is the model value that will be the initially displayed date in the control and will reflect changes made by the webapp user during post-back. Without any converters, this property is a String in ISO 8601 YYYY-MM-DD format. A value of null means no date is selected. Use the "value" property for non-String types.

See Also:
getValueAsString()

getStyle

public java.lang.String getStyle()

CSS style attribute.

Overrides:
getStyle in class javax.faces.component.html.HtmlInputText

setStyle

public void setStyle(java.lang.String style)

CSS style attribute.

Overrides:
setStyle in class javax.faces.component.html.HtmlInputText
See Also:
getStyle()

getStyleClass

public java.lang.String getStyleClass()

CSS "class" attribute.

Overrides:
getStyleClass in class javax.faces.component.html.HtmlInputText

setStyleClass

public void setStyleClass(java.lang.String styleClass)

CSS "class" attribute.

Overrides:
setStyleClass in class javax.faces.component.html.HtmlInputText
See Also:
getStyleClass()

setValueBinding

public void setValueBinding(java.lang.String name,
                            javax.faces.el.ValueBinding binding)
Overrides:
setValueBinding in class javax.faces.component.UIComponentBase

restoreState

public void restoreState(javax.faces.context.FacesContext _context,
                         java.lang.Object _state)

Restore the state of this component.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.html.HtmlInputText

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext _context)

Save the state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.html.HtmlInputText