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

Examples of org.apache.wicket.markup.html.navigation.paging.PagingNavigator


    gridView.setRows(4);
    gridView.setColumns(3);

    add(gridView);
    add(new PagingNavigator("navigator", gridView));
  }
View Full Code Here


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

    add(table);
    add(new PagingNavigator("navigator", table)
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.markup.html.navigation.paging.PagingNavigator#newNavigation(org.apache.wicket.markup.html.navigation.paging.IPageable,
View Full Code Here

        }
      }
    };
    add(pagingNavigation);
   
    add(new PagingNavigator("navigator", lv));
  }
View Full Code Here

   *            dataview used by datatable
   * @return paging navigator that will be used to navigate the data table
   */
  protected PagingNavigator newPagingNavigator(final String navigatorId, final DataTable<?> table)
  {
    return new PagingNavigator(navigatorId, table);
  }
View Full Code Here

          .longValue()))));
      }
    };
    add(listView);

    PagingNavigator navigator = new PagingNavigator("navigator", listView);
    add(navigator);
  }
View Full Code Here

          new Model<Bytes>(Bytes.bytes(sd.getSessionSize()))));
      }
    };
    add(listView);

    PagingNavigator navigator = new PagingNavigator("navigator", listView);
    add(navigator);
  }
View Full Code Here

                dataView.setCurrentPage(0);
            }
        });

        add(dataView);
        add(new PagingNavigator("appNavigator", dataView));
        FeedbackPanel feedback = new FeedbackPanel("feedback");
        feedback.setEscapeModelStrings(false);
        add(feedback);

        final DataView<PortletDefinitionBean> portletListView = new DataView<PortletDefinitionBean>(PORTLET_TABLE, portletListDataProvider)
        {
            private static final long serialVersionUID = 1L;
           

            protected void populateItem(final Item<PortletDefinitionBean> item)
            {
                final PortletDefinitionBean portletDefinitionBean = item.getModelObject();

                Link<PortletDefinitionBean> link = new Link<PortletDefinitionBean>("nameLink", item.getModel())
                {
                    private static final long serialVersionUID = 1L;

                    @Override
                    public void onClick()
                    {
                        try
                        {
                            PortletMessaging.publish(
                                                     ((AbstractAdminWebApplication) getApplication()).getPortletRequest(),
                                                     ApplicationsListApplication.PRM_TOPIC,
                                                     ApplicationsListApplication.SELECTED_PORTLET_EVENT,
                                                     portletDefinitionBean
                                                     );
                            PortletMessaging
                                            .publish(
                                                     ((AbstractAdminWebApplication) getApplication()).getPortletRequest(),
                                                     ApplicationsListApplication.PRM_TOPIC,
                                                     ApplicationsListApplication.SELECTED_APPLICATION_EVENT,
                                                     new ApplicationBean(
                                                                         locator.getPortletRegistry()
                                                                                .getPortletApplication(portletDefinitionBean.getApplicationName()),
                                                                         locator
                                                                                .getPortletFactory()
                                                                                .isPortletApplicationRegistered(
                                                                                                                locator
                                                                                                                       .getPortletRegistry()
                                                                                                                       .getPortletApplication(
                                                                                                                                              portletDefinitionBean
                                                                                                                                                                   .getApplicationName()))));
                        }
                        catch (NotSerializableException e)
                        {
                            logger.error("Message to publish is not serializable.", e);
                        }
                    }
                };

                link.add(new Label("nameLabel", portletDefinitionBean.getDisplayName()));

                item.add(link);
                item.add(new CloneStatusPanel("status", item.getModel()));
                item.add(new PortletActionPanel("actions", item.getModel()));
            }
        };
       
        portletListView.setItemsPerPage(((AbstractAdminWebApplication) getApplication()).getPreferenceValueAsInteger("portletRows"));
        add(new OrderByBorder("plOrderByDisplayName", "name", portletListDataProvider)
        {
            private static final long serialVersionUID = 1L;

            protected void onSortChanged()
            {
                if (portletListDataProvider.getOrderBy() == PortletOrderBy.DISPLAY_NAME_ASC)
                {
                    portletListDataProvider.setOrderBy(PortletOrderBy.DISPLAY_NAME_DESC);
                }
                else
                {
                    portletListDataProvider.setOrderBy(PortletOrderBy.DISPLAY_NAME_ASC);
                }
                portletListDataProvider.sort();
                dataView.setCurrentPage(0);
            }
        });

        add(portletListView);
        add(new PagingNavigator("plNavigator", portletListView));
       
        CloneModalWindow modalWindow = new CloneModalWindow("modalwindow");
        add(modalWindow);
       
        Label modalWindowCloseScript = new Label("modalWindowCloseScript", new PropertyModel<String>(this, "currentModalWindowCloseScript"));
View Full Code Here

                        item.add(deleteLink);
                    }
                }
            };
            userAttrsForm.add(usersList);
            userAttrsForm.add(new PagingNavigator("navigator", usersList));
            Button updateAttrButton = new Button("updateAttr",
                    new ResourceModel("common.update"))
            {

                public void onSubmit()
View Full Code Here

        listItem.add(moveDownLink("moveDown", listItem));
        listItem.add(removeLink("remove", listItem));
        listItem.add(EditBook.link("edit", book.getId()));
      }
    });
    add(new PagingNavigator("navigator", listView));
  }
View Full Code Here

        dataView.setCurrentPage(0);
      }
    });

    add(dataView);
    add(new PagingNavigator("navigator", dataView));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.navigation.paging.PagingNavigator

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.