com.liferay.faces.alloy.component.inputdatetime
Class InputDateTime

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.liferay.faces.alloy.component.inputtext.InputTextBase
                          extended by com.liferay.faces.alloy.component.inputdatetime.InputDateTimeBase
                              extended by com.liferay.faces.alloy.component.inputdatetime.InputDateTime
All Implemented Interfaces:
com.liferay.faces.util.component.ClientComponent, com.liferay.faces.util.component.Styleable, 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
Direct Known Subclasses:
InputDateBase, InputTimeBase

public abstract class InputDateTime
extends InputDateTimeBase

Author:
Kyle Stiemann

Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.faces.alloy.component.inputdatetime.InputDateTimeBase
InputDateTimeBase.InputDateTimePropertyKeys
 
Nested classes/interfaces inherited from class javax.faces.component.html.HtmlInputText
javax.faces.component.html.HtmlInputText.PropertyKeys
 
Field Summary
 
Fields inherited from class com.liferay.faces.alloy.component.inputdatetime.InputDateTimeBase
COMPONENT_TYPE, RENDERER_TYPE
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, 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 com.liferay.faces.util.component.Styleable
STYLE, STYLE_CLASS
 
Fields inherited from interface com.liferay.faces.util.component.ClientComponent
CLIENT_KEY
 
Constructor Summary
InputDateTime()
           
 
Method Summary
 javax.faces.convert.Converter getConverter()
           
 Object getLocale()
          locale attribute description:
 Object getLocale(javax.faces.context.FacesContext facesContext)
           
 Date getObjectAsDate(Object dateAsObject, String datePattern, TimeZone timeZone)
           
 Locale getObjectAsLocale(Object localeAsObject)
           
abstract  String getPattern()
           
protected  void validateValue(javax.faces.context.FacesContext facesContext, Object newValue, Date minDate, Date maxDate, TimeZone timeZone)
           
 
Methods inherited from class com.liferay.faces.alloy.component.inputdatetime.InputDateTimeBase
getAutoHide, getClientKey, getShowOn, getStyleClass, getTimeZone, getzIndex, isNativeWhenMobile, setAutoHide, setClientKey, setLocale, setNativeWhenMobile, setShowOn, setTimeZone, setzIndex
 
Methods inherited from class com.liferay.faces.alloy.component.inputtext.InputTextBase
getLabel
 
Methods inherited from class javax.faces.component.html.HtmlInputText
getAccesskey, getAlt, getAutocomplete, getDefaultEventName, getDir, getEventNames, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getRole, getSize, getStyle, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setAutocomplete, setDir, setDisabled, setLabel, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setRole, setSize, setStyle, setStyleClass, setTabindex, setTitle
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, 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, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.faces.util.component.Styleable
getStyle, setStyle, setStyleClass
 
Methods inherited from interface com.liferay.faces.util.component.ClientComponent
getClientId
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors
 
Methods inherited from interface javax.faces.component.ValueHolder
getLocalValue, setConverter
 

Constructor Detail

InputDateTime

public InputDateTime()
Method Detail

getPattern

public abstract String getPattern()

getConverter

public javax.faces.convert.Converter getConverter()
Specified by:
getConverter in interface javax.faces.component.ValueHolder
Overrides:
getConverter in class javax.faces.component.UIOutput

getLocale

public Object getLocale()
Description copied from class: InputDateTimeBase

locale attribute description:

The locale of the component which can be of type java.lang.String or java.util.Locale.

Overrides:
getLocale in class InputDateTimeBase

getLocale

public Object getLocale(javax.faces.context.FacesContext facesContext)

getObjectAsDate

public final Date getObjectAsDate(Object dateAsObject,
                                  String datePattern,
                                  TimeZone timeZone)
                           throws javax.faces.FacesException
Throws:
javax.faces.FacesException

getObjectAsLocale

public final Locale getObjectAsLocale(Object localeAsObject)
                               throws javax.faces.FacesException
Throws:
javax.faces.FacesException

validateValue

protected final void validateValue(javax.faces.context.FacesContext facesContext,
                                   Object newValue,
                                   Date minDate,
                                   Date maxDate,
                                   TimeZone timeZone)


Copyright © 2017 Liferay, Inc.. All rights reserved.