Class LongRenderer

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

public class LongRenderer extends AbstractGColumnRenderer<Object>
See Also:
  • Constructor Details

    • LongRenderer

      public LongRenderer()
  • 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.
    • getText

      protected String getText(Object value)
      Description copied from class: GTableCellRenderer
      Return the cell renderer text
      Overrides:
      getText in class GTableCellRenderer
      Parameters:
      value - Cell object value
      Returns:
      A string interpretation of value; generated by calling value.toString()
    • formatNumber

      protected String formatNumber(Number value, Settings settings)
      Description copied from class: GTableCellRenderer
      Format a Number per the Settings parameters.
      Overrides:
      formatNumber in class GTableCellRenderer
      Parameters:
      value - the number to format
      settings - settings controlling the display of the Number parameter
      Returns:
      a formatted representation of the Number value
    • getFilterString

      public String getFilterString(Object 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