Here are the examples of the java api class com.google.caja.demos.playground.client.ui.PlaygroundView taken from open source projects.
1. Playground#onModuleLoad()
Project: caja
File: Playground.java
File: Playground.java
public void onModuleLoad() { gui = new PlaygroundView(this); gui.setLoading(true); cajolingService.getBuildInfo(new AsyncCallback<String>() { public void onFailure(Throwable caught) { gui.setLoading(false); gui.addRuntimeMessage(caught.getMessage()); gui.setVersion("Unknown"); } public void onSuccess(String result) { gui.setLoading(false); gui.setVersion(result); } }); History.addValueChangeHandler(this); History.fireCurrentHistoryState(); }