Package org.fest.swing.format
Class JComboBoxFormatter
java.lang.Object
org.fest.swing.format.ComponentFormatterTemplate
org.fest.swing.format.JComboBoxFormatter
- All Implemented Interfaces:
ComponentFormatter
Understands a formatter for
JComboBoxes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object[]contentsOf(JComboBox comboBox) protected StringIndicates that this formatter supportsonly.JComboBoxMethods inherited from class org.fest.swing.format.ComponentFormatterTemplate
format
-
Constructor Details
-
JComboBoxFormatter
public JComboBoxFormatter()
-
-
Method Details
-
doFormat
Returns theStringrepresentation of the given, which should be aComponent(or subclass.)JComboBox- Specified by:
doFormatin classComponentFormatterTemplate- Parameters:
c- the givenComponent.- Returns:
- the
Stringrepresentation of the givenJComboBox.
-
contentsOf
-
targetType
Indicates that this formatter supportsonly.JComboBox- Returns:
JComboBox.class.
-