org.apache.wicket.markup.html.list.ListView.setModel()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(165)

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

ListView.setModel介绍

[英]Sets the model and removes all current children, so that the next render will be using the contents of the model.
[中]设置模型并删除所有当前子对象,以便下一次渲染将使用模型的内容。

代码示例

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * Sets the model as the provided list and removes all children, so that the next render will be
 * using the contents of the model.
 * 
 * @param list
 *            The list for the new model. The list must implement {@link Serializable}.
 * @return This for chaining
 */
public Component setList(List list)
{
  return setModel(new Model((Serializable)list));
}

代码示例来源:origin: inception-project/inception

learningHistory.setModel(learningRecords);
return learningHistory;

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-active-learning

learningHistory.setModel(learningRecords);
return learningHistory;

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-app-ui-search

statementList.setModel(aModel);
add(statementList);

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-search

statementList.setModel(aModel);
add(statementList);

代码示例来源:origin: inception-project/inception

statementList.setModel(aModel);
add(statementList);

代码示例来源:origin: org.geoserver.web/web-core

@Override
protected void onBeforeRender() {
  listView.setModel(new ListModel<Tuple>(tuples()));
  super.onBeforeRender();
}

代码示例来源:origin: org.geoserver.web/gs-web-core

@Override
protected void onBeforeRender() {
  listView.setModel(new ListModel<Tuple>(tuples()));
  super.onBeforeRender();
}

代码示例来源:origin: inception-project/inception

public ImageSidebar(String aId, IModel<AnnotatorState> aModel,
    AnnotationActionHandler aActionHandler, JCasProvider aJCasProvider,
    AnnotationPage aAnnotationPage)
{
  super(aId, aModel, aActionHandler, aJCasProvider, aAnnotationPage);
  mainContainer = new WebMarkupContainer("mainContainer");
  mainContainer.setOutputMarkupId(true);
  add(mainContainer);
  ListView<String> images = new ListView<String>("images")
  {
    private static final long serialVersionUID = -1203277069357712752L;
    @Override
    protected void populateItem(ListItem<String> item)
    {
      item.add(new ExternalImage("image", item.getModelObject()));
      item.add(new ExternalLink("open", item.getModelObject()));
    }
  };
  images.setModel(LoadableDetachableModel.of(this::listImageUrls));
  
  mainContainer.add(images);
}

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-app-ui-search

searchResultGroups.setModel(LambdaModel.of(() -> 
    searchResults.getObject().stream().map((result -> result.getDocumentTitle()))
        .distinct().collect(Collectors.toList())));

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-search

searchResultGroups.setModel(LambdaModel.of(() -> 
    searchResults.getObject().stream().map((result -> result.getDocumentTitle()))
        .distinct().collect(Collectors.toList())));

代码示例来源:origin: inception-project/inception

searchResultGroups.setModel(LambdaModel.of(() -> 
    searchResults.getObject().stream().map((result -> result.getDocumentTitle()))
        .distinct().collect(Collectors.toList())));

相关文章