Changeset 4588
- Timestamp:
- 02/28/14 08:49:54 (10 years ago)
- Location:
- vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FacetPanel.java
r4582 r4588 28 28 29 29 /** 30 * Panel that displays a single facet based on the current query/value 31 * selection. Two children will be generated: a {@link FacetValuesPanel} and a 32 * {@link SelectedFacetPanel}. One of them is set visible (at {@link 33 * #onConfigure()}), depending on whether this facet has selected values. 30 34 * 31 35 * @author twagoo … … 61 65 62 66 private FacetValuesPanel createFacetValuesPanel(String id) { 63 return new FacetValuesPanel(id, new PropertyModel<FacetField>(model, "facetField")) {67 return new FacetValuesPanel(id, new PropertyModel<FacetField>(model, "facetField")) { 64 68 @Override 65 69 public void onValuesSelected(String facet, Collection<String> value, AjaxRequestTarget target) { -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FacetsPanel.java
r4582 r4588 18 18 19 19 import eu.clarin.cmdi.vlo.pojo.QueryFacetsSelection; 20 import eu.clarin.cmdi.vlo.service.FacetFieldsService;21 20 import eu.clarin.cmdi.vlo.wicket.model.FacetSelectionModel; 22 21 import java.util.List; … … 30 29 * A panel representing a group of facets. 31 30 * 32 * For each facet present (retrieved from the injected 33 * {@link FacetFieldsService}, a panel is added. This is either a 34 * {@link FacetValuesPanel}, allowing for selection of facet values, or a 35 * {@link SelectedFacetPanel} representing a facet with selected values, 36 * allowing for deselection of these values. 31 * For each facet present in the provided list model, a {@link FacetPanel} is 32 * added to the a list view. 37 33 * 38 34 * @author twagoo … … 40 36 public class FacetsPanel extends Panel { 41 37 38 /** 39 * 40 * @param id component id 41 * @param facetsModel model that provides the list of facets to show in this 42 * panel 43 * @param selectionModel model representing the current query/value 44 * selection state 45 */ 42 46 public FacetsPanel(final String id, final IModel<List<FacetField>> facetsModel, final IModel<QueryFacetsSelection> selectionModel) { 43 47 super(id, selectionModel); -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/model/FacetFieldModel.java
r4582 r4588 26 26 27 27 /** 28 * Decorator for {@link FacetFieldsModel} for a selection of a single facet. 29 * 30 * Notice that the actual retrieval is carried out by the provided 31 * {@link FacetFieldsService}, which therefore should be configured to actually 32 * retrieve the specified facet (through the constructor), otherwise it may not 33 * be presented. 28 34 * 29 35 * @author twagoo … … 34 40 private final FacetFieldsModel fieldsModel; 35 41 42 /** 43 * 44 * @param service service to use for facet field retrieval 45 * @param facet facet to provide 46 * @param selectionModel model that provides current query/selection 47 */ 36 48 public FacetFieldModel(FacetFieldsService service, String facet, IModel<QueryFacetsSelection> selectionModel) { 37 49 fieldsModel = new FacetFieldsModel(service, Collections.singletonList(facet), selectionModel); -
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/model/FacetFieldsModel.java
r4582 r4588 29 29 30 30 /** 31 * Model that provides a list of {@link FacetField}s based on the current query 32 * and values selection, filtered through a selection of facet names. 33 * 34 * Notice that the actual retrieval is carried out by the provided 35 * {@link FacetFieldsService}, which therefore should be configured to actually 36 * retrieve the specified facets (in the list in the constructor), otherwise 37 * some of these may not be present. 31 38 * 32 39 * @author twagoo … … 38 45 private final IModel<QueryFacetsSelection> selectionModel; 39 46 47 /** 48 * 49 * @param service service to use for facet field retrieval 50 * @param facets facets to include 51 * @param selectionModel model that provides current query/selection 52 */ 40 53 public FacetFieldsModel(FacetFieldsService service, List<String> facets, IModel<QueryFacetsSelection> selectionModel) { 41 54 this.service = service;
Note: See TracChangeset
for help on using the changeset viewer.