Module org.apache.wicket.extensions
Class ZonedToLocalDateTimeModel
java.lang.Object
org.apache.wicket.extensions.markup.html.form.datetime.ZonedToLocalDateTimeModel
- All Implemented Interfaces:
Serializable,org.apache.wicket.model.IDetachable,org.apache.wicket.model.IModel<LocalDateTime>,org.apache.wicket.util.io.IClusterable
public class ZonedToLocalDateTimeModel
extends Object
implements org.apache.wicket.model.IModel<LocalDateTime>
- Author:
- svenmeier
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionZonedToLocalDateTimeModel(org.apache.wicket.model.IModel<ZonedDateTime> model) Map the givenZonedDateTimeto aLocalDateTimein the client's time zone. -
Method Summary
Modifier and TypeMethodDescriptionvoiddetach()protected ZoneIdWhat is theZoneIdof the client.protected ZoneIdWhat is theZoneIdof createdZonedDateTimeobjects.voidsetObject(LocalDateTime dateTime) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.model.IModel
as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
-
Constructor Details
-
ZonedToLocalDateTimeModel
Map the givenZonedDateTimeto aLocalDateTimein the client's time zone.- Parameters:
model- zoned date time
-
-
Method Details
-
detach
- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable- Specified by:
detachin interfaceorg.apache.wicket.model.IModel<LocalDateTime>
-
getClientTimeZone
What is theZoneIdof the client.- See Also:
-
RequestCycleSettings.getGatherExtendedBrowserInfo()ZoneId.systemDefault()
-
getTargetTimeZone
What is theZoneIdof createdZonedDateTimeobjects. -
getObject
- Specified by:
getObjectin interfaceorg.apache.wicket.model.IModel<LocalDateTime>
-
setObject
- Specified by:
setObjectin interfaceorg.apache.wicket.model.IModel<LocalDateTime>
-