Examples of visitChildren()


Examples of org.apache.wicket.markup.html.form.Form.visitChildren()

        WicketHierarchyPrinter.print(c, dumpClass, dumpValue);
    }
   
    public void prefillForm(final FormTester tester) {
        Form form = tester.getForm();
        form.visitChildren(new Component.IVisitor() {
           
            public Object component(Component component) {
                if(component instanceof FormComponent) {
                    FormComponent fc = (FormComponent) component;
                    String name = fc.getInputName();
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.visitChildren()

          }
        }
        else if (formComponent instanceof CheckGroup)
        {
          final Collection<?> checkGroupValues = (Collection<?>)formComponent.getDefaultModelObject();
          formComponent.visitChildren(Check.class, new IVisitor<Component, Void>()
          {
            public void component(final Component component, final IVisit<Void> visit)
            {
              if (checkGroupValues.contains(component.getDefaultModelObject()))
              {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.visitChildren()

          // checkgroup/radiogroup by them implementing some sort of interface {
          // getValue(); } otherwise all these implementation details leak into the tester
          final Object value = formComponent.getDefaultModelObject();
          if (value != null)
          {
            formComponent.visitChildren(Radio.class, new IVisitor<Component, Void>()
            {
              public void component(final Component component,
                final IVisit<Void> visit)
              {
                if (value.equals(component.getDefaultModelObject()))
View Full Code Here

Examples of org.apache.wicket.markup.html.panel.Panel.visitChildren()

                Panel panel = tab.getPanel("x");
                // Needs to be part of the page for errors.
                getPage().add(panel);
                // Cause ListViews to be populated.
                panel.beforeRender();
                panel.visitChildren(AbstractField.class, validator);
                getPage().remove(panel);
            }
        }
       
        return !validator.errorsFound;
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.