Examples of IVisitor


Examples of org.apache.wicket.Component.IVisitor

  {
    final List data = new ArrayList();

    if (page != null)
    {
      page.visitChildren(new IVisitor()
      {
        public Object component(final Component component)
        {
          final ComponentData object = new ComponentData();
View Full Code Here

Examples of org.apache.wicket.Component.IVisitor

          }
        }
        else if (formComponent instanceof CheckGroup)
        {
          final Collection checkGroupValues = (Collection) formComponent.getModelObject();
          formComponent.visitChildren(Check.class, new IVisitor()
          {
            public Object component(Component component)
            {
              if (checkGroupValues.contains(component.getModelObject()))
              {
View Full Code Here

Examples of org.apache.wicket.Component.IVisitor

      if (component instanceof MarkupContainer)
      {
        MarkupContainer container = (MarkupContainer)component;

        // collect feedback
        container.visitChildren(IFeedback.class, new IVisitor()
        {
          public Object component(Component component)
          {
            component.attach();
            return IVisitor.CONTINUE_TRAVERSAL;
View Full Code Here

Examples of org.apache.wicket.Component.IVisitor

   *
   * @param target
   */
  private void addFeedbackPanels(final AjaxRequestTarget target)
  {
    getComponent().getPage().visitChildren(IFeedback.class, new IVisitor()
    {
      public Object component(Component component)
      {
        target.addComponent(component);
        return IVisitor.CONTINUE_TRAVERSAL;
View Full Code Here

Examples of org.apache.wicket.Component.IVisitor

   * @param throttleDelay
   */
  public static void addToAllFormComponents(final Form form, final String event,
      final Duration throttleDelay)
  {
    form.visitChildren(FormComponent.class, new IVisitor()
    {
      public Object component(Component component)
      {
        AjaxFormValidatingBehavior behavior = new AjaxFormValidatingBehavior(form, event);
        if (throttleDelay != null)
View Full Code Here

Examples of org.apache.wicket.Component.IVisitor

        // edit catalogMode value
        final FormTester form = tester.newFormTester("catalogModeForm");

        form.select("catalogMode", 1);

        form.getForm().visitChildren(RadioChoice.class, new IVisitor() {
            public Object component(final Component component) {
                if (component.getId().equals("catalogMode")) {
                    ((RadioChoice) component).onSelectionChanged();
                }
                return CONTINUE_TRAVERSAL;
View Full Code Here

Examples of org.apache.wicket.util.visit.IVisitor

              if (userPref != null) {
                userPrefDao.fillFromUserPrefParameters(userPref, data);
              }
              templateName = "";
              // Mark all form components as model changed.
              visitFormComponents(new IVisitor() {
                @Override
                public void component(final Object object, final IVisit visit)
                {
                  final FormComponent< ? > fc = (FormComponent< ? >) object;
                  fc.modelChanged();
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.