Examples of PageableListView


Examples of org.apache.wicket.markup.html.list.PageableListView

        Label countValue = new Label("count", new Model(outOfService.size()));
        trackingForm.add(countValue);
       
        checkGroup.add(new Label("portletsLabel", new ResourceModel("tracker.portlets")));
       
        PageableListView portletsList = new PageableListView("portlets", new PropertyModel(this, "outOfService"), 10)
        {
            protected void populateItem(ListItem item)
            {
                final PortletDefinition portletDefinition = (PortletDefinition) item.getModelObject();
                item.add(new Check("checkbox", item.getModel()));
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

            {
                return getRepo();
            }
        };

        final PageableListView listview = new PageableListView("repositories",
                getRepo, 10)
        {

            private static final long serialVersionUID = 1L;

            // This method is called for each 'entry' in the list.
            @Override
            protected void populateItem(final ListItem item)
            {
                final PortletApplication application = (PortletApplication) item
                        .getModelObject();
                item.add(new Label("groupId", application.getGroupId()));
                item.add(new Label("artifactId", application.getArtifactId()));
                item.add(new Label("name", application.getName()));
                item.add(new Label("version", application.getVersion()));
                item.add(new Label("type", application.getPackaging()));
                Link actionLink = new Link("action", item.getModel())
                {

                    public void onClick()
                    {
                        PortletApplication portletApplication = (PortletApplication) getModelObject();
                        deployer.deploy(portletApplication, getServiceLocator()
                                .getDeploymentManager());
                    }
                };
                actionLink.setVisibilityAllowed(true);
                actionLink.setOutputMarkupId(true);
                if(deployer.getStatus() == PortletDeployer.DEPLOYING)
                {
                    actionLink.setVisible(false);
                }               
                item.add(actionLink);
            }
        };
        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);
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

            }
        };
        final WebMarkupContainer tableGroup = new WebMarkupContainer(
                "tableGroup");
        final ModalWindow metaDataModalWindow = new ModalWindow("modalwindow");
        final PageableListView listview = new PageableListView("repositories",
                getRepo, 10)
        {
            @Override
            protected void populateItem(final ListItem item)
            {
                final Repository repo = (Repository) item.getModelObject();
                item.add(new Label("name", repo.getName()));
                item.add(new Label("url", repo.getConfigPath()));
                item.add(new AjaxLink("edit", item.getModel())
                {

                    @Override
                    public void onClick(AjaxRequestTarget target)
                    {
                        metaDataModalWindow.setContent(new RepositoryPanel(
                                metaDataModalWindow.getContentId(), repo,
                                tableGroup));
                        metaDataModalWindow.show(target);
                    }
                });
                item.add(new AjaxLink("remove", item.getModel()){

                    @Override
                    public void onClick(AjaxRequestTarget target)
                    {
                        try
                        {
                            getPortletRequest().getPreferences().reset(repo.getName());
                            getRepositoryManager().reload(RemotePortletAppDeployer.getReposList(getPortletRequest()));
                            target.addComponent(tableGroup);
                        } catch (ReadOnlyException e)
                        {
                            logger.error("The preference is read-only: {}", repo.getName());
                        }
                    }                   
                });
            }
        };
        listview.setOutputMarkupId(true);

        tableGroup.setOutputMarkupId(true);
        tableGroup.add(new PagingNavigator("navigator", listview));
        tableGroup.add(listview);
        add(metaDataModalWindow);       
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

            Form userAttrsForm = new Form("userAttrsForm");
            add(new FeedbackPanel("feedback"));
            userAttrsForm.add(new Label("attrNameLabel",new ResourceModel("common.name")));
            userAttrsForm.add(new Label("attrValueLabel",new ResourceModel("common.value")));
            add(userAttrsForm);
            PageableListView usersList = new PageableListView(
                    "attributeEntries", new PropertyModel(this,
                            "userAttributes"), 10)
            {

                protected void populateItem(ListItem item)
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

        final RuleEditPanel ruleEditPanel = new RuleEditPanel("ruleEditPanel");

        Form rulesForm = new Form("rulesForm");

        // list of existing rules
        PageableListView rulesList = new PageableListView("rules", new PropertyModel(this, "rules"), 10) {

            @Override
            protected void populateItem(ListItem item) {
                final ProfilingRule rule = (ProfilingRule) item.getModelObject();
               
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

import org.apache.wicket.markup.html.list.PageableListView;
import org.apache.wicket.markup.html.list.ListItem;

public class GeoServerPagingNavigatorTestPage extends WebPage {
    public GeoServerPagingNavigatorTestPage() {
        PageableListView list = new PageableListView("list", Arrays.asList(new String[]{
            "aardvark",
            "bluebird",
            "crocodile",
            "dromedary camel",
            "elephant",
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

  private static final long serialVersionUID = 1L;

  public Bug14Page(final PageParameters parameters) {
    final List list = new ArrayList();
    final PageableListView plv = new PageableListView("plv", list, 10) {

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem item) {
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

          return returnValues;
        }
        return requests;
      }
    };
    PageableListView listView = new PageableListView("requests",requestsModel,50)
    {
      private static final long serialVersionUID = 1L;
     
      protected void populateItem(ListItem item)
      {
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

   * @param parameters
   */
  public Home(final PageParameters parameters)
  {
    // Add table of books
    final PageableListView listView;
    add(listView = new PageableListView("books", new PropertyModel(this, "books"), 4)
    {
      public void populateItem(final ListItem listItem)
      {
        final Book book = (Book)listItem.getModelObject();
        listItem.add(BookDetails.link("details", book, getLocalizer().getString(
View Full Code Here

Examples of org.apache.wicket.markup.html.list.PageableListView

      public Object getObject()
      {
        return Arrays.asList(getRequestLogger().getLiveSessions());
      }
    };
    PageableListView listView = new PageableListView("sessions",sessionModel,50)
    {
      private static final long serialVersionUID = 1L;
     
      private final SimpleDateFormat sdf = new SimpleDateFormat("dd MMM hh:mm:ss.SSS");
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.