本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.replaceWith()
方法的一些代码示例,展示了Fragment.replaceWith()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.replaceWith()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:replaceWith
暂无
代码示例来源:origin: de.alpharogroup/jaulp-wicket-components
/**
* Swap the fragments.
*/
private void swapFragments()
{
final Fragment fragment = view;
view.replaceWith(edit);
view = edit;
edit = fragment;
}
代码示例来源:origin: de.alpharogroup/jaulp.wicket.components
/**
* Swap the fragments.
*/
private void swapFragments()
{
final Fragment fragment = view;
view.replaceWith(edit);
view = edit;
edit = fragment;
}
代码示例来源:origin: theonedev/onedev
@Override
public void onClick(AjaxRequestTarget target) {
Fragment titleEditor = newTitleEditor();
titleViewer.replaceWith(titleEditor);
target.add(titleEditor);
}
代码示例来源:origin: theonedev/onedev
@Override
public void onClick(AjaxRequestTarget target) {
Fragment titleViewer = newTitleViewer();
titleEditor.replaceWith(titleViewer);
target.add(titleViewer);
}
代码示例来源:origin: theonedev/onedev
@Override
public void onClick(AjaxRequestTarget target) {
WebMarkupContainer addReplyContainer = newAddReplyContainer();
fragment.replaceWith(addReplyContainer);
target.add(addReplyContainer);
}
代码示例来源:origin: theonedev/onedev
@Override
public void onClick(AjaxRequestTarget target) {
fragment.replaceWith(new WebMarkupContainer(id).setVisible(false));
target.add(operationsContainer);
target.appendJavaScript("setTimeout(function() {$(window).resize();}, 0);");
}
代码示例来源:origin: theonedev/onedev
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
OneDev.getInstance(IssueChangeManager.class).changeTitle(getIssue(), titleInput.getModelObject(), SecurityUtils.getUser());
Fragment titleViewer = newTitleViewer();
titleEditor.replaceWith(titleViewer);
target.add(titleViewer);
}
代码示例来源:origin: theonedev/onedev
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
User user = SecurityUtils.getUser();
CodeComment comment = getComment();
Date date = new Date();
CodeCommentReply reply = new CodeCommentReply();
reply.setComment(comment);
reply.setDate(date);
reply.setUser(user);
reply.setContent(contentInput.getModelObject());
OneDev.getInstance(CodeCommentReplyManager.class).save(reply, getCompareContext(), getPullRequest());
WebMarkupContainer replyContainer = newReplyContainer(repliesView.newChildId(), reply);
repliesView.add(replyContainer);
String script = String.format("$('#%s .add-reply').before('<div id=\"%s\"></div>');",
CodeCommentPanel.this.getMarkupId(), replyContainer.getMarkupId());
target.prependJavaScript(script);
target.add(replyContainer);
WebMarkupContainer addReplyContainer = newAddReplyContainer();
fragment.replaceWith(addReplyContainer);
target.add(addReplyContainer);
}
代码示例来源:origin: theonedev/onedev
replyContainer.replaceWith(fragment);
target.add(fragment);
代码示例来源:origin: theonedev/onedev
viewer.replaceWith(editor);
target.add(editor);
内容来源于网络,如有侵权,请联系作者删除!