final PAnchor checkBoxAnchor = new PAnchor("CheckBox");
checkBoxAnchor.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
goTo(new PagePlace("CheckBox"));
}
});
panel.add(checkBoxAnchor);
final PAnchor radioButtonAnchor = new PAnchor("RadioButton");
radioButtonAnchor.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
goTo(new PagePlace("Radio Button"));
}
});
panel.add(radioButtonAnchor);
final PAnchor basicButtonAnchor = new PAnchor("BasicButton");
basicButtonAnchor.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
goTo(new PagePlace("Basic Button"));
}
});
panel.add(basicButtonAnchor);
final PAnchor customButtonAnchor = new PAnchor("CustomButton");
customButtonAnchor.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
goTo(new PagePlace("Custom Button"));
}
});
panel.add(customButtonAnchor);
final PAnchor fileUpload = new PAnchor("FileUpload");
fileUpload.addClickHandler(new PClickHandler() {
@Override
public void onClick(final PClickEvent event) {
goTo(new PagePlace("File Upload"));
}
});
panel.add(fileUpload);
examplePanel.setWidget(panel);