org.apache.myfaces.custom.date
Class HtmlInputDate

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 org.apache.myfaces.custom.date.AbstractHtmlInputDate
                          extended by org.apache.myfaces.custom.date.HtmlInputDate
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.EditableValueHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.component.ValueHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, AlignProperty, ForceIdAware, UserRoleAware

public class HtmlInputDate
extends AbstractHtmlInputDate


Nested Class Summary
protected static class HtmlInputDate.PropertyKeys
           
 
Nested classes/interfaces inherited from class org.apache.myfaces.custom.date.AbstractHtmlInputDate
AbstractHtmlInputDate.UserData
 
Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String DEFAULT_RENDERER_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
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
HtmlInputDate()
           
 
Method Summary
 void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
           
 String getAccesskey()
           
 String getAlign()
          HTML: Specifies the horizontal alignment of this element.
 String getAlt()
           
 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.
 String getDir()
           
 String getEmptyAmpmSelection()
          Label to be used when displaying an empty ampm selection
 String getEmptyMonthSelection()
          Label to be used when displaying an empty month selection
 String getEnabledOnUserRole()
          If user is in given role, this component will be rendered normally.
 String getFamily()
           
 String getLabel()
           
 String getLang()
           
 int getMaxlength()
           
 String getOnblur()
           
 String getOnchange()
           
 String getOnclick()
           
 String getOndblclick()
           
 String getOnfocus()
           
 String getOnkeydown()
           
 String getOnkeypress()
           
 String getOnkeyup()
           
 String getOnmousedown()
           
 String getOnmousemove()
           
 String getOnmouseout()
           
 String getOnmouseover()
           
 String getOnmouseup()
           
 String getOnselect()
           
 int getSize()
           
 String getStyle()
           
 String getStyleClass()
           
 String getTabindex()
           
 String getTimeZone()
           
 String getTitle()
           
 String getType()
          Specifies the type of value to be accepted.
 String getVisibleOnUserRole()
          If user is in given role, this component will be rendered normally.
 boolean isAmpm()
          If true, use 12hr times with AM/PM selector; if false, use 24hr time.
 boolean isDisabled()
          HTML: When true, this element cannot receive focus.
 boolean isForceId()
          If true, this component will force the use of the specified id when rendering.
 boolean isForceIdIndex()
          If false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.)
 boolean isPopupCalendar()
           
 boolean isReadonly()
          HTML: When true, indicates that this component cannot be modified by the user.
 void setAccesskey(String accesskey)
           
 void setAlign(String align)
           
 void setAlt(String alt)
           
 void setAmpm(boolean ampm)
           
 void setDateBusinessConverter(DateBusinessConverter dateBusinessConverter)
           
 void setDir(String dir)
           
 void setDisabled(boolean disabled)
           
 void setEmptyAmpmSelection(String emptyAmpmSelection)
           
 void setEmptyMonthSelection(String emptyMonthSelection)
           
 void setEnabledOnUserRole(String enabledOnUserRole)
           
 void setForceId(boolean forceId)
           
 void setForceIdIndex(boolean forceIdIndex)
           
 void setLabel(String label)
           
 void setLang(String lang)
           
 void setMaxlength(int maxlength)
           
 void setOnblur(String onblur)
           
 void setOnchange(String onchange)
           
 void setOnclick(String onclick)
           
 void setOndblclick(String ondblclick)
           
 void setOnfocus(String onfocus)
           
 void setOnkeydown(String onkeydown)
           
 void setOnkeypress(String onkeypress)
           
 void setOnkeyup(String onkeyup)
           
 void setOnmousedown(String onmousedown)
           
 void setOnmousemove(String onmousemove)
           
 void setOnmouseout(String onmouseout)
           
 void setOnmouseover(String onmouseover)
           
 void setOnmouseup(String onmouseup)
           
 void setOnselect(String onselect)
           
 void setPopupCalendar(boolean popupCalendar)
           
 void setReadonly(boolean readonly)
           
 void setSize(int size)
           
 void setStyle(String style)
           
 void setStyleClass(String styleClass)
           
 void setTabindex(String tabindex)
           
 void setTimeZone(String timeZone)
           
 void setTitle(String title)
           
 void setType(String type)
           
 void setValueBinding(String name, javax.faces.el.ValueBinding binding)
           
 void setValueExpression(String name, javax.el.ValueExpression expression)
           
 void setVisibleOnUserRole(String visibleOnUserRole)
           
 
