Class CalendarMonthTableModel.WeekDayTableColumnModel

  • All Implemented Interfaces:
    com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, InfoModel, LabelModel, Model, TableColumnModel<java.util.Date>
    Enclosing class:
    CalendarMonthTableModel

    public class CalendarMonthTableModel.WeekDayTableColumnModel
    extends DefaultTableColumnModel<java.util.Date>
    A day-of-week column in a calendar month table. Each cell contains a Date value.
    Author:
    Garret Wilson
    • Constructor Detail

      • WeekDayTableColumnModel

        public WeekDayTableColumnModel​(int index)
        Day-of-week constructor.
        Parameters:
        index - The physical index of the day of the week relative to the first day of the week.
        Throws:
        java.lang.IllegalArgumentException - if the given index is less than zero, or greater than or equal to the number of days in a week.
    • Method Detail

      • getIndex

        public int getIndex()
        Returns:
        The physical index of the day of the week relative to the first day of the week.
      • getLabel

        public java.lang.String getLabel()

        This version returns a representation of the day of the week if no label is specified.

        Specified by:
        getLabel in interface LabelModel
        Overrides:
        getLabel in class DefaultLabelModel
        Returns:
        The label text, which may include a resource reference, or null if there is no label text.