private DivertList divertList;
@Override
public Widget createWidget() {
LayoutPanel layout = new LayoutPanel();
FakeTabPanel titleBar = new FakeTabPanel("Messaging Destinations");
layout.add(titleBar);
panel = new PagedView();
providerList = new ProviderList(presenter, NameTokens.MessagingPresenter);
jmsEditor = new JMSEditor(presenter);
connectionFactories = new ConnectionFactoryList(presenter);
securitySettings = new SecurityDetails(presenter);
addressingSettings = new AddressingDetails(presenter);
divertList = new DivertList(presenter);
panel.addPage(Console.CONSTANTS.common_label_back(), providerList.asWidget());
panel.addPage("Queues/Topics", jmsEditor.asWidget()) ;
panel.addPage("Connection Factories", connectionFactories.asWidget()) ;
panel.addPage("Security Settings", securitySettings.asWidget()) ;
panel.addPage("Address Settings", addressingSettings.asWidget()) ;
panel.addPage("Diverts", divertList.asWidget()) ;
// default page
panel.showPage(0);
Widget panelWidget = panel.asWidget();
layout.add(panelWidget);
layout.setWidgetTopHeight(titleBar, 0, Style.Unit.PX, 40, Style.Unit.PX);
layout.setWidgetTopHeight(panelWidget, 40, Style.Unit.PX, 100, Style.Unit.PCT);
return layout;
}