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

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


      rc.setRequired(true);
      add(rc);

      RadioGroup group = new RadioGroup("numbersGroup");
      add(group);
      ListView persons = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Radio("radio", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      };
      group.add(persons);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
        protected void populateItem(ListItem item)
        {
          item.add(new Check("check", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
View Full Code Here


    };

    add(form);
    form.add(group);
    group.add(new CheckGroupSelector("groupselector"));
    ListView persons = new ListView("persons", ComponentReferenceApplication.getPersons())
    {

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

        return ((ComponentData)o1).path.compareTo(((ComponentData)o2).path);
      }
    });

    // Create the table containing the list the components
    add(new ListView("components", data)
    {
      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

    // 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

   * @param expectedList
   *            expected list in the model of {@link ListView}
   */
  public void assertListView(String path, List expectedList)
  {
    ListView listView = (ListView)getComponentFromLastRenderedPage(path);
    WicketTesterHelper.assertEquals(expectedList, listView.getList());
  }
View Full Code Here

   * @param expectedList
   *            expected <code>List</code> in the model of the given {@link ListView}
   */
  public void assertListView(String path, List expectedList)
  {
    ListView listView = (ListView)getComponentFromLastRenderedPage(path);
    WicketTesterHelper.assertEquals(expectedList, listView.getList());
  }
View Full Code Here

  }

  private CheckGroup newCheckGroup(final String id, List candidateChoices)
  {
    CheckGroup checkGroupComponent = new CheckGroup(id);
    ListView listView = new ListView("loop", candidateChoices)
    {
      private static final long serialVersionUID = 1L;

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

  }

  private RadioGroup newRadioGroup(List candidateChoices)
  {
    RadioGroup radioGroupComponent = new RadioGroup("radioGroup");
    ListView listView = new ListView("loop", candidateChoices)
    {
      private static final long serialVersionUID = 1L;

      protected void populateItem(ListItem item)
      {
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.