Examples of CheckGroup


Examples of org.apache.wicket.markup.html.form.CheckGroup

          item.add(new Label("number", item.getModelObjectAsString()));
        };
      }.setReuseItems(true);
      group.add(persons);

      CheckGroup checks = new CheckGroup("numbersCheckGroup");
      add(checks);
      ListView checksList = new ListView("numbers", NUMBERS)
      {
        @Override
        protected void populateItem(ListItem item)
        {
          item.add(new Check("check", item.getModel()));
          item.add(new Label("number", item.getModelObjectAsString()));
        };
      }.setReuseItems(true);
      checks.add(checksList);

      add(new ListMultipleChoice("siteSelection", SITES));

      // TextField using a custom converter.
      add(new TextField("urlProperty", URL.class)
View Full Code Here

Examples of org.apache.wicket.markup.html.form.CheckGroup

        selectedDerSchemas = prefMan.getList(getRequest(), Constants.PREF_USERS_DERIVED_ATTRIBUTES_VIEW);

        selectedVirSchemas = prefMan.getList(getRequest(), Constants.PREF_USERS_VIRTUAL_ATTRIBUTES_VIEW);

        final CheckGroup dgroup = new CheckGroup("dCheckGroup", new PropertyModel(this, "selectedDetails"));
        form.add(dgroup);

        final ListView<String> details = new ListView<String>("details", fnames) {

            private static final long serialVersionUID = 9101744072914090143L;

            @Override
            protected void populateItem(final ListItem<String> item) {
                item.add(new Check("dcheck", item.getModel()));
                item.add(new Label("dname", new ResourceModel(item.getModelObject(), item.getModelObject())));
            }
        };
        dgroup.add(details);

        if (names.getObject() == null || names.getObject().isEmpty()) {
            final Fragment fragment = new Fragment("schemas", "emptyFragment", form);
            form.add(fragment);

            selectedSchemas.clear();
        } else {
            final Fragment fragment = new Fragment("schemas", "sfragment", form);
            form.add(fragment);

            final CheckGroup sgroup = new CheckGroup("sCheckGroup", new PropertyModel(this, "selectedSchemas"));
            fragment.add(sgroup);

            final ListView<String> schemas = new ListView<String>("schemas", names) {

                private static final long serialVersionUID = 9101744072914090143L;

                @Override
                protected void populateItem(ListItem<String> item) {
                    item.add(new Check("scheck", item.getModel()));
                    item.add(new Label("sname", new ResourceModel(item.getModelObject(), item.getModelObject())));
                }
            };
            sgroup.add(schemas);
        }

        if (dsnames.getObject() == null || dsnames.getObject().isEmpty()) {
            final Fragment fragment = new Fragment("dschemas", "emptyFragment", form);
            form.add(fragment);

            selectedDerSchemas.clear();
        } else {
            final Fragment fragment = new Fragment("dschemas", "dsfragment", form);
            form.add(fragment);

            final CheckGroup dsgroup = new CheckGroup("dsCheckGroup", new PropertyModel(this, "selectedDerSchemas"));
            fragment.add(dsgroup);

            final ListView<String> derSchemas = new ListView<String>("derSchemas", dsnames) {

                private static final long serialVersionUID = 9101744072914090143L;

                @Override
                protected void populateItem(ListItem<String> item) {
                    item.add(new Check("dscheck", item.getModel()));
                    item.add(new Label("dsname", new ResourceModel(item.getModelObject(), item.getModelObject())));
                }
            };
            dsgroup.add(derSchemas);
        }

        if (vsnames.getObject() == null || vsnames.getObject().isEmpty()) {
            final Fragment fragment = new Fragment("vschemas", "emptyFragment", form);
            form.add(fragment);

            selectedVirSchemas.clear();
        } else {
            final Fragment fragment = new Fragment("vschemas", "vsfragment", form);
            form.add(fragment);

            final CheckGroup vsgroup = new CheckGroup("vsCheckGroup", new PropertyModel(this, "selectedVirSchemas"));
            fragment.add(vsgroup);

            final ListView<String> virSchemas = new ListView<String>("virSchemas", vsnames) {

                private static final long serialVersionUID = 9101744072914090143L;

                @Override
                protected void populateItem(ListItem<String> item) {
                    item.add(new Check("vscheck", item.getModel()));
                    item.add(new Label("vsname", new ResourceModel(item.getModelObject(), item.getModelObject())));
                }
            };
            vsgroup.add(virSchemas);
        }

        final AjaxButton submit = new IndicatingAjaxButton(SUBMIT, new ResourceModel(SUBMIT)) {

            private static final long serialVersionUID = -4804368561204623354L;
View Full Code Here

Examples of org.apache.wicket.markup.html.form.CheckGroup

          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()));
        };
      };
      checks.add(checksList);

      add(new ListMultipleChoice("siteSelection", SITES));

      add(new TextField("urlProperty", URL.class) {
        public IConverter getConverter(Class clazz) {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.CheckGroup

    });
  }

  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)
      {
        item.add(new Check("check", new Model((Book)item.getModelObject())));
      }

    };
    checkGroupComponent.add(listView);
    return checkGroupComponent;
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.CheckGroup

          item.add(new Label("number", item.getModelObjectAsString()));
        };
      }.setReuseItems(true);
      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()));
        };
      }.setReuseItems(true);
      checks.add(checksList);

      add(new ListMultipleChoice("siteSelection", SITES));

      // TextField using a custom converter.
      add(new TextField("urlProperty", URL.class)
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.