private ServerConfigView serverConfigEditor;
@Override
public Widget createWidget() {
DefaultTabLayoutPanel layout = new DefaultTabLayoutPanel(40, Style.Unit.PX);
layout.addStyleName("default-tabpanel");
panel = new PagedView();
sessionEditor = new MailSessionEditor(presenter);
serverConfigEditor = new ServerConfigView(
Console.MESSAGES.available("Mail Server"),
Console.CONSTANTS.subsys_mail_server_desc(),
presenter);
panel.addPage(Console.CONSTANTS.common_label_back(), sessionEditor.asWidget());
panel.addPage("Mail Server", serverConfigEditor.asWidget());
//panel.addPage("JMS Destinations", jmsEditor.asWidget()) ;
// default page
panel.showPage(0);
Widget panelWidget = panel.asWidget();
layout.add(panelWidget, "Mail");
layout.selectTab(0);
return layout;
}