leftButton.setWidget(new Button(buttonName, clickHandler));
}
}
public void setRightButton(String buttonName) {
SimplePanel rightButton = ((SimplePanel)((FlowPanel)getWidget()).getWidget(2));
ClickHandler clickHandler = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
onRightButtonClick(event);
}
};
if (buttonName.toUpperCase().equals("NEXT")) {
rightButton.setWidget(new NextButton(buttonName, clickHandler));
}
else {
rightButton.setWidget(new Button(buttonName, clickHandler));
}
}