public interface ComponentPrinter
String
representation of AWT and Swing Component
s to a java.io.PrintStream
, to
facilitate debugging.Modifier and Type | Method and Description |
---|---|
void |
printComponents(PrintStream out)
Prints all the AWT and Swing
Component s in the hierarchy. |
void |
printComponents(PrintStream out,
Class<? extends Component> type)
Prints only the AWT and Swing
Component s of the given type in the hierarchy. |
void |
printComponents(PrintStream out,
Class<? extends Component> type,
Container root)
Prints all the AWT and Swing
Component s of the given type in the hierarchy under the given root. |
void |
printComponents(PrintStream out,
ComponentMatcher matcher)
Prints only the AWT and Swing
Component s that match the given search criteria in the hierarchy. |
void |
printComponents(PrintStream out,
ComponentMatcher matcher,
Container root)
Prints all the AWT and Swing
Component s that match the given search criteria under the given root. |
void |
printComponents(PrintStream out,
Container root)
Prints all the AWT and Swing
Component s in the hierarchy under the given root. |
void printComponents(@Nonnull PrintStream out)
Component
s in the hierarchy.out
- the output stream where to print the Component
s to.NullPointerException
- if the output stream is null
.Formatting.format(Component)
void printComponents(@Nonnull PrintStream out, @Nullable Container root)
Component
s in the hierarchy under the given root.out
- the output stream where to print the Component
s to.root
- the root used as the starting point of the search.NullPointerException
- if the output stream is null
.Formatting.format(Component)
void printComponents(@Nonnull PrintStream out, @Nonnull Class<? extends Component> type)
Component
s of the given type in the hierarchy.out
- the output stream where to print the Component
s to.type
- the type of Component
s to print.NullPointerException
- if the output stream is null
.NullPointerException
- if type
is null
.Formatting.format(Component)
void printComponents(@Nonnull PrintStream out, @Nonnull Class<? extends Component> type, @Nullable Container root)
Component
s of the given type in the hierarchy under the given root.out
- the output stream where to print the Component
s to.type
- the type of Component
s to print.root
- the root used as the starting point of the search.NullPointerException
- if the output stream is null
.NullPointerException
- if type
is null
.Formatting.format(Component)
void printComponents(@Nonnull PrintStream out, @Nonnull ComponentMatcher matcher)
Component
s that match the given search criteria in the hierarchy.out
- the output stream where to print the Component
s to.matcher
- specifies the search criteria to use filter the Component
s to print.NullPointerException
- if the output stream is null
.NullPointerException
- if matcher
is null
.Formatting.format(Component)
void printComponents(@Nonnull PrintStream out, @Nonnull ComponentMatcher matcher, @Nullable Container root)
Component
s that match the given search criteria under the given root.out
- the output stream where to print the Component
s to.matcher
- specifies the search criteria to use filter the Component
s to print.root
- the root used as the starting point of the search.NullPointerException
- if the output stream is null
.NullPointerException
- if matcher
is null
.Formatting.format(Component)
Copyright © 2014–2020 AssertJ. All rights reserved.