Package org.fest.swing.format
Class ComponentFormatterTemplate
java.lang.Object
org.fest.swing.format.ComponentFormatterTemplate
- All Implemented Interfaces:
ComponentFormatter
- Direct Known Subclasses:
IntrospectionComponentFormatter,JComboBoxFormatter,JFileChooserFormatter,JListFormatter,JOptionPaneFormatter,JTabbedPaneFormatter,JTableFormatter,JTreeFormatter
Understands a template for implementations of
ComponentFormatter.-
Constructor Details
-
ComponentFormatterTemplate
public ComponentFormatterTemplate()
-
-
Method Details
-
format
Returns theStringrepresentation of the given.Component- Specified by:
formatin interfaceComponentFormatter- Parameters:
c- the givenComponent.- Returns:
- the
Stringrepresentation of the givenComponent. - Throws:
NullPointerException- if the givenComponentisnull.IllegalArgumentException- if the type of the givenComponentis not supported by this formatter.
-
doFormat
Returns theStringrepresentation of the given.Component- Parameters:
c- the givenComponent.- Returns:
- the
Stringrepresentation of the givenComponent.
-
validateTypeOf
-