Package com.helger.photon.core.form
Class RequestFieldDate
java.lang.Object
com.helger.web.scope.util.AbstractRequestFieldData
com.helger.web.scope.util.RequestFieldData
com.helger.photon.core.form.RequestField
com.helger.photon.core.form.RequestFieldDate
- All Implemented Interfaces:
com.helger.html.request.IHCBaseRequestField
,com.helger.html.request.IHCRequestField
Special request field specially for dates.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionRequestFieldDate
(String sFieldName, String sDefaultValue, Locale aDisplayLocale) RequestFieldDate
(String sFieldName, LocalDate aDefaultValue, Locale aDisplayLocale) RequestFieldDate
(String sFieldName, LocalDateTime aDefaultValue, Locale aDisplayLocale) RequestFieldDate
(String sFieldName, LocalTime aDefaultValue, Locale aDisplayLocale) RequestFieldDate
(String sFieldName, ZonedDateTime aDefaultValue, Locale aDisplayLocale) RequestFieldDate
(String sFieldName, Locale aDisplayLocale) Constructor without a default valueRequestFieldDate
(String sFieldName, XMLGregorianCalendar aDefaultValue, Locale aDisplayLocale) -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestFieldDate
createDateTimeNow
(String sFieldName, Locale aDisplayLocale) static RequestFieldDate
createLocalDateNow
(String sFieldName, Locale aDisplayLocale) static RequestFieldDate
createLocalDateTimeNow
(String sFieldName, Locale aDisplayLocale) boolean
final Locale
int
hashCode()
toString()
Methods inherited from class com.helger.web.scope.util.RequestFieldData
getDefaultValue, getRequestValue, getRequestValueWithoutDefault, hasRequestValue
Methods inherited from class com.helger.web.scope.util.AbstractRequestFieldData
getFieldName, getParams
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.helger.html.request.IHCBaseRequestField
getFieldName
Methods inherited from interface com.helger.html.request.IHCRequestField
getDefaultValue, getRequestValue
-
Constructor Details
-
RequestFieldDate
-
RequestFieldDate
Constructor without a default value- Parameters:
sFieldName
- Field nameaDisplayLocale
- Display locale to use.
-
RequestFieldDate
-
RequestFieldDate
-
RequestFieldDate
-
RequestFieldDate
-
RequestFieldDate
-
-
Method Details
-
getDisplayLocale
- Returns:
- The locale as specified in the constructor. Never
null
.
-
equals
- Overrides:
equals
in classcom.helger.web.scope.util.RequestFieldData
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.helger.web.scope.util.RequestFieldData
-
toString
- Overrides:
toString
in classcom.helger.web.scope.util.RequestFieldData
-
createLocalDateNow
-
createLocalDateTimeNow
-
createDateTimeNow
-