Changeset 6755 for vlo/branches/vlo-3.3-oeaw/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/search/SearchResultItemExpandedPanel.java
- Timestamp:
- 11/09/15 13:36:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.3-oeaw/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/search/SearchResultItemExpandedPanel.java
r6268 r6755 37 37 import org.apache.solr.common.SolrDocument; 38 38 import org.apache.wicket.ajax.AjaxRequestTarget; 39 import org.apache.wicket.extensions.markup.html.basic.SmartLinkLabel;40 39 import org.apache.wicket.markup.html.WebMarkupContainer; 41 40 import org.apache.wicket.markup.html.basic.Label; … … 44 43 import org.apache.wicket.markup.html.list.PageableListView; 45 44 import org.apache.wicket.markup.html.panel.GenericPanel; 45 import org.apache.wicket.migrate.StringResourceModelMigration; 46 46 import org.apache.wicket.model.AbstractReadOnlyModel; 47 47 import org.apache.wicket.model.IModel; 48 48 import org.apache.wicket.model.Model; 49 49 import org.apache.wicket.model.PropertyModel; 50 import org.apache.wicket.model.StringResourceModel;51 50 import org.apache.wicket.spring.injection.annot.SpringBean; 52 51 … … 94 93 95 94 private WebMarkupContainer createResourcesView(String id, final IModel<SearchContext> selectionModel) { 96 final SolrFieldModel<String> resourceModel = new SolrFieldModel< String>(getModel(), FacetConstants.FIELD_RESOURCE);95 final SolrFieldModel<String> resourceModel = new SolrFieldModel<>(getModel(), FacetConstants.FIELD_RESOURCE); 97 96 // create a container for the list view that is only visible if there actually are resources 98 97 final WebMarkupContainer container = new WebMarkupContainer(id) { … … 119 118 }; 120 119 // add a record page link that shows the number of resources not shown 121 moreLink.add(new Label("moreLabel", new StringResourceModel("resources.more", new AbstractReadOnlyModel<Integer>() {120 moreLink.add(new Label("moreLabel", StringResourceModelMigration.of("resources.more", new AbstractReadOnlyModel<Integer>() { 122 121 123 122 @Override … … 134 133 private PageableListView createResourcesList(String id, SolrFieldModel<String> resourceModel) { 135 134 // list of resources in this record 136 final IModel<List<String>> resourceListModel = new CollectionListModel< String>(resourceModel);135 final IModel<List<String>> resourceListModel = new CollectionListModel<>(resourceModel); 137 136 // use a a pageable view so that the number of resources actually shown is limited 138 137 return new PageableListView<String>(id, resourceListModel, MAX_RESOURCES_TO_SHOW) {
Note: See TracChangeset
for help on using the changeset viewer.