org.fest.swing.core
Interface ComponentPrinter

All Known Implementing Classes:
BasicComponentPrinter

public interface ComponentPrinter

Understands printing the String representation of Components to facilitate debugging.

Author:
Alex Ruiz

Method Summary
 void printComponents(PrintStream out)
          Prints all the components in the hierarchy.
 void printComponents(PrintStream out, Class<? extends Component> type)
          Prints only the components of the given type in the hierarchy.
 void printComponents(PrintStream out, Class<? extends Component> type, Container root)
          Prints all the components of the given type in the hierarchy under the given root.
 void printComponents(PrintStream out, ComponentMatcher matcher)
          Prints only the components that match the given search criteria in the hierarchy.
 void printComponents(PrintStream out, ComponentMatcher matcher, Container root)
          Prints all the components that match the given search criteria under the given root.
 void printComponents(PrintStream out, Container root)
          Prints all the components in the hierarchy under the given root.
 

Method Detail

printComponents

void printComponents(PrintStream out)
Prints all the components in the hierarchy.

Parameters:
out - the output stream where to print the components to.
Throws:
NullPointerException - if the output stream is null.
See Also:
Formatting.format(Component)

printComponents

void printComponents(PrintStream out,
                     Container root)
Prints all the components in the hierarchy under the given root.

Parameters:
out - the output stream where to print the components to.
root - the root used as the starting point of the search.
Throws:
NullPointerException - if the output stream is null.
See Also:
Formatting.format(Component)

printComponents

void printComponents(PrintStream out,
                     Class<? extends Component> type)
Prints only the components of the given type in the hierarchy.

Parameters:
out - the output stream where to print the components to.
type - the type of components to print.
Throws:
NullPointerException - if the output stream is null.
NullPointerException - if type is null.
See Also:
Formatting.format(Component)

printComponents

void printComponents(PrintStream out,
                     Class<? extends Component> type,
                     Container root)
Prints all the components of the given type in the hierarchy under the given root.

Parameters:
out - the output stream where to print the components to.
type - the type of components to print.
root - the root used as the starting point of the search.
Throws:
NullPointerException - if the output stream is null.
NullPointerException - if type is null.
See Also:
Formatting.format(Component)

printComponents

void printComponents(PrintStream out,
                     ComponentMatcher matcher)
Prints only the components that match the given search criteria in the hierarchy.

Parameters:
out - the output stream where to print the components to.
matcher - specifies the search criteria to use filter the components to print.
Throws:
NullPointerException - if the output stream is null.
NullPointerException - if matcher is null.
See Also:
Formatting.format(Component)

printComponents

void printComponents(PrintStream out,
                     ComponentMatcher matcher,
                     Container root)
Prints all the components that match the given search criteria under the given root.

Parameters:
out - the output stream where to print the components to.
matcher - specifies the search criteria to use filter the components to print.
root - the root used as the starting point of the search.
Throws:
NullPointerException - if the output stream is null.
NullPointerException - if matcher is null.
See Also:
Formatting.format(Component)


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