Hello,
Using Smart GWT 3.1p and GWT 2.5.1
How do I set the controls for a tab so that the controls (buttons) are side by side. So far I can only get them vertically stacked which is not what I wanted.
Below is what I tried,
Thanks,
Evan
private void addCustomControls() {
ButtonItem bPrint = new ButtonItem("Print");
ClickHandler clickHandlerPrint = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say("TODO handle Print");
}
};
bPrint.addClickHandler(clickHandlerPrint);
ButtonItem bPDF = new ButtonItem("PDF");
ClickHandler clickHandlerPDF = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say("TODO handle PDF");
}
};
bPDF.addClickHandler(clickHandlerPDF);
DynamicForm form = new DynamicForm();
form.setPadding(0);
form.setMargin(0);
form.setCellPadding(3);
form.setNumCols(1);
form.setFields(bPrint, bPDF);
this.setTabBarControls(TabBarControls.TAB_SCROLLER, TabBarControls.TAB_PICKER, form);
}
Using Smart GWT 3.1p and GWT 2.5.1
How do I set the controls for a tab so that the controls (buttons) are side by side. So far I can only get them vertically stacked which is not what I wanted.
Below is what I tried,
Thanks,
Evan
private void addCustomControls() {
ButtonItem bPrint = new ButtonItem("Print");
ClickHandler clickHandlerPrint = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say("TODO handle Print");
}
};
bPrint.addClickHandler(clickHandlerPrint);
ButtonItem bPDF = new ButtonItem("PDF");
ClickHandler clickHandlerPDF = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
SC.say("TODO handle PDF");
}
};
bPDF.addClickHandler(clickHandlerPDF);
DynamicForm form = new DynamicForm();
form.setPadding(0);
form.setMargin(0);
form.setCellPadding(3);
form.setNumCols(1);
form.setFields(bPrint, bPDF);
this.setTabBarControls(TabBarControls.TAB_SCROLLER, TabBarControls.TAB_PICKER, form);
}
Comment