Interface ComponentFormatter

All Known Implementing Classes:
ComponentFormatterTemplate, IntrospectionComponentFormatter, JComboBoxFormatter, JFileChooserFormatter, JListFormatter, JOptionPaneFormatter, JTabbedPaneFormatter, JTableFormatter, JTreeFormatter

public interface ComponentFormatter
Understands a formatter that returns a String representation of a given Component.
  • Method Details

    • format

      String format(Component c)
      Returns a String representation of the given Component.
      Parameters:
      c - the given Component.
      Returns:
      a String representation of the given Component.
    • targetType

      Class<? extends Component> targetType()
      Returns the type of Component this formatter supports.
      Returns:
      the type of Component this formatter supports.