Example usage for com.google.gwt.editor.client EditorDriver accept

List of usage examples for com.google.gwt.editor.client EditorDriver accept

Introduction

In this page you can find the example usage for com.google.gwt.editor.client EditorDriver accept.

Prototype

void accept(EditorVisitor visitor);

Source Link

Document

Visit the Editor hierarchy controlled by the EditorDriver.

Usage

From source file:com.google.gwt.editor.client.testing.EditorHierarchyPrinter.java

License:Apache License

/**
 * Produce a string representation of the Editor hierarchy being controlled by
 * {@code driver}.//w  w  w. ja v a  2s. c  o  m
 */
public static String toString(EditorDriver<?> driver) {
    StringBuilder sb = new StringBuilder();
    driver.accept(new EditorHierarchyPrinter(sb));
    return sb.toString();
}