org.fest.swing.format
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.

Author:
Alex Ruiz

Method Summary
 String format(Component c)
          Returns a String representation of the given Component.
 Class<? extends Component> targetType()
          Returns the type of Component this formatter supports.
 

Method Detail

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.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.