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

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended byjavax.faces.component.UIInput
                  extended byjavax.faces.component.html.HtmlInputText
                      extended bycom.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 submittedValue)
           
 java.lang.String getDateFormatPattern()
           Pattern to use for date format.
 java.lang.String getFamily()
           
 javax.faces.component.html.HtmlInputText getInputText(javax.faces.context.FacesContext context)
           
 java.lang.String getInputTextClientId(javax.faces.context.FacesContext context)
           
 java.lang.String getJavaScriptForNewInstance(javax.faces.context.FacesContext context)
           
 java.lang.String getJavaScriptObjectName(javax.faces.context.FacesContext context)
           
 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 getStringValue()
           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.
 java.lang.String getStyle()
           CSS style attribute.
 java.lang.String getStyleClass()
           CSS "class" attribute.
 java.lang.String getText()
           Render a textual textfield.
 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 setStringValue(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 setStyle(java.lang.String style)
           CSS style attribute.
 void setStyleClass(java.lang.String styleClass)
           CSS "class" attribute.
 void setText(java.lang.String text)
           
 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, 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
 

Constructor Detail

PopupCalendarComponent

public PopupCalendarComponent()
Method Detail

getFamily

public java.lang.String getFamily()

getInputText

public javax.faces.component.html.HtmlInputText getInputText(javax.faces.context.FacesContext context)

getInputTextClientId

public java.lang.String getInputTextClientId(javax.faces.context.FacesContext context)
Returns:
unique client id for the input text sub component

getConvertedValue

protected java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                             java.lang.Object submittedValue)
                                      throws javax.faces.convert.ConverterException
Throws:
javax.faces.convert.ConverterException

getJavaScriptObjectName

public java.lang.String getJavaScriptObjectName(javax.faces.context.FacesContext context)
Returns:
unique name used as a javascript object identifier

getJavaScriptForNewInstance

public java.lang.String getJavaScriptForNewInstance(javax.faces.context.FacesContext context)

validate

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

getText

public java.lang.String getText()

Render a textual textfield.


setText

public void setText(java.lang.String text)
See Also:
getText()

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()

getStringValue

public java.lang.String getStringValue()

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.


setStringValue

public void setStringValue(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:
getStringValue()

getStyle

public java.lang.String getStyle()

CSS style attribute.


setStyle

public void setStyle(java.lang.String style)

CSS style attribute.

See Also:
getStyle()

getStyleClass

public java.lang.String getStyleClass()

CSS "class" attribute.


setStyleClass

public void setStyleClass(java.lang.String styleClass)

CSS "class" attribute.

See Also:
getStyleClass()

restoreState

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

Restore the state of this component.


saveState

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

Save the state of this component.