Methods inherited from class org.apache.myfaces.custom.date.AbstractHtmlInputDate
getClientId, getConverter, getUserData, isRendered
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAutocomplete, getDefaultEventName, getEventNames, setAutocomplete
 
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
addFacesListener, encodeAll, 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, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
 
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.behavior.ClientBehaviorHolder
getClientBehaviors
 
Methods inherited from interface javax.faces.component.ValueHolder
getLocalValue, setConverter
 

Field Detail

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

DEFAULT_RENDERER_TYPE

public static final String DEFAULT_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

HtmlInputDate

public HtmlInputDate()
Method Detail

getFamily

public String getFamily()
Overrides:
getFamily in class javax.faces.component.html.HtmlInputText

addClientBehavior

public void addClientBehavior(String eventName,
                              javax.faces.component.behavior.ClientBehavior behavior)
Specified by:
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
addClientBehavior in class javax.faces.component.html.HtmlInputText

getDateBusinessConverter

public DateBusinessConverter getDateBusinessConverter()
Description copied from class: AbstractHtmlInputDate
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.

Specified by:
getDateBusinessConverter in class AbstractHtmlInputDate

setDateBusinessConverter

public void setDateBusinessConverter(DateBusinessConverter dateBusinessConverter)
Specified by:
setDateBusinessConverter in class AbstractHtmlInputDate

getTimeZone

public String getTimeZone()
Specified by:
getTimeZone in class AbstractHtmlInputDate

setTimeZone

public void setTimeZone(String timeZone)

getType

public String getType()
Description copied from class: AbstractHtmlInputDate
Specifies the type of value to be accepted. Valid values are: date | time | short_time | both | full

Specified by:
getType in class AbstractHtmlInputDate

setType

public void setType(String type)

isAmpm

public boolean isAmpm()
Description copied from class: AbstractHtmlInputDate
If true, use 12hr times with AM/PM selector; if false, use 24hr time. Default false.

Specified by:
isAmpm in class AbstractHtmlInputDate

setAmpm

public void setAmpm(boolean ampm)

isPopupCalendar

public boolean isPopupCalendar()
Specified by:
isPopupCalendar in class AbstractHtmlInputDate

setPopupCalendar

public void setPopupCalendar(boolean popupCalendar)

getEmptyMonthSelection

public String getEmptyMonthSelection()
Description copied from class: AbstractHtmlInputDate
Label to be used when displaying an empty month selection

Specified by:
getEmptyMonthSelection in class AbstractHtmlInputDate

setEmptyMonthSelection

public void setEmptyMonthSelection(String emptyMonthSelection)

getEmptyAmpmSelection

public String getEmptyAmpmSelection()
Description copied from class: AbstractHtmlInputDate
Label to be used when displaying an empty ampm selection

Specified by:
getEmptyAmpmSelection in class AbstractHtmlInputDate

setEmptyAmpmSelection

public void setEmptyAmpmSelection(String emptyAmpmSelection)

isReadonly

public boolean isReadonly()
Description copied from class: AbstractHtmlInputDate
HTML: When true, indicates that this component cannot be modified by the user. The element may receive focus unless it has also been disabled.

Specified by:
isReadonly in class AbstractHtmlInputDate

setReadonly

public void setReadonly(boolean readonly)
Overrides:
setReadonly in class javax.faces.component.html.HtmlInputText

isDisabled

public boolean isDisabled()
Description copied from class: AbstractHtmlInputDate
HTML: When true, this element cannot receive focus.

Specified by:
isDisabled in class AbstractHtmlInputDate

setDisabled

