Java Code Examples for org.apache.wicket.markup.html.link.Link#setPopupSettings()
The following examples show how to use
org.apache.wicket.markup.html.link.Link#setPopupSettings() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WidgetPopupMenuModel.java From nextreports-server with Apache License 2.0 | 6 votes |
private Link createDetachLink(final IModel<Widget> model) { Link<Void> link = new Link<Void>(MenuPanel.LINK_ID) { private static final long serialVersionUID = 1L; @Override public void onClick() { setResponsePage(new WidgetZoomPage(model.getObject().getId())); } }; // see busy-indicator.js // we do not want a busy indicator in this situation link.add(new AttributeAppender("class", new Model<String>("noBusyIndicator"), " ")); PopupSettings popupSettings = new PopupSettings(PopupSettings.RESIZABLE | PopupSettings.SCROLLBARS); popupSettings.setWidth(POPUP_WIDTH).setHeight(POPUP_HEIGHT); link.setPopupSettings(popupSettings); return link; }