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

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


        };
        listview.setOutputMarkupId(true);
        final WebMarkupContainer tableGroup = new WebMarkupContainer("tableGroup");
        tableGroup.setOutputMarkupId(true);
        //tableGroup.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
        tableGroup.add(new PagingNavigator("navigator", listview));
        tableGroup.add(listview);
        final MultiLineLabel statusLabel = new MultiLineLabel("status",
                new PropertyModel(this, "message"));
        statusLabel.setOutputMarkupId(true);
        final Label tickerLabel =new Label("ticker",new PropertyModel(this,"ticker"));
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);
            }
        };
       
        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));
    }
View Full Code Here

            }
        };
        listview.setOutputMarkupId(true);

        tableGroup.setOutputMarkupId(true);
        tableGroup.add(new PagingNavigator("navigator", listview));
        tableGroup.add(listview);
        add(metaDataModalWindow);       
        add(tableGroup);
        add(new AjaxLink("newRepo"){
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

            }

        };
       
        rulesForm.add(rulesList);
        rulesForm.add(new PagingNavigator("rulesPaging", rulesList));
        add(rulesForm);

        // button the create a new rule
        Button newRuleButton = new Button("newRuleButton", new ResourceModel("profiler.rule.new")) {
View Full Code Here

   * @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

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

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

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

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

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

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

TOP

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

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.