Class DefaultTimestampRenderer

All Implemented Interfaces:
GComponent, GColumnRenderer<Date>, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants, TableCellRenderer

public class DefaultTimestampRenderer extends AbstractGColumnRenderer<Date>
A renderer for clients that wish to display a Date as a timestamp with the date and time.
See Also:
  • Constructor Details

    • DefaultTimestampRenderer

      public DefaultTimestampRenderer()
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(GTableCellRenderingData data)
      Description copied from class: GTableCellRenderer
      Provide basic cell rendering -- setting foreground and background colors, font, text, alignment, drop color, and border. Additional data that may be of use to the renderer is passed through the GTableCellRenderingData object.
      Overrides:
      getTableCellRendererComponent in class GTableCellRenderer
      Parameters:
      data - Context data used in the rendering of a data cell.
      Returns:
      The component used for drawing the table cell.
    • getFilterString

      public String getFilterString(Date t, Settings settings)
      Description copied from interface: GColumnRenderer
      Returns a string that is suitable for use when filtering. The returned String should be an unformatted (e.g., no HTML markup, icons, etc) version of what is on the screen. If the String returned here does not match what the user sees (that which is rendered), then the filtering action may confuse the user.
      Parameters:
      t - the column type instance
      settings - any settings the converter may need to convert the type
      Returns:
      the unformatted String version of what is rendered in the table cell on screen
    • getColumnConstraintFilterMode

      public GColumnRenderer.ColumnConstraintFilterMode getColumnConstraintFilterMode()
      Description copied from interface: GColumnRenderer
      Returns the current mode of how column constraints will be used to filter this column

      This method is typically not overridden. This is only needed in rare cases, such as when a column uses a renderer, but does *not* want this column to be filtered using a String column constraint. Or, if a column uses a renderer and wants that text to be available as a filter, along with any other column constraints.

      Returns:
      the mode