Changeset 4588


Ignore:
Timestamp:
02/28/14 08:49:54 (10 years ago)
Author:
Twan Goosen
Message:

Javadoc for recently added classes

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  
    2828
    2929/**
     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.
    3034 *
    3135 * @author twagoo
     
    6165
    6266    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")) {
    6468            @Override
    6569            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  
    1818
    1919import eu.clarin.cmdi.vlo.pojo.QueryFacetsSelection;
    20 import eu.clarin.cmdi.vlo.service.FacetFieldsService;
    2120import eu.clarin.cmdi.vlo.wicket.model.FacetSelectionModel;
    2221import java.util.List;
     
    3029 * A panel representing a group of facets.
    3130 *
    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.
    3733 *
    3834 * @author twagoo
     
    4036public class FacetsPanel extends Panel {
    4137
     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     */
    4246    public FacetsPanel(final String id, final IModel<List<FacetField>> facetsModel, final IModel<QueryFacetsSelection> selectionModel) {
    4347        super(id, selectionModel);
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/model/FacetFieldModel.java

    r4582 r4588  
    2626
    2727/**
     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.
    2834 *
    2935 * @author twagoo
     
    3440    private final FacetFieldsModel fieldsModel;
    3541
     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     */
    3648    public FacetFieldModel(FacetFieldsService service, String facet, IModel<QueryFacetsSelection> selectionModel) {
    3749        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  
    2929
    3030/**
     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.
    3138 *
    3239 * @author twagoo
     
    3845    private final IModel<QueryFacetsSelection> selectionModel;
    3946
     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     */
    4053    public FacetFieldsModel(FacetFieldsService service, List<String> facets, IModel<QueryFacetsSelection> selectionModel) {
    4154        this.service = service;
Note: See TracChangeset for help on using the changeset viewer.