org.fest.swing.format
Class JTreeFormatter
java.lang.Object
org.fest.swing.format.ComponentFormatterTemplate
org.fest.swing.format.JTreeFormatter
- All Implemented Interfaces:
- ComponentFormatter
public class JTreeFormatter
- extends ComponentFormatterTemplate
Understands a formatter for JTree
s.
- Author:
- Alex Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTreeFormatter
public JTreeFormatter()
doFormat
protected String doFormat(Component c)
- Returns the
String
representation of the given Component
, which should be a
JTree
(or subclass.)
- Specified by:
doFormat
in class ComponentFormatterTemplate
- Parameters:
c
- the given Component
.
- Returns:
- the
String
representation of the given JTree
.
targetType
public Class<? extends Component> targetType()
- Indicates that this formatter supports
JTree
only.
- Returns:
JTree.class
.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.