org.apache.wicket.markup.html.panel.Fragment.setOutputMarkupId()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中org.apache.wicket.markup.html.panel.Fragment.setOutputMarkupId()方法的一些代码示例,展示了Fragment.setOutputMarkupId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.setOutputMarkupId()方法的具体详情如下:
包路径:org.apache.wicket.markup.html.panel.Fragment
类名称:Fragment
方法名:setOutputMarkupId

Fragment.setOutputMarkupId介绍

暂无

代码示例

代码示例来源:origin: de.alpharogroup/jaulp-wicket-components

/**
 * Factory method for create a new {@link Fragment}.
 *
 * @param <T>
 *            the generic type
 * @param id
 *            the id
 * @param markupId
 *            The associated id of the associated markup fragment
 * @param markupProvider
 *            The component whose markup contains the fragment's markup
 * @param model
 *            The model for this {@link Fragment}
 * @return The new {@link Fragment}.
 */
public static <T> Fragment newFragment(final String id, final String markupId,
  final MarkupContainer markupProvider, final IModel<T> model)
{
  final Fragment fragment = new Fragment(id, markupId, markupProvider, model);
  fragment.setOutputMarkupId(true);
  return fragment;
}

代码示例来源:origin: de.alpharogroup/jaulp.wicket.components

/**
 * Factory method for create a new {@link Fragment}.
 *
 * @param <T>
 *            the generic type
 * @param id
 *            the id
 * @param markupId
 *            The associated id of the associated markup fragment
 * @param markupProvider
 *            The component whose markup contains the fragment's markup
 * @param model
 *            The model for this {@link Fragment}
 * @return The new {@link Fragment}.
 */
public static <T> Fragment newFragment(final String id, final String markupId,
  final MarkupContainer markupProvider, final IModel<T> model)
{
  final Fragment fragment = new Fragment(id, markupId, markupProvider, model);
  fragment.setOutputMarkupId(true);
  return fragment;
}

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);
cellItem.add(fragment);

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);
return fragment;

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);
return fragment;

代码示例来源:origin: theonedev/onedev

@Override
protected Component newContentComponent(String id, IModel<Symbol> nodeModel) {
  Symbol symbol = nodeModel.getObject();
  
  Fragment fragment = new Fragment(id, "outlineNodeFrag", SourceViewPanel.this);
  fragment.setMarkupId(getSymbolId(symbols, symbol));
  fragment.setOutputMarkupId(true);
  
  fragment.add(symbol.renderIcon("icon"));
  
  AjaxLink<Void> link = new ViewStateAwareAjaxLink<Void>("link") {
    @Override
    public void onClick(AjaxRequestTarget target) {
      context.onSelect(target, context.getBlobIdent(), symbol.getPosition());
    }
    
  };
  link.add(symbol.render("label", null));
  fragment.add(link);
  
  return fragment;
}

代码示例来源:origin: theonedev/onedev

@Override
protected Component newContentComponent(String id, IModel<Symbol> nodeModel) {
  Symbol symbol = nodeModel.getObject();
  
  Fragment fragment = new Fragment(id, "outlineSearchNodeFrag", SourceViewPanel.this);
  fragment.setOutputMarkupId(true);
  
  AjaxLink<Void> link = new ViewStateAwareAjaxLink<Void>("link") {
    @Override
    public void onClick(AjaxRequestTarget target) {
      modal.close();
      context.onSelect(target, context.getBlobIdent(), symbol.getPosition());
    }
    
  };
  link.add(symbol.renderIcon("icon"));
  link.add(symbol.render("label", null));
  link.add(AttributeAppender.append("data-symbolindex", symbols.indexOf(symbol)));
  
  fragment.add(link);
  
  if (symbol == symbols.get(0)) {
    link.add(AttributeAppender.append("class", "active"));
  }
  
  return fragment;
}

代码示例来源:origin: theonedev/onedev

