Class TimeZoneHeaderRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, TableCellRenderer

public class TimeZoneHeaderRenderer extends MleHeadRenderer
See Also:
  • Constructor Details

    • TimeZoneHeaderRenderer

      public TimeZoneHeaderRenderer()
      Constructor for the TimeZoneHeaderRenderer object
    • TimeZoneHeaderRenderer

      public TimeZoneHeaderRenderer(TimeZone tz)
  • Method Details

    • setTimeZone

      public void setTimeZone(TimeZone tz)
      Sets the time zone value that will be rendered in the column header.
      Parameters:
      tz - The new TimeZone value
    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      This method is responsible for taking and object value from the table and returning a component that will draw the given object.
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
      Overrides:
      getTableCellRendererComponent in class MleHeadRenderer
      Parameters:
      table - The table that will draw the component
      value - The data value to render
      isSelected - describes if the cell the will display this component is selected
      hasFocus - describes if the cell the will display this component has focus
      row - the row number for the cell
      column - The column number for the cell
      Returns:
      The component that will draw the object.