當前位置: 首頁>>代碼示例>>Java>>正文


Java AbstractPageableView類代碼示例

本文整理匯總了Java中org.apache.wicket.markup.repeater.AbstractPageableView的典型用法代碼示例。如果您正苦於以下問題:Java AbstractPageableView類的具體用法?Java AbstractPageableView怎麽用?Java AbstractPageableView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AbstractPageableView類屬於org.apache.wicket.markup.repeater包,在下文中一共展示了AbstractPageableView類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: SearchResultsHeaderPanel

import org.apache.wicket.markup.repeater.AbstractPageableView; //導入依賴的package包/類
public SearchResultsHeaderPanel(String id, IModel<QueryFacetsSelection> model, AbstractPageableView<SolrDocument> resultsView, IDataProvider<SolrDocument> solrDocumentProvider) {
    super(id, model);

    this.solrDocumentProvider = solrDocumentProvider;
    this.resultsView = resultsView;

    add(createSearchInfoLabel("searchInfo"));
    add(createQuerySelectionItems("querySelection"));

    // form to select number of results per page
    add(createResultPageSizeForm("resultPageSizeForm", resultsView));

    //For Ajax updating of search results
    setOutputMarkupId(true);
}
 
開發者ID:acdh-oeaw,項目名稱:vlo-curation,代碼行數:16,代碼來源:SearchResultsHeaderPanel.java

示例2: addComponents

import org.apache.wicket.markup.repeater.AbstractPageableView; //導入依賴的package包/類
private void addComponents() {
    searchContainer = new WebMarkupContainer("searchContainer");
    searchContainer.add(new AttributeModifier("class", new AbstractReadOnlyModel<String>() {
        @Override
        public String getObject() {
            return simpleModeModel.getObject() ? "simple" : "";
        }

    }));
    searchContainer.setOutputMarkupId(true);
    add(searchContainer);

    final IDataProvider<SolrDocument> solrDocumentProvider = new SolrDocumentProvider(getModel());

    navigation = createNavigation("navigation");
    searchContainer.add(navigation);

    searchForm = createSearchForm("search");
    searchContainer.add(searchForm);

    //selections panel (facets and options)
    selections = new WebMarkupContainer("selections") {

        @Override
        protected void onConfigure() {
            final Map<String, FacetSelection> facetSelection = FacetedSearchPage.this.getModel().getObject().getSelection();
            setVisible(solrDocumentProvider.size() > 0
                    || (facetSelection != null && !facetSelection.isEmpty()));
        }
    };
    facetsPanel = createFacetsPanel("facets");
    availabilityFacetPanel = createAvailabilityPanel("availability");
    optionsPanel = createOptionsPanel("options");

    searchContainer.add(selections
            .add(facetsPanel)
            .add(availabilityFacetPanel)
            .add(optionsPanel)
            .setOutputMarkupPlaceholderTag(true)
    );

    // make "selections" panel collapsable on smaller screens
    final IModel<Boolean> selectionsExpandedModel = Model.of(false);
    searchContainer.add(new IndicatingAjaxFallbackLink("toggleSelections") {
        @Override
        public void onClick(AjaxRequestTarget target) {
            selectionsExpandedModel.setObject(!selectionsExpandedModel.getObject());
            if (target != null) {
                target.add(selections);
                target.add(this);
            }
        }
    }
            .add(new Label("toggleSelectionsLabel", // dynamic button label 
                    new BooleanOptionsModel<>(selectionsExpandedModel,
                            Model.of("Hide facets and search options"),
                            Model.of("Show facets and search options"))))
            .setOutputMarkupId(true)
    );
    selections.add(new AttributeAppender("class", // set style for collapsed
            new BooleanOptionsModel<>(selectionsExpandedModel,
                    Model.of(""),
                    Model.of("collapsed-xs-sm")),
            " "));

    //search results panel and header
    searchResultsPanel = new SearchResultsPanel("searchResults", getModel(), solrDocumentProvider) {

        @Override
        protected void onConfigure() {
            super.onConfigure();
            setVisible(solrDocumentProvider.size() > 0);
        }
    };
    searchContainer.add(searchResultsPanel.setOutputMarkupPlaceholderTag(true));

    final AbstractPageableView<SolrDocument> resultsView = searchResultsPanel.getResultsView();

    resultsHeader = createResultsHeader("searchresultsheader", getModel(), resultsView, solrDocumentProvider);
    searchContainer.add(resultsHeader.setOutputMarkupId(true));
}
 
開發者ID:acdh-oeaw,項目名稱:vlo-curation,代碼行數:82,代碼來源:FacetedSearchPage.java

示例3: getResultsView

import org.apache.wicket.markup.repeater.AbstractPageableView; //導入依賴的package包/類
public AbstractPageableView<SolrDocument> getResultsView() {
    return resultsView;
}
 
開發者ID:acdh-oeaw,項目名稱:vlo-curation,代碼行數:4,代碼來源:SearchResultsPanel.java


注:本文中的org.apache.wicket.markup.repeater.AbstractPageableView類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。