Class TableViewDateCellRenderer

    • Constructor Detail

      • TableViewDateCellRenderer

        public TableViewDateCellRenderer()
    • Method Detail

      • getDateFormat

        public java.text.DateFormat getDateFormat()
      • setDateFormat

        public void setDateFormat​(java.text.DateFormat dateFormat)
      • setDateFormat

        public void setDateFormat​(java.lang.String dateFormat)
        Sets the date format to the given pattern string.
        Parameters:
        dateFormat - A pattern string for use with SimpleDateFormat.
        See Also:
        setDateFormat(DateFormat)
      • toString

        public java.lang.String toString​(java.lang.Object row,
                                         java.lang.String columnName)
        Description copied from interface: TableView.CellRenderer
        Converts table view cell data to a string representation.
        Specified by:
        toString in interface TableView.CellRenderer
        Overrides:
        toString in class TableViewCellRenderer
        Parameters:
        row - The row object.
        columnName - The name of the column.
        Returns:
        The cell data's string representation, or null if the data does not have a string representation.

        Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.