Documentation of 'org.jdesktop.swingx.plaf.basic.DemoCalendarRenderingHandler' Java class
DemoCalendarRenderingHandler
org.jdesktop.swingx.plaf.basic

Class DemoCalendarRenderingHandler

  • All Implemented Interfaces:
    CalendarRenderingHandler


    public class DemoCalendarRenderingHandler
    extends java.lang.Object
    An example of a custom CalendarRenderingHandler. As of laziness (mine :-) this extends the BasicXX to widen access and provide hooks to add Highlighters.
    • Constructor Detail

      • DemoCalendarRenderingHandler

        public DemoCalendarRenderingHandler()
    • Method Detail

      • setHighlighters

        public void setHighlighters(Highlighter... highlighters)
        Sets the Highlighters to the table, replacing any old settings. None of the given Highlighters must be null.

        Parameters:
        highlighters - zero or more not null highlighters to use for renderer decoration.
        Throws:
        java.lang.NullPointerException - if array is null or array contains null values.
      • addHighlighters

        public void addHighlighters(Highlighter... highlighters)
        Appends the Highlighters to the end of the list of used Highlighters. None of the given Highlighters must be null.

        Parameters:
        highlighters - zero or more not null highlighters to use for renderer decoration.
        Throws:
        java.lang.NullPointerException - if array is null or array contains null values.
      • prepareRenderingComponent

        public javax.swing.JComponent prepareRenderingComponent(JXMonthView monthView,
                                                                java.util.Calendar calendar,
                                                                CalendarState dayState)
        Overridden to apply the additional highlighters, if any.
        Specified by:
        prepareRenderingComponent in interface CalendarRenderingHandler
        Parameters:
        monthView - the JXMonthView to render onto
        calendar - the cell value
        dayState - the DayState of the cell
        Returns:
        a component configured for rendering the given cell
      • setLocale

        public void setLocale(java.util.Locale locale)
        Updates internal state to the given Locale.
        Specified by:
        setLocale in interface CalendarRenderingHandler
        Parameters:
        locale - the new Locale.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.