Label draggableButton = new Label("open-draggable", "Open Modal Dialog");
draggableModal.addOpenerAttributesTo(draggableButton);
add(draggableModal, draggableButton,
new Code("draggable-code", Model.of("")));
DropDownButton dropDownButton = new DropDownButton("dropdown",
Model.of("open-on-hover")) {
@Override
protected List<AbstractLink> newSubMenuButtons(String buttonMarkupId) {
return Lists.<AbstractLink> newArrayList(
new MenuBookmarkablePageLink<Void>(
DatePickerPage.class, Model.of("DatePicker"))
.setIconType(GlyphIconType.time),
new MenuBookmarkablePageLink<Void>(IssuesPage.class,
Model.of("Github Issues"))
.setIconType(GlyphIconType.book),
new MenuBookmarkablePageLink<Void>(
ExtensionsPage.class, Model.of("Extensions"))
.setIconType(GlyphIconType.qrcode));
}
};
dropDownButton.add(new DropDownAutoOpen());
add(dropDownButton,
new Code("dropdown-code", Model
.of("dropDownButton.add(new DropDownAutoOpen());")));
addTour();