Package org.apache.wicket.examples.tree

Examples of org.apache.wicket.examples.tree.Foo


      }

      @Override
      protected void onUpdate(AjaxRequestTarget target)
      {
        Foo foo = getModelObject();

        // search first ancestor with quux not set
        while (!foo.getQuux() && foo.getParent() != null)
        {
          foo = foo.getParent();
        }

        tree.updateBranch(foo, target);
      }
View Full Code Here


  public BookmarkableFolderContent(final AbstractTree<Foo> tree)
  {
    String id = tree.getRequest().getRequestParameters().getParameterValue("foo").toString();
    if (id != null)
    {
      Foo foo = TreeApplication.get().getFoo(id);
      while (foo != null)
      {
        tree.getModel().getObject().add(foo);
        foo = foo.getParent();
      }
    }
  }
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected MarkupContainer newLinkComponent(String id, IModel<Foo> model)
      {
        Foo foo = model.getObject();

        if (tree.getProvider().hasChildren(foo))
        {
          return super.newLinkComponent(id, model);
        }
        else
        {
          PageParameters parameters = new PageParameters();
          parameters.add("foo", foo.getId());

          return new BookmarkablePageLink<>(id, tree.getPage().getClass(), parameters);
        }
      }
    };
View Full Code Here

      }

      @Override
      protected void onUpdate(AjaxRequestTarget target)
      {
        Foo foo = getModelObject();

        // search first ancestor with quux not set
        while (!foo.getQuux() && foo.getParent() != null)
        {
          foo = foo.getParent();
        }

        tree.updateBranch(foo, target);
      }
View Full Code Here

  public BookmarkableFolderContent(final AbstractTree<Foo> tree)
  {
    String id = tree.getRequest().getRequestParameters().getParameterValue("foo").toString();
    if (id != null)
    {
      Foo foo = TreeApplication.get().getFoo(id);
      while (foo != null)
      {
        tree.getModel().getObject().add(foo);
        foo = foo.getParent();
      }
    }
  }
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected MarkupContainer newLinkComponent(String id, IModel<Foo> model)
      {
        Foo foo = model.getObject();

        if (tree.getProvider().hasChildren(foo))
        {
          return super.newLinkComponent(id, model);
        }
        else
        {
          PageParameters parameters = new PageParameters();
          parameters.add("foo", foo.getId());

          return new BookmarkablePageLink<Void>(id, tree.getPage().getClass(), parameters);
        }
      }
    };
View Full Code Here

TOP

Related Classes of org.apache.wicket.examples.tree.Foo

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.