|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.html.HtmlInputText
org.apache.myfaces.custom.date.AbstractHtmlInputDate
public abstract class AbstractHtmlInputDate
Custom input control for dates and times. Unless otherwise specified, all attributes accept static values or EL expressions.
Nested Class Summary | |
---|---|
static class |
AbstractHtmlInputDate.UserData
|
Nested classes/interfaces inherited from class javax.faces.component.html.HtmlInputText |
---|
javax.faces.component.html.HtmlInputText.PropertyKeys |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME |
Fields inherited from class javax.faces.component.UIComponent |
---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Fields inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR |
Constructor Summary | |
---|---|
AbstractHtmlInputDate()
|
Method Summary | |
---|---|
java.lang.String |
getClientId(javax.faces.context.FacesContext context)
Overriden to support the force id, since the parent is not an extended component |
javax.faces.convert.Converter |
getConverter()
Retrieve the converter used by this component. |
abstract DateBusinessConverter |
getDateBusinessConverter()
Indicate an object used as a bridge between the java.util.Date instance used by this component internally and the value object used on the bean, referred as a "business" value. |
abstract java.lang.String |
getEmptyAmpmSelection()
Label to be used when displaying an empty ampm selection |
abstract java.lang.String |
getEmptyMonthSelection()
Label to be used when displaying an empty month selection |
abstract java.lang.String |
getTimeZone()
|
abstract java.lang.String |
getType()
Specifies the type of value to be accepted. |
AbstractHtmlInputDate.UserData |
getUserData(java.util.Locale currentLocale)
|
abstract boolean |
isAmpm()
If true, use 12hr times with AM/PM selector; if false, use 24hr time. |
abstract boolean |
isDisabled()
HTML: When true, this element cannot receive focus. |
abstract boolean |
isPopupCalendar()
|
abstract boolean |
isReadonly()
HTML: When true, indicates that this component cannot be modified by the user. |
boolean |
isRendered()
|
abstract void |
setDateBusinessConverter(DateBusinessConverter dateBusinessConverter)
|
Methods inherited from class javax.faces.component.html.HtmlInputText |
---|
getAccesskey, getAlt, getAutocomplete, getDefaultEventName, getDir, getEventNames, getFamily, getLabel, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getStyle, getStyleClass, getTabindex, getTitle, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setStyle, setStyleClass, setTabindex, setTitle |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
---|
getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addClientBehavior, addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree |
Methods inherited from class javax.faces.component.UIComponent |
---|
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole |
Methods inherited from interface org.apache.myfaces.component.ForceIdAware |
---|
isForceId, isForceIdIndex, setForceId, setForceIdIndex |
Methods inherited from interface org.apache.myfaces.component.AlignProperty |
---|
getAlign |
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder |
---|
addClientBehavior, getClientBehaviors |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getLocalValue, setConverter |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public AbstractHtmlInputDate()
Method Detail |
---|
public java.lang.String getClientId(javax.faces.context.FacesContext context)
getClientId
in class javax.faces.component.UIComponentBase
public boolean isRendered()
isRendered
in class javax.faces.component.UIComponentBase
public AbstractHtmlInputDate.UserData getUserData(java.util.Locale currentLocale)
public abstract DateBusinessConverter getDateBusinessConverter()
public abstract void setDateBusinessConverter(DateBusinessConverter dateBusinessConverter)
public abstract java.lang.String getTimeZone()
public abstract java.lang.String getType()
public abstract boolean isAmpm()
public abstract boolean isPopupCalendar()
public abstract java.lang.String getEmptyMonthSelection()
public abstract java.lang.String getEmptyAmpmSelection()
public abstract boolean isReadonly()
isReadonly
in class javax.faces.component.html.HtmlInputText
public abstract boolean isDisabled()
isDisabled
in class javax.faces.component.html.HtmlInputText
public javax.faces.convert.Converter getConverter()
If no converter is selected, submitted values are converted to its inner class UserData on decode method.
If some converter is used, submitted values are decoded as a String with the following format:
year=yyyy
month=mm
day=dd
hours=hh
minutes=mm
seconds=ss
ampm=ampm
Note that submitted values could be wrong and it is necessary to restore values on render response phase. The converter receive a string with this format on getAsObject method and it is expected the converter encode it on getAsString method, so the renderer can restore the submitted values correctly.
getConverter
in interface javax.faces.component.ValueHolder
getConverter
in class javax.faces.component.UIOutput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |