Class Dumper
java.lang.Object
org.netbeans.jemmy.util.Dumper
Allows to "dump" current GUI state into XML file.
Uses operators' getDump methods to gather the information.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddumpAll(PrintStream writer) Prints all component hierarchy (GUI dump).static voiddumpAll(PrintStream writer, DumpController listener) static voiddumpAll(PrintWriter writer) Prints all component hierarchy (GUI dump).static voiddumpAll(PrintWriter writer, DumpController listener) static voidPrints component hierarchy (GUI dump) into file.static voiddumpAll(String fileName, DumpController listener) static voiddumpComponent(Component comp, PrintStream writer) Prints component hierarchy (GUI dump).static voiddumpComponent(Component comp, PrintStream writer, DumpController listener) static voiddumpComponent(Component comp, PrintWriter writer) static voiddumpComponent(Component comp, PrintWriter writer, DumpController listener) Prints component hierarchy (GUI dump) starting fromcompcomponent.static voiddumpComponent(Component comp, String fileName) Prints component hierarchy (GUI dump) into file.static voiddumpComponent(Component comp, String fileName, DumpController listener) static Stringstatic voidprintDTD(PrintStream writer) Prints XML DTD information.static voidprintDTD(PrintWriter writer) Prints XML DTD information.static voidPrints XML DTD information into file.
-
Constructor Details
-
Dumper
public Dumper()
-
-
Method Details
-
printDTD
Prints XML DTD information.- Parameters:
writer- a writer to write to.
-
printDTD
Prints XML DTD information.- Parameters:
writer- a stream to write to.
-
printDTD
Prints XML DTD information into file.- Parameters:
fileName- a file to write to.- Throws:
FileNotFoundException
-
dumpComponent
Prints component hierarchy (GUI dump) starting fromcompcomponent.- Parameters:
comp- a component to get information from.writer- a writer to write to.
-
dumpComponent
-
dumpComponent
Prints component hierarchy (GUI dump). starting fromcompcomponent.- Parameters:
comp- a component to get information from.writer- a stream to write to.
-
dumpComponent
-
dumpComponent
Prints component hierarchy (GUI dump) into file.- Parameters:
comp- a component to get information from.fileName- a file to write to.- Throws:
FileNotFoundException
-
dumpComponent
public static void dumpComponent(Component comp, String fileName, DumpController listener) throws FileNotFoundException - Throws:
FileNotFoundException
-
dumpAll
Prints all component hierarchy (GUI dump).- Parameters:
writer- a writer to write to.
-
dumpAll
-
dumpAll
Prints all component hierarchy (GUI dump).- Parameters:
writer- a stream to write to.
-
dumpAll
-
dumpAll
Prints component hierarchy (GUI dump) into file.- Parameters:
fileName- a file to write to.- Throws:
FileNotFoundException
-
dumpAll
- Throws:
FileNotFoundException
-
escape
-