Package org.apache.wicket.markup.html.navigation.paging

Examples of org.apache.wicket.markup.html.navigation.paging.PagingNavigation$StartIndexChange


   
    return lv;
  }
 
  private void addDemoPagingNavigation(final PageableListView<Book> lv) {
    add(new PagingNavigation("navigation", lv));
   
    final IPagingLabelProvider pagingLabelProvider = new IPagingLabelProvider() {
      private static final long serialVersionUID = 1L;
     
      @Override
      public String getPageLabel(final int page) {
        return "page" + (page + 1);
      }
    };
    final PagingNavigation pagingNavigation = //
      new PagingNavigation("navigationCustomized", lv, pagingLabelProvider) {
     
      private static final long serialVersionUID = 1L;
     
      @Override
      protected void populateItem(final LoopItem loopItem) {
View Full Code Here


             * org.apache
             * .wicket.markup.html.navigation.paging.IPagingLabelProvider)
             */
            @Override
            protected PagingNavigation newNavigation( final IPageable pageable, final IPagingLabelProvider labelProvider ) {
                return new PagingNavigation( "navigation", pageable, labelProvider ) {
                    private static final long serialVersionUID = 1L;

                    /*
                     * (non-Javadoc)
                     *
 
View Full Code Here

     * @return the navigation object
     */
   
    @Override
    protected PagingNavigation newNavigation(final String id, final IPageable pageable, final IPagingLabelProvider labelProvider) {
        return new PagingNavigation(id, pageable, labelProvider) {
            /** Attribute for active state */
            private final AttributeModifier activeAttribute = AttributeModifier.append("class", "active");

            @Override
            protected void populateItem(final LoopItem loopItem) {
View Full Code Here

        listItem.add(new Label("txt", txt));
      }
    };

    add(table);
    PagingNavigation navigation = new PagingNavigation("navigation", table);
    add(navigation);
  }
View Full Code Here

       */
      @Override
      protected PagingNavigation newNavigation(final String id, IPageable pageable,
        IPagingLabelProvider labelProvider)
      {
        PagingNavigation nav = new PagingNavigation(id, pageable);
        nav.setMargin(2);
        if (nav.getViewSize() > 5)
        {
          nav.setViewSize(5);
        }

        nav.setSeparator(", ");
        return nav;
      }
    });
  }
View Full Code Here

        listItem.add(new Label("txt", txt));
      }
    };

    add(table);
    PagingNavigation navigation = new PagingNavigation("navigation", table);
    add(navigation);
  }
View Full Code Here

       *      org.apache.wicket.markup.html.navigation.paging.IPagingLabelProvider)
       */
      protected PagingNavigation newNavigation(IPageable pageable,
          IPagingLabelProvider labelProvider)
      {
        PagingNavigation nav = new PagingNavigation("navigation", pageable);
        nav.setMargin(2);
        if (nav.getViewSize() > 5)
        {
          nav.setViewSize(5);
        }

        nav.setSeparator(", ");
        return nav;
      }
    });
  }
View Full Code Here

    super(id, pageable);
  }

  @Override
  protected PagingNavigation newNavigation(final String id, IPageable pageable, IPagingLabelProvider labelProvider) {
    PagingNavigation navigation = super.newNavigation(id, pageable, labelProvider);
    navigation.setViewSize(11);
    return navigation;
  }
View Full Code Here

  @Override
  protected PagingNavigation newNavigation(final String id, IPageable pageable,
    IPagingLabelProvider labelProvider)
  {
    PagingNavigation navigation = super.newNavigation(id, pageable, labelProvider);
    navigation.setViewSize(11);
    return navigation;
  }
View Full Code Here

      /**
       * @see org.apache.wicket.markup.html.navigation.paging.PagingNavigator#newNavigation(org.apache.wicket.markup.html.navigation.paging.IPageable, org.apache.wicket.markup.html.navigation.paging.IPagingLabelProvider)
       */
      protected PagingNavigation newNavigation(IPageable pageable, IPagingLabelProvider labelProvider)
      {
                PagingNavigation nav = new PagingNavigation("navigation", pageable);
                nav.setMargin(2);
                if (nav.getViewSize() > 5)
                {
                    nav.setViewSize(5);
                }
               
                nav.setSeparator(", ");
                return nav;
      }
        });
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.navigation.paging.PagingNavigation$StartIndexChange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.