public void setDisabled(boolean disabled)
Overrides:
setDisabled in class javax.faces.component.html.HtmlInputText

getEnabledOnUserRole

public String getEnabledOnUserRole()
Description copied from interface: UserRoleAware
If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.

Returns:

setEnabledOnUserRole

public void setEnabledOnUserRole(String enabledOnUserRole)

getVisibleOnUserRole

public String getVisibleOnUserRole()
Description copied from interface: UserRoleAware
If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.

Returns:

setVisibleOnUserRole

public void setVisibleOnUserRole(String visibleOnUserRole)

isForceId

public boolean isForceId()
Description copied from interface: ForceIdAware
If true, this component will force the use of the specified id when rendering.

Returns:

setForceId

public void setForceId(boolean forceId)

isForceIdIndex

public boolean isForceIdIndex()
Description copied from interface: ForceIdAware
If false, this component will not append a '[n]' suffix (where 'n' is the row index) to components that are contained within a "list." This value will be true by default and the value will be ignored if the value of forceId is false (or not specified.)

Returns:

setForceIdIndex

public void setForceIdIndex(boolean forceIdIndex)

getAlign

public String getAlign()
Description copied from interface: AlignProperty
HTML: Specifies the horizontal alignment of this element. Deprecated in HTML 4.01.


setAlign

public void setAlign(String align)

getMaxlength

public int getMaxlength()
Overrides:
getMaxlength in class javax.faces.component.html.HtmlInputText

setMaxlength

public void setMaxlength(int maxlength)
Overrides:
setMaxlength in class javax.faces.component.html.HtmlInputText

getSize

public int getSize()
Overrides:
getSize in class javax.faces.component.html.HtmlInputText

setSize

public void setSize(int size)
Overrides:
setSize in class javax.faces.component.html.HtmlInputText

getLabel

public String getLabel()
Overrides:
getLabel in class javax.faces.component.html.HtmlInputText

setLabel

public void setLabel(String label)
Overrides:
setLabel in class javax.faces.component.html.HtmlInputText

getStyle

public String getStyle()
Overrides:
getStyle in class javax.faces.component.html.HtmlInputText

setStyle

public void setStyle(String style)
Overrides:
setStyle in class javax.faces.component.html.HtmlInputText

getStyleClass

public String getStyleClass()
Overrides:
getStyleClass in class javax.faces.component.html.HtmlInputText

setStyleClass

public void setStyleClass(String styleClass)
Overrides:
setStyleClass in class javax.faces.component.html.HtmlInputText

getAlt

public String getAlt()
Overrides:
getAlt in class javax.faces.component.html.HtmlInputText

setAlt

public void setAlt(String alt)
Overrides:
setAlt in class javax.faces.component.html.HtmlInputText

getTabindex

public String getTabindex()
Overrides:
getTabindex in class javax.faces.component.html.HtmlInputText

setTabindex

public void setTabindex(String tabindex)
Overrides:
setTabindex in class javax.faces.component.html.HtmlInputText

getOnblur

public String getOnblur()
Overrides:
getOnblur in class javax.faces.component.html.HtmlInputText

setOnblur

public void setOnblur(String onblur)
Overrides:
setOnblur in class javax.faces.component.html.HtmlInputText

getOnfocus

public String getOnfocus()
Overrides:
getOnfocus in class javax.faces.component.html.HtmlInputText

setOnfocus

public void setOnfocus(String onfocus)
Overrides:
setOnfocus in class javax.faces.component.html.HtmlInputText

getAccesskey

public String getAccesskey()
Overrides:
getAccesskey in class javax.faces.component.html.HtmlInputText

setAccesskey

public void setAccesskey(String accesskey)
Overrides:
setAccesskey in class javax.faces.component.html.HtmlInputText

getOnclick

public String getOnclick()
Overrides:
getOnclick in class javax.faces.component.html.HtmlInputText

setOnclick

public void setOnclick(String onclick)
Overrides:
setOnclick in class javax.faces.component.html.HtmlInputText

