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 theString
representation of the given
.Component
- Specified by:
format
in interfaceComponentFormatter
- Parameters:
c
- the givenComponent
.- Returns:
- the
String
representation of the givenComponent
. - Throws:
NullPointerException
- if the givenComponent
isnull
.IllegalArgumentException
- if the type of the givenComponent
is not supported by this formatter.
-
doFormat
Returns theString
representation of the given
.Component
- Parameters:
c
- the givenComponent
.- Returns:
- the
String
representation of the givenComponent
.
-
validateTypeOf
-