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

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

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

ListView.<init>介绍

暂无

代码示例

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

@Override
protected void populateItem(final ListItem<Serializable> rowItem) {
  rowItem.add(new ListView<PropertyContext<Serializable>>("columns", elementPropertyContexts) {
    @Override
    protected void populateItem(ListItem<PropertyContext<Serializable>> columnItem) {
      PropertyContext<Serializable> propertyContext = columnItem.getModelObject(); 
      Serializable elementPropertyValue = (Serializable) propertyContext.getPropertyValue(rowItem.getModelObject());
      columnItem.add(propertyContext.renderForView("cell", Model.of(elementPropertyValue)));
      columnItem.add(AttributeAppender.append("class", "property-" + propertyContext.getPropertyName()));
    }
    
  });
}

代码示例来源:origin: net.ontopia/ontopoly-editor

protected void populateItem(ListItem<List<Component>> item) {
  List<Component> componentGroups = item.getModelObject();
  item.add(new ListView<Component>("innerList", componentGroups) {
   protected void populateItem(ListItem<Component> item) {
    item.add(item.getModelObject());
   }
  });
 }
};

代码示例来源:origin: ontopia/ontopia

@Override
 protected void populateItem(ListItem<List<Component>> item) {
  List<Component> componentGroups = item.getModelObject();
  item.add(new ListView<Component>("innerList", componentGroups) {
   @Override
   protected void populateItem(ListItem<Component> item) {
    item.add(item.getModelObject());
   }
  });
 }
};

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

@Override
  protected void populateItem(ListItem<String> item) {
    final String serviceId = item.getModelObject();
    item.add(new Label("service", serviceId.toUpperCase()));
    item.add(
        new ListView<CapsInfo>("versions", byService.get(serviceId)) {
          private static final long serialVersionUID = 1L;
          @Override
          protected void populateItem(ListItem<CapsInfo> item) {
            CapsInfo capsInfo = item.getModelObject();
            Version version = capsInfo.getVersion();
            String capsLink = capsInfo.getCapsLink();
            ExternalLink link = new ExternalLink("link", capsLink);
            item.add(link);
            link.add(new Label("version", version.toString()));
          }
        });
  }
};

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

@Override
  protected void populateItem(ListItem<String> item) {
    final String serviceId = item.getModelObject();
    item.add(new Label("service", serviceId.toUpperCase()));
    item.add(new ListView<CapsInfo>("versions", byService.get(serviceId)) {
      private static final long serialVersionUID = 1L;
      @Override
      protected void populateItem(ListItem<CapsInfo> item) {
        CapsInfo capsInfo = item.getModelObject();
        Version version = capsInfo.getVersion();
        String capsLink = capsInfo.getCapsLink();
        ExternalLink link = new ExternalLink("link", capsLink);
        item.add(link);
        link.add(new Label("version", version.toString()));
      }
    });
  }
};

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

final String connectorKey = item.getModelObject();
final ListView<TopologyNode> innerListView = new ListView<TopologyNode>("resources",
    new ArrayList<>(connections.get(connectorKey).values())) {

代码示例来源:origin: stackoverflow.com

ArrayList rows = new ArrayList(2);
rows.add(new String());
rows.add(new String());
final ListView lv = new ListView("rows", rows) {
@Override
 protected void populateItem(ListItem item) {
  int index = item.getIndex() + 1;
  item.add(new Label("index", index + "."));
  TextField text = new TextField("text", item.getModel()));
  item.add(text);
 }
};
rowPanel.add(lv);
AjaxSubmitLink addLink = new AjaxSubmitLink("addRow", form) {
 @Override
 public void onSubmit(AjaxRequestTarget target, Form form) {
  lv.getModelObject().add(new String());
  if (target != null)
   target.addComponent(rowPanel);
 }
};
addLink.setDefaultFormProcessing(false);
rowPanel.add(addLink);

代码示例来源:origin: stackoverflow.com

add(new ListView("listId", list) {
  protected void populateItem(ListItem item) {
     final ListView lv = this;
     item.add(new Link("linkId") {
       public void onClick() {
         lv.modelChange();
         lv.removeAll();
       }
     });
  }
});

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

public void populateItem(ListItem item){
    Category category = (Category)item.getModelObject();
    item.add(new Label("category.header", new StringResourceModel(category.getNameKey(), (Component) null, null)));
    item.add(new ListView("category.links", links.get(category)){
      public void populateItem(ListItem item){
        MenuPageInfo info = (MenuPageInfo)item.getModelObject();
        BookmarkablePageLink link = new BookmarkablePageLink("link", info.getComponentClass());
        link.add(new AttributeModifier("title", true, new StringResourceModel(info.getDescriptionKey(), (Component) null, null)));
        link.add(new Label("link.label", new StringResourceModel(info.getTitleKey(), (Component) null, null)));
        Image image;
        if(info.getIcon() != null) {
          image = new Image("link.icon", new ResourceReference(info.getComponentClass(), info.getIcon()));
        } else {
          image = new Image("link.icon", new ResourceReference(GeoServerBasePage.class, "img/icons/silk/wrench.png"));
        }
        image.add(new AttributeModifier("alt", true, new ParamResourceModel(info.getTitleKey(), null)));
        link.add(image);
        item.add(link);
      }
    });
  }
});

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

