Class JTableFormatter

All Implemented Interfaces:
ComponentFormatter

public class JTableFormatter extends ComponentFormatterTemplate
Understands a formatter for JTables.
  • Constructor Details

    • JTableFormatter

      public JTableFormatter()
  • Method Details

    • doFormat

      protected String doFormat(Component c)
      Returns the String representation of the given Component, which should be a JTable (or subclass.)
      Specified by:
      doFormat in class ComponentFormatterTemplate
      Parameters:
      c - the given Component.
      Returns:
      the String representation of the given JTable.
    • targetType

      public Class<? extends Component> targetType()
      Indicates that this formatter supports JTable only.
      Returns:
      JTable.class.