org.fest.swing.format
Class JOptionPaneFormatter

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

public class JOptionPaneFormatter
extends ComponentFormatterTemplate

Understands a formatter for JOptionPanes.

Author:
Alex Ruiz

Constructor Summary
JOptionPaneFormatter()
           
 
Method Summary
protected  String doFormat(Component c)
          Returns the String representation of the given Component, which should be a JOptionPane (or subclass.)
 Class<? extends Component> targetType()
          Indicates that this formatter supports JOptionPane 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

JOptionPaneFormatter

public JOptionPaneFormatter()
Method Detail

doFormat

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

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

targetType

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

Returns:
JOptionPane.class.


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