org.fest.swing.format
Class JListFormatter

java.lang.Object
  extended by org.fest.swing.format.ComponentFormatterTemplate
      extended by org.fest.swing.format.JListFormatter
All Implemented Interfaces:
ComponentFormatter

public class JListFormatter
extends ComponentFormatterTemplate

Understands a formatter for JLists.

Author:
Yvonne Wang

Constructor Summary
JListFormatter()
           
 
Method Summary
protected  String doFormat(Component c)
          Returns the String representation of the given Component, which should be a JList (or subclass.)
 Class<? extends Component> targetType()
          Indicates that this formatter supports JList only.
 
Methods inherited from class org.fest.swing.format.ComponentFormatterTemplate
format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JListFormatter

public JListFormatter()
Method Detail

doFormat

protected String doFormat(Component c)
Returns the String representation of the given Component, which should be a JList (or subclass.)

Specified by:
doFormat in class ComponentFormatterTemplate
Parameters:
c - the given Component.
Returns:
the String representation of the given JList.

targetType

public Class<? extends Component> targetType()
Indicates that this formatter supports JList only.

Returns:
JList.class.


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