getOndblclick

public String getOndblclick()
Overrides:
getOndblclick in class javax.faces.component.html.HtmlInputText

setOndblclick

public void setOndblclick(String ondblclick)
Overrides:
setOndblclick in class javax.faces.component.html.HtmlInputText

getOnkeydown

public String getOnkeydown()
Overrides:
getOnkeydown in class javax.faces.component.html.HtmlInputText

setOnkeydown

public void setOnkeydown(String onkeydown)
Overrides:
setOnkeydown in class javax.faces.component.html.HtmlInputText

getOnkeypress

public String getOnkeypress()
Overrides:
getOnkeypress in class javax.faces.component.html.HtmlInputText

setOnkeypress

public void setOnkeypress(String onkeypress)
Overrides:
setOnkeypress in class javax.faces.component.html.HtmlInputText

getOnkeyup

public String getOnkeyup()
Overrides:
getOnkeyup in class javax.faces.component.html.HtmlInputText

setOnkeyup

public void setOnkeyup(String onkeyup)
Overrides:
setOnkeyup in class javax.faces.component.html.HtmlInputText

getOnmousedown

public String getOnmousedown()
Overrides:
getOnmousedown in class javax.faces.component.html.HtmlInputText

setOnmousedown

public void setOnmousedown(String onmousedown)
Overrides:
setOnmousedown in class javax.faces.component.html.HtmlInputText

getOnmousemove

public String getOnmousemove()
Overrides:
getOnmousemove in class javax.faces.component.html.HtmlInputText

setOnmousemove

public void setOnmousemove(String onmousemove)
Overrides:
setOnmousemove in class javax.faces.component.html.HtmlInputText

getOnmouseout

public String getOnmouseout()
Overrides:
getOnmouseout in class javax.faces.component.html.HtmlInputText

setOnmouseout

public void setOnmouseout(String onmouseout)
Overrides:
setOnmouseout in class javax.faces.component.html.HtmlInputText

getOnmouseover

public String getOnmouseover()
Overrides:
getOnmouseover in class javax.faces.component.html.HtmlInputText

setOnmouseover

public void setOnmouseover(String onmouseover)
Overrides:
setOnmouseover in class javax.faces.component.html.HtmlInputText

getOnmouseup

public String getOnmouseup()
Overrides:
getOnmouseup in class javax.faces.component.html.HtmlInputText

setOnmouseup

public void setOnmouseup(String onmouseup)
Overrides:
setOnmouseup in class javax.faces.component.html.HtmlInputText

getOnchange

public String getOnchange()
Overrides:
getOnchange in class javax.faces.component.html.HtmlInputText

setOnchange

public void setOnchange(String onchange)
Overrides:
setOnchange in class javax.faces.component.html.HtmlInputText

getOnselect

public String getOnselect()
Overrides:
getOnselect in class javax.faces.component.html.HtmlInputText

setOnselect

public void setOnselect(String onselect)
Overrides:
setOnselect in class javax.faces.component.html.HtmlInputText

getDir

public String getDir()
Overrides:
getDir in class javax.faces.component.html.HtmlInputText

setDir

public void setDir(String dir)
Overrides:
setDir in class javax.faces.component.html.HtmlInputText

getLang

public String getLang()
Overrides:
getLang in class javax.faces.component.html.HtmlInputText

setLang

public void setLang(String lang)
Overrides:
setLang in class javax.faces.component.html.HtmlInputText

getTitle

public String getTitle()
Overrides:
getTitle in class javax.faces.component.html.HtmlInputText

setTitle

public void setTitle(String title)
Overrides:
setTitle in class javax.faces.component.html.HtmlInputText

setValueBinding

public void setValueBinding(String name,
                            javax.faces.el.ValueBinding binding)
Overrides:
setValueBinding in class javax.faces.component.html.HtmlInputText

setValueExpression

public void setValueExpression(String name,
                               javax.el.ValueExpression expression)
Overrides:
setValueExpression in class javax.faces.component.html.HtmlInputText


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.