Class TerraCalendarSkin

    • Constructor Detail

      • TerraCalendarSkin

        public TerraCalendarSkin()
    • Method Detail

      • install

        public void install​(Component component)
        Description copied from class: ComponentSkin
        Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.
        Specified by:
        install in interface Skin
        Overrides:
        install in class CalendarSkin
        Parameters:
        component - The component to which the skin is being attached.
      • getPreferredWidth

        public int getPreferredWidth​(int height)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred width given the provided height constraint.
        Specified by:
        getPreferredWidth in interface ConstrainedVisual
        Overrides:
        getPreferredWidth in class ContainerSkin
        Parameters:
        height - The height by which to constrain the preferred width, or -1 for no constraint.
        Returns:
        The preferred width given the height constraint.
      • getPreferredHeight

        public int getPreferredHeight​(int width)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred height given the provided width constraint.
        Specified by:
        getPreferredHeight in interface ConstrainedVisual
        Overrides:
        getPreferredHeight in class ContainerSkin
        Parameters:
        width - The width by which to constrain the preferred height, or -1 for no constraint.
        Returns:
        The preferred height given the width constraint.
      • getBaseline

        public int getBaseline​(int width,
                               int height)
        Description copied from class: ComponentSkin
        Should be implemented in every subclass.

        The default implementation here simply returns -1 (no baseline).

        Specified by:
        getBaseline in interface ConstrainedVisual
        Overrides:
        getBaseline in class ComponentSkin
        Parameters:
        width - Constrained width to compute the baseline for.
        height - Constrained height to compute the baseline for.
        Returns:
        The baseline relative to the origin of this visual, or -1 if this visual does not have a baseline.
      • layout

        public void layout()
        Description copied from interface: Skin
        If the component on which the skin is installed is a container, lays out the container's children.
      • paint

        public void paint​(java.awt.Graphics2D graphics)
        Description copied from interface: Visual
        Paints the visual.
        Specified by:
        paint in interface Visual
        Overrides:
        paint in class ContainerSkin
        Parameters:
        graphics - The graphics context in which to paint the visual.
      • getFont

        public java.awt.Font getFont()
      • setFont

        public void setFont​(java.awt.Font font)
      • setFont

        public final void setFont​(java.lang.String font)
      • setFont

        public final void setFont​(Dictionary<java.lang.String,​?> font)
      • getColor

        public java.awt.Color getColor()
      • setColor

        public void setColor​(java.awt.Color color)
      • setColor

        public final void setColor​(java.lang.String color)
      • getDisabledColor

        public java.awt.Color getDisabledColor()
      • setDisabledColor

        public void setDisabledColor​(java.awt.Color disabledColor)
      • setDisabledColor

        public final void setDisabledColor​(java.lang.String disabledColor)
      • getSelectionColor

        public java.awt.Color getSelectionColor()
      • setSelectionColor

        public void setSelectionColor​(java.awt.Color selectionColor)
      • setSelectionColor

        public final void setSelectionColor​(java.lang.String selectionColor)
      • getSelectionBackgroundColor

        public java.awt.Color getSelectionBackgroundColor()
      • setSelectionBackgroundColor

        public void setSelectionBackgroundColor​(java.awt.Color selectionBackgroundColor)
      • setSelectionBackgroundColor

        public final void setSelectionBackgroundColor​(java.lang.String selectionBackgroundColor)
      • getHighlightColor

        public java.awt.Color getHighlightColor()
      • setHighlightColor

        public void setHighlightColor​(java.awt.Color highlightColor)
      • setHighlightColor

        public final void setHighlightColor​(java.lang.String highlightColor)
      • getHighlightBackgroundColor

        public java.awt.Color getHighlightBackgroundColor()
      • setHighlightBackgroundColor

        public void setHighlightBackgroundColor​(java.awt.Color highlightBackgroundColor)
      • setHighlightBackgroundColor

        public final void setHighlightBackgroundColor​(java.lang.String highlightBackgroundColor)
      • getDividerColor

        public java.awt.Color getDividerColor()
      • setDividerColor

        public void setDividerColor​(java.awt.Color dividerColor)
      • setDividerColor

        public final void setDividerColor​(java.lang.String dividerColor)
      • getPadding

        public int getPadding()
      • setPadding

        public void setPadding​(int padding)
      • setPadding

        public final void setPadding​(java.lang.Number padding)
      • yearChanged

        public void yearChanged​(Calendar calendar,
                                int previousYear)
        Description copied from interface: CalendarListener
        Called when a calendar's year value has changed.
        Parameters:
        calendar - The calendar that changed.
        previousYear - The previously selected year.
      • monthChanged

        public void monthChanged​(Calendar calendar,
                                 int previousMonth)
        Description copied from interface: CalendarListener
        Called when a calendar's month value has changed.
        Parameters:
        calendar - The calendar that changed.
        previousMonth - The previously selected month value.
      • localeChanged

        public void localeChanged​(Calendar calendar,
                                  java.util.Locale previousLocale)
        Description copied from interface: CalendarListener
        Called when a calendar's locale has changed.
        Parameters:
        calendar - The calendar that changed.
        previousLocale - The previously selected locale for the calendar.
      • disabledDateFilterChanged

        public void disabledDateFilterChanged​(Calendar calendar,
                                              Filter<CalendarDate> previousDisabledDateFilter)
        Description copied from interface: CalendarListener
        Called when a calendar's disabled date filter has changed.
        Parameters:
        calendar - The calendar that changed.
        previousDisabledDateFilter - The previous disabled date filter.
      • selectedDateChanged

        public void selectedDateChanged​(Calendar calendar,
                                        CalendarDate previousSelectedDate)
        Description copied from interface: CalendarSelectionListener
        Called when a calendar's selected date has changed.
        Parameters:
        calendar - The calendar that changed.
        previousSelectedDate - The previously selected date in the calendar.