Package org.apache.wicket.markup.html.list

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


        return getGame().getWord().asString(true);
      }
    }));

    // Show the game's letters
    add(new ListView("letters", getGame().getLetters())
    {
      protected void populateItem(final ListItem listItem)
      {
        final Letter letter = (Letter)listItem.getModelObject();
        final Link link = new Link("letter")
View Full Code Here


    };

    add(form);
    form.add(group);

    ListView persons = new ListView("persons", ComponentReferenceApplication.getPersons())
    {

      protected void populateItem(ListItem item)
      {
        item.add(new Radio("radio", item.getModel()));
View Full Code Here

    // Get pagemaps
    final List pagemaps = session.getPageMaps();

    // Create the table containing the list the components
    add(new ListView("pagemaps", pagemaps)
    {
      private static final long serialVersionUID = 1L;

      /**
       * Populate the table with Wicket elements
View Full Code Here

    final List reversedAccessStack = new ArrayList();
    reversedAccessStack.addAll(accessStack);
    Collections.reverse(reversedAccessStack);

    // Create the table containing the list the components
    add(new ListView("accesses", reversedAccessStack)
    {
      private static final long serialVersionUID = 1L;

      /**
       * Populate the table with Wicket elements
View Full Code Here

      // let wicket generate a markup-id so the contents can be
      // updated through an AJAX call.
      setOutputMarkupId(true);

      // add the listview to the container
      add(new ListView("item", items)
      {
        protected void populateItem(ListItem item)
        {
          // add an AJAX checkbox to the item
          item.add(new AjaxCheckBox("check",
View Full Code Here

    // the WebMarkupContainer is used to update the listview in an ajax call
    comments = new WebMarkupContainer("comments");
    add(comments.setOutputMarkupId(true));
   
    // Add commentListView of existing comments
    comments.add(commentListView = new ListView("comments", new PropertyModel(this,
        "commentList"))
    {
      public void populateItem(final ListItem listItem)
      {
        final Comment comment = (Comment)listItem.getModelObject();
View Full Code Here

   * Construct.
   */
  public Index()
  {
    add(new Label("currentUser", new PropertyModel(this, "session.user")));
    add(new ListView("users", RolesApplication.USERS)
    {
      @Override
      protected void populateItem(ListItem item)
      {
        final User user = (User)item.getModelObject();
View Full Code Here

     */
    public Test(String id)
    {
      super(id);
      List l = Arrays.asList("1", "2", "3", "4", "5");
      ListView listView = new ListView("list", l)
      {
        @Override
        protected void populateItem(ListItem item)
        {
          String i = item.getModelObjectAsString();
          item.add(new UserLabel("userLabel", i));
          item.add(new AdminLabel("adminLabel", i));
        }
      };
      add(listView);
      listView.setReuseItems(true);
    }
View Full Code Here

  {
    // Add comment form
    add(new CommentForm("commentForm"));

    // Add commentListView of existing comments
    add(commentListView = new ListView("comments", commentList)
    {
      public void populateItem(final ListItem listItem)
      {
        final Comment comment = (Comment)listItem.getModelObject();
        listItem.add(new Label("date", new Model(comment.getDate())));
View Full Code Here

     *            the component identifier
     */
    public FilesBrowser(String id)
    {
      super(id);
      ListView lv = new ListView("file", new PackagedResourcesModel())
      {
        protected void populateItem(ListItem item)
        {
          AjaxFallbackLink link = new AjaxFallbackLink("link", item.getModel())
          {
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.list.ListView

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.