Class EditorHierarchyPrinter
- java.lang.Object
-
- com.google.gwt.editor.client.EditorVisitor
-
- com.google.gwt.editor.client.testing.EditorHierarchyPrinter
-
public final class EditorHierarchyPrinter extends EditorVisitor
A utility class that creates a string representation of an Editor hierarchy for testing purposes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidendVisit(EditorContext<T> ctx)Exit an Editor.static java.lang.StringtoString(EditorDriver<?> driver)Produce a string representation of the Editor hierarchy being controlled bydriver.<T> booleanvisit(EditorContext<T> ctx)Receive an Editor.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(EditorDriver<?> driver)
Produce a string representation of the Editor hierarchy being controlled bydriver.
-
endVisit
public <T> void endVisit(EditorContext<T> ctx)
Description copied from class:EditorVisitorExit an Editor. The default implementation is a no-op.- Overrides:
endVisitin classEditorVisitor- Parameters:
ctx- contextual data about the current Editor
-
visit
public <T> boolean visit(EditorContext<T> ctx)
Description copied from class:EditorVisitorReceive an Editor. The default implementation always returnstrue.- Overrides:
visitin classEditorVisitor- Parameters:
ctx- contextual data about the current Editor- Returns:
trueif the visitor should visit any sub-editors of the current editor.
-
-