|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.core.BasicComponentPrinter
public final class BasicComponentPrinter
Understands printing the String representation of s to
facilitate debugging.
Component
| Constructor Summary | |
|---|---|
protected |
BasicComponentPrinter(ComponentHierarchy hierarchy)
Creates a new . |
| Method Summary | |
|---|---|
protected ComponentHierarchy |
hierarchy()
Returns the component hierarchy used by this printer. |
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. |
static ComponentPrinter |
printerWithCurrentAwtHierarchy()
Creates a new that has access to all the GUI components in the AWT
hierarchy. |
static ComponentPrinter |
printerWithNewAwtHierarchy()
Creates a new with a new AWT hierarchy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BasicComponentPrinter(ComponentHierarchy hierarchy)
BasicComponentPrinter.
hierarchy - the component hierarchy to use.| Method Detail |
|---|
public static ComponentPrinter printerWithNewAwtHierarchy()
BasicComponentPrinter with a new AWT hierarchy. Components
created before the created BasicComponentPrinter cannot be accessed by the created
BasicComponentPrinter.
public static ComponentPrinter printerWithCurrentAwtHierarchy()
BasicComponentPrinter that has access to all the GUI components in the AWT
hierarchy.
protected final ComponentHierarchy hierarchy()
@RunsInEDT public void printComponents(PrintStream out)
printComponents in interface ComponentPrinterout - the output stream where to print the components to.Formatting.format(Component)
@RunsInEDT
public void printComponents(PrintStream out,
Container root)
printComponents in interface ComponentPrinterout - the output stream where to print the components to.root - the root used as the starting point of the search.Formatting.format(Component)
@RunsInEDT
public void printComponents(PrintStream out,
Class<? extends Component> type)
printComponents in interface ComponentPrinterout - the output stream where to print the components to.type - the type of components to print.Formatting.format(Component)
@RunsInEDT
public void printComponents(PrintStream out,
Class<? extends Component> type,
Container root)
printComponents in interface ComponentPrinterout - 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.Formatting.format(Component)
public void printComponents(PrintStream out,
ComponentMatcher matcher)
printComponents in interface ComponentPrinterout - the output stream where to print the components to.matcher - specifies the search criteria to use filter the components to print.Formatting.format(Component)
public void printComponents(PrintStream out,
ComponentMatcher matcher,
Container root)
printComponents in interface ComponentPrinterout - 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.Formatting.format(Component)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||