@Override
protected void onSelect(AjaxRequestTarget target, Component tabLink) {
  Fragment fragment = new Fragment(TAB_CONTENT_ID, "commitsFrag", CardDetailPanel.this);
  fragment.add(new CommitListPanel("commits", new AbstractReadOnlyModel<Project>() {
    @Override
    public Project getObject() {
      return getIssue().getProject();
    }
    
  }, new AbstractReadOnlyModel<List<RevCommit>>() {
    @Override
    public List<RevCommit> getObject() {
      return getIssue().getCommits();
    }
    
  }));
  fragment.setOutputMarkupId(true);
  CardDetailPanel.this.replace(fragment);
  target.add(fragment);
}

代码示例来源:origin: apache/syncope

viewFragment.setOutputMarkupId(true);

代码示例来源:origin: apache/syncope

public void toggleWithContent(
    final AjaxRequestTarget target, final ActionsPanel<T> actionsPanel, final T modelObject) {
  updateHeader(target, modelObject);
  modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
    private static final long serialVersionUID = 8804221891699487139L;
    @Override
    public void onClose(final AjaxRequestTarget target) {
      modal.show(false);
    }
  });
  final Fragment frag = new Fragment("actions", "actionsFragment", this);
  frag.setOutputMarkupId(true);
  frag.add(actionsPanel);
  container.addOrReplace(frag);
  target.add(this.container);
  toggle(target, modelObject, true);
}

代码示例来源:origin: theonedev/onedev

@Override
public void onClick(AjaxRequestTarget target) {
  Fragment fragment = new Fragment("newProtection", "editNewFrag", getPage());
  fragment.setOutputMarkupId(true);
  fragment.add(new BranchProtectionEditor("editor", new BranchProtection()) {
    @Override
    protected void onSave(AjaxRequestTarget target, BranchProtection protection) {
      getProject().getBranchProtections().add(protection);
      OneDev.getInstance(ProjectManager.class).save(getProject(), null);
      container.replace(newAddNewFrag());
      target.add(container);
    }
    @Override
    protected void onCancel(AjaxRequestTarget target) {
      Component newAddNewFrag = newAddNewFrag();
      container.replace(newAddNewFrag);
      target.add(newAddNewFrag);
    }
    
  });
  container.replace(fragment);
  target.add(fragment);
}

代码示例来源:origin: theonedev/onedev

@Override
public void onClick(AjaxRequestTarget target) {
  Fragment fragment = new Fragment("newProtection", "editNewFrag", getPage());
  fragment.setOutputMarkupId(true);
  fragment.add(new TagProtectionEditor("editor", new TagProtection()) {
    @Override
    protected void onSave(AjaxRequestTarget target, TagProtection protection) {
      getProject().getTagProtections().add(protection);
      OneDev.getInstance(ProjectManager.class).save(getProject(), null);
      container.replace(newAddNewFrag());
      target.add(container);
    }
    @Override
    protected void onCancel(AjaxRequestTarget target) {
      Component newAddNewFrag = newAddNewFrag();
      container.replace(newAddNewFrag);
      target.add(newAddNewFrag);
    }
    
  });
  container.replace(fragment);
  target.add(fragment);
}

代码示例来源:origin: org.geoserver.community/gs-geogig

private Fragment createTableFragment(IModel<CacheManagerBean> model) {
  Fragment tableFragment = new Fragment("table", "tableFragment", this);
  tableFragment.setOutputMarkupId(true);
  add(tableFragment);

代码示例来源:origin: theonedev/onedev

titleViewer.add(new WebMarkupContainer("copy").add(new CopyClipboardBehavior(Model.of("#" + getIssue().getNumber() + ": " + getIssue().getTitle()))));
titleViewer.setOutputMarkupId(true);

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);
return fragment;

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);
IssueInfoPanel.this.replace(fragment);
target.add(fragment);

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);

代码示例来源:origin: theonedev/onedev

titleEditor.setOutputMarkupId(true);

代码示例来源:origin: theonedev/onedev

fragment.setOutputMarkupId(true);

相关文章