final ListBox pageListBox = new ListBox();
DOM.setStyleAttribute(pageListBox.getElement(), "marginTop", "10px");
for(int i = 0, len = deck.getWidgetCount(); i < len; i++)
pageListBox.addItem("Page " + i);
if(pageListBox.getItemCount() > 0) {
VkDesignerUtil.showAddWidgetsDialog("Choose associated widget", new IMultipleWidgetDialogCallback() {
@Override
public void save() {
Widget widget = VkStateHelper.getInstance().getEngine().addWidget(widgetListBox.getItemText(widgetListBox.getSelectedIndex()), VkMainDrawingPanel.getInstance());
if(widget instanceof HasVkText)
((HasVkText) widget).setText(pageListBox.getItemText(pageListBox.getSelectedIndex()));