@Override
 protected void populateItem(ListItem<String> item) {
  item.add(new Label("met_elem_name", item.getModelObject()));
  item
    .add(new ListView<String>("met_values_list",
      new ListModel<String>(met.getAllMetadata(item
        .getModelObject()))) {
     /*
      * (non-Javadoc)
      * 
      * @see
      * org.apache.wicket.markup.html.list.ListView#populateItem(
      * org.apache.wicket.markup.html.list.ListItem)
      */
     @Override
     protected void populateItem(ListItem<String> item) {
      item.add(new Label("met_value", item.getModelObject()));
     }
    });
 }
});

代码示例来源:origin: org.apache.oodt/oodt-webapp-components

@Override
 protected void populateItem(ListItem<String> item) {
  item.add(new Label("met_elem_name", item.getModelObject()));
  item
    .add(new ListView<String>("met_values_list",
      new ListModel<String>(met.getAllMetadata(item
        .getModelObject()))) {
     /*
      * (non-Javadoc)
      *
      * @see
      * org.apache.wicket.markup.html.list.ListView#populateItem(
      * org.apache.wicket.markup.html.list.ListItem)
      */
     @Override
     protected void populateItem(ListItem<String> item) {
      item.add(new Label("met_value", item.getModelObject()));
     }
    });
 }
});

代码示例来源:origin: org.apache.oodt/oodt-webapp-components

@Override
 protected void populateItem(ListItem<String> item) {
  item.add(new Label("met_elem_name", item.getModelObject()));
  item
    .add(new ListView<String>("met_values_list",
      new ListModel<String>(met.getAllMetadata(item
        .getModelObject()))) {
     /*
      * (non-Javadoc)
      * 
      * @see
      * org.apache.wicket.markup.html.list.ListView#populateItem(
      * org.apache.wicket.markup.html.list.ListItem)
      */
     @Override
     protected void populateItem(ListItem<String> item) {
      item.add(new Label("met_value", item.getModelObject()));
     }
    });
 }
});

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

final ListView<ConnInstanceTO> conns = new ListView<ConnInstanceTO>("conns", item.getModelObject()) {

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

@Override
 protected void populateItem(ListItem<String> item) {
  item.add(new Label("met_elem_name", item.getModelObject()));
  item
    .add(new ListView<String>("met_values_list",
      new ListModel<String>(met.getAllMetadata(item
        .getModelObject()))) {
     /*
      * (non-Javadoc)
      *
      * @see
      * org.apache.wicket.markup.html.list.ListView#populateItem(
      * org.apache.wicket.markup.html.list.ListItem)
      */
     @Override
     protected void populateItem(ListItem<String> item) {
      item.add(new Label("met_value", item.getModelObject()));
     }
    });
 }
});

代码示例来源:origin: org.opensingular/singular-requirement-module

@Override
  protected void populateItem(ListItem<EmbeddedHistoryDTO> item) {
    final EmbeddedHistoryDTO embeddedHistoryDTO = item.getModelObject();
    item.add(new Label("nomeAnalise", Model.of(embeddedHistoryDTO.getName())));
    item.add(new Label("responsavel", Model.of(embeddedHistoryDTO.getActor())));
    item.add(new Label("data", Model.of(embeddedHistoryDTO.getDate())));
    item.add(new ListView<EmbeddedHistoryDTO.TypeFormVersion>("botoes", embeddedHistoryDTO.getTypeFormVersions()) {
      @Override
      protected void populateItem(ListItem<EmbeddedHistoryDTO.TypeFormVersion> item) {
        item.add(appendViewFormButton("button", item.getModelObject().getFormVersionPK(), item.getModelObject().getLabel()));
      }
    });
  }
});

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

category.getNameKey(), (Component) null, null)));
item.add(
    new ListView<MenuPageInfo>("category.links", links.get(category)) {
      public void populateItem(ListItem<MenuPageInfo> item) {
        MenuPageInfo info = item.getModelObject();

代码示例来源:origin: stackoverflow.com

this.form.add(selectGroup);
final ListView selectRepetor = new ListView("selectRepetor", dataPassRegister.getNameList())

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

final ListView<String> fields = new ListView<String>("fields", toBeIncluded) {

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

hitsContainer.add(new ListView<QueryHit>(HITS_ID, blobItem.getModelObject().getHits()) {

相关文章