本文整理匯總了Java中org.apache.wicket.markup.html.link.Link.setPopupSettings方法的典型用法代碼示例。如果您正苦於以下問題:Java Link.setPopupSettings方法的具體用法?Java Link.setPopupSettings怎麽用?Java Link.setPopupSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.wicket.markup.html.link.Link
的用法示例。
在下文中一共展示了Link.setPopupSettings方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createDetachLink
import org.apache.wicket.markup.html.link.Link; //導入方法依賴的package包/類
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;
}
示例2: toPopup
import org.apache.wicket.markup.html.link.Link; //導入方法依賴的package包/類
public static void toPopup(Link<?> link) {
if (link != null) {
link.setPopupSettings(getPopupSettingsForWindowOpen());
}
}