Interface HasZoneId

All Known Implementing Classes:
TypedDateTimePicker, TypedTimePicker

public interface HasZoneId
Defines a contract for components that support working with a ZoneId.

Implementations of this interface allow getting and setting a time zone identifier, typically for handling date or time-related values with respect to a specific time zone.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the ZoneId associated with this component.
    void
    setZoneId(ZoneId zoneId)
    Sets the ZoneId for this component.
  • Method Details

    • getZoneId

      @Nullable ZoneId getZoneId()
      Returns the ZoneId associated with this component.
      Returns:
      the ZoneId of this component, or null if no ZoneId is set
    • setZoneId

      void setZoneId(@Nullable ZoneId zoneId)
      Sets the ZoneId for this component.
      Parameters:
      zoneId - the ZoneId to be set for this component, or null to unset the current ZoneId