Class Calendar

    • Constructor Detail

      • Calendar

        public Calendar()
      • Calendar

        public Calendar​(int year,
                        int month)
    • Method Detail

      • getYear

        public int getYear()
        Gets the year to which this calendar is currently set.
        Returns:
        The current year value.
      • setYear

        public void setYear​(int year)
        Sets this calendar's year.
        Parameters:
        year - The new year to set this calendar to.
      • getMonth

        public int getMonth()
        Gets the month to which this calendar is currently set.
        Returns:
        The current month value.
      • setMonth

        public void setMonth​(int month)
        Sets this calendar's month.
        Parameters:
        month - The new month value to set this calendar to.
      • getSelectedDate

        public CalendarDate getSelectedDate()
        Returns:
        The currently selected date, or null if no date is selected.
      • setSelectedDate

        public void setSelectedDate​(CalendarDate selectedDate)
        Sets the currently selected date.
        Parameters:
        selectedDate - The selected date, or null to specify no selection
      • setSelectedDate

        public final void setSelectedDate​(java.lang.String selectedDate)
        Sets the selected date to the date represented by the specified date string. The date string must be in the ISO 8601 "calendar date" format, which is [YYYY]-[MM]-[DD].
        Parameters:
        selectedDate - A string in the form of [YYYY]-[MM]-[DD] (e.g. 2008-07-23)
        Throws:
        java.lang.IllegalArgumentException - if the given date is null.
      • getLocale

        public java.util.Locale getLocale()
        Returns:
        The locale used to present calendar data.
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale used to present calendar data.
        Parameters:
        locale - The new locale for this calendar.
        Throws:
        java.lang.IllegalArgumentException - if the locale argument is null.
      • setLocale

        public void setLocale​(Dictionary<java.lang.String,​?> locale)
        Sets the locale used to present calendar data.
        Parameters:
        locale - An dictionary containing values for language, country, and variant. Country and variant are optional but the must adhere to the following rules:
        • If variant is specified, language and country are required;
        • Otherwise, if country is specified, language is required;
        • Otherwise, language is required.
        Throws:
        java.lang.IllegalArgumentException - if the given locale dictionary is null.
      • setLocale

        public void setLocale​(java.lang.String locale)
        Sets the locale used to present calendar data.
        Parameters:
        locale - A JSON map containing values for language, country, and variant.
        Throws:
        java.lang.IllegalArgumentException - if the locale string is null or if it cannot be parsed successfully.
        See Also:
        setLocale(Dictionary)
      • setDisabledDateFilter

        public void setDisabledDateFilter​(Filter<CalendarDate> disabledDateFilter)
      • getSelectedDateKey

        public java.lang.String getSelectedDateKey()
        Gets the data binding key that is set on this calendar.
        Returns:
        The current value of the selected date binding key.
      • setSelectedDateKey

        public void setSelectedDateKey​(java.lang.String selectedDateKey)
        Sets this calendar's data binding key.
        Parameters:
        selectedDateKey - The new key to use for binding to the selected date.
      • getSelectedDateBindType

        public BindType getSelectedDateBindType()
      • setSelectedDateBindType

        public void setSelectedDateBindType​(BindType selectedDateBindType)
      • load

        public void load​(java.lang.Object context)
        Description copied from class: Container
        Propagates binding to subcomponents.
        Overrides:
        load in class Container
        Parameters:
        context - The object we're binding to.
      • store

        public void store​(java.lang.Object context)
        Description copied from class: Container
        Propagates binding to subcomponents.
        Overrides:
        store in class Container
        Parameters:
        context - The object we're binding to.
      • clear

        public void clear()
        Description copied from class: Container
        Propagates clear operation to subcomponents.
        Overrides:
        clear in class Container