protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);
HorizontalPanel hp = new HorizontalPanel();
hp.setSpacing(10);
Button btn = new Button("Basic");
btn.setToolTip(new ToolTipConfig("Information", "Prints the current document"));
hp.add(btn);
btn = new Button("Closable");
ToolTipConfig config = new ToolTipConfig();
config.setTitle("Information");
config.setText("Prints the current document");
config.setCloseable(true);
btn.setToolTip(config);
hp.add(btn);
btn = new Button("Mouse Tracking");
config = new ToolTipConfig();
config.setTitle("Information");
config.setText("Prints the current document");
config.setTrackMouse(true);
btn.setToolTip(config);
hp.add(btn);
btn = new Button("Anchor");
config = new ToolTipConfig();
config.setTitle("Information");
config.setText("Prints the current document");
config.setMouseOffset(new int[] {0, 0});
config.setAnchor("left");
btn.setToolTip(config);
hp.add(btn);
btn = new Button("Custom");
config = new ToolTipConfig();
config.setText("Prints the current document");
config.setTitle("Template Tip");
config.setMouseOffset(new int[] {0, 0});
config.setAnchor("left");
config.setTemplate(new Template(getTemplate(GWT.getHostPageBaseURL())));
config.setCloseable(true);
config.setMaxWidth(415);
btn.setToolTip(config);
hp.add(btn);
add(hp);
}