Class CalendarControl.DayRepresentationStrategy

  • All Implemented Interfaces:
    Table.CellRepresentationStrategy<java.util.Date>
    Enclosing class:
    CalendarControl

    protected class CalendarControl.DayRepresentationStrategy
    extends java.lang.Object
    implements Table.CellRepresentationStrategy<java.util.Date>
    A cell representation strategy for calendar days. A link will be generated using the day of the month as its label. The message's ID will be in the form "tableID.timeabsoluteTimeHex".
    Author:
    Garret Wilson
    See Also:
    Link
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <C extends java.util.Date>
      Component
      createComponent​(Table table, TableModel model, int rowIndex, TableColumnModel<C> column, boolean editable, boolean selected, boolean focused)
      Creates a component to represent the given cell.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DayRepresentationStrategy

        protected DayRepresentationStrategy()
    • Method Detail

      • createComponent

        public <C extends java.util.Date> Component createComponent​(Table table,
                                                                    TableModel model,
                                                                    int rowIndex,
                                                                    TableColumnModel<C> column,
                                                                    boolean editable,
                                                                    boolean selected,
                                                                    boolean focused)
        Description copied from interface: Table.CellRepresentationStrategy
        Creates a component to represent the given cell.
        Specified by:
        createComponent in interface Table.CellRepresentationStrategy<java.util.Date>
        Type Parameters:
        C - The type of value contained in the column.
        Parameters:
        table - The component containing the model.
        model - The model containing the value.
        rowIndex - The zero-based row index of the value.
        column - The column of the value.
        editable - Whether values in this column are editable.
        selected - true if the value is selected.
        focused - true if the value has the focus.
        Returns:
        A new component to represent the given value.