@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
@Override public boolean visitChildren(Object object) { if (object instanceof IFormVisitorParticipant) { return ((IFormVisitorParticipant)object).processChildren(); } return true; }
if (container instanceof IFormVisitorParticipant) visitChildren = ((IFormVisitorParticipant)container).processChildren();
if (container instanceof IFormVisitorParticipant) visitChildren = ((IFormVisitorParticipant)container).processChildren();
if (container instanceof IFormVisitorParticipant) visitChildren = ((IFormVisitorParticipant)container).processChildren();
/** * @see org.apache.wicket.markup.html.form.FormComponent.IVisitor#formComponent(org.apache.wicket.markup.html.form.IFormVisitorParticipant) */ public Object formComponent(IFormVisitorParticipant component) { if (component instanceof FormComponent) { FormComponent<?> formComponent = (FormComponent<?>)component; Form<?> form = formComponent.getForm(); if (!form.isVisibleInHierarchy() || !form.isEnabledInHierarchy()) { // do not validate formComponent or any of formComponent's children return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } if (formComponent.isVisibleInHierarchy() && formComponent.isValid() && formComponent.isEnabledInHierarchy()) { validate(formComponent); } } if (component.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } }
/** * @see org.apache.wicket.markup.html.form.FormComponent.IVisitor#formComponent(org.apache.wicket.markup.html.form.IFormVisitorParticipant) */ public Object formComponent(IFormVisitorParticipant component) { if (component instanceof FormComponent) { FormComponent formComponent = (FormComponent)component; Form form = formComponent.getForm(); if (!form.isEnabled() || !form.isEnableAllowed() || !form.isVisibleInHierarchy()) { // do not validate formComponent or any of formComponent's children return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } if (formComponent.isVisibleInHierarchy() && formComponent.isValid() && formComponent.isEnabled() && formComponent.isEnableAllowed()) { validate(formComponent); } } if (component.processChildren()) { return Component.IVisitor.CONTINUE_TRAVERSAL; } else { return Component.IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER; } }