Module org.apache.wicket.extensions
Class ZonedToLocalDateTimeModel
java.lang.Object
org.apache.wicket.extensions.markup.html.form.datetime.ZonedToLocalDateTimeModel
- All Implemented Interfaces:
Serializable
,IDetachable
,IModel<LocalDateTime>
,IClusterable
- Author:
- svenmeier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
Detaches model after use.protected ZoneId
What is theZoneId
of the client.Gets the model object.protected ZoneId
What is theZoneId
of createdZonedDateTime
objects.void
setObject
(LocalDateTime dateTime) Sets the model object.
-
Constructor Details
-
ZonedToLocalDateTimeModel
Map the givenZonedDateTime
to aLocalDateTime
in the client's time zone.- Parameters:
model
- zoned date time
-
-
Method Details
-
detach
Description copied from interface:IDetachable
Detaches model after use. This is generally used to null out transient references that can be re-attached later.- Specified by:
detach
in interfaceIDetachable
- Specified by:
detach
in interfaceIModel<LocalDateTime>
-
getClientTimeZone
What is theZoneId
of the client. -
getTargetTimeZone
What is theZoneId
of createdZonedDateTime
objects. -
getObject
Description copied from interface:IModel
Gets the model object.- Specified by:
getObject
in interfaceIModel<LocalDateTime>
- Returns:
- The model object
-
setObject
Description copied from interface:IModel
Sets the model object.- Specified by:
setObject
in interfaceIModel<LocalDateTime>
- Parameters:
dateTime
- The model object
-