Class DatePicker.ShowDay

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    DatePicker

    public static class DatePicker.ShowDay
    extends Object
    implements Serializable
    This Class controls the visibility of a single day rectangle in the DatePicker popup and the ability to select this day and an optional text popup for a single day.
    See Also:
    Serialized Form
    • Constructor Detail

      • ShowDay

        public ShowDay​(Date date,
                       boolean selectable)
        If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false.
        Parameters:
        date - the day
        selectable - true if the day should be selectable and false if the day sould net be selectable.
      • ShowDay

        public ShowDay​(Date date,
                       boolean selectable,
                       String cssClass)
        If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false. The CSS class of the day can be controlled with parameter cssClass.
        Parameters:
        date - the day
        selectable - true if the day should be selectable and false if the day sould net be selectable.
        cssClass - regardless from selectable state of the day this CSS class is assigned to the day rectangle
      • ShowDay

        public ShowDay​(Date date,
                       boolean selectable,
                       String cssClass,
                       String tooltip)
        If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false. The CSS class of the day can be controlled with parameter cssClass.
        Parameters:
        date - the day
        selectable - true if the day should be selectable and false if the day sould net be selectable.
        cssClass - regardless from selectable state of the day this CSS class is assigned to the day rectangle
        tooltip - a tooltip text to be shon wehn the mouse is placed over the given day
    • Method Detail

      • getDate

        public Date getDate()
      • setDate

        public void setDate​(Date value)
      • isSelectable

        public boolean isSelectable()
      • setSelectable

        public void setSelectable​(boolean value)
      • getCssClass

        public String getCssClass()
      • setCssClass

        public void setCssClass​(String value)
      • getTooltip

        public String getTooltip()
      • setTooltip

        public void setTooltip​(String value)