Examples of visitChildren()


Examples of com.avaje.ebeaninternal.server.deploy.InheritInfo.visitChildren()

        InheritInfo inheritInfo = descriptor.getInheritInfo();
        if (inheritInfo != null && inheritInfo.isRoot()){
            // add all properties on the children objects
            InheritChildVisitor childVisitor = new InheritChildVisitor(pv);
            inheritInfo.visitChildren(childVisitor);
        }
    }
   

    /**
 
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Node.visitChildren()

                }
            }
        }
       
        final List<ProducedType> thrownExceptions = new ArrayList<ProducedType>();
        node.visitChildren(new Visitor() {
            @Override
            public void visit(Tree.Throw that) {
                Expression expression = that.getExpression();
                if (expression != null) {
                    thrownExceptions.add(expression.getTypeModel());
View Full Code Here

Examples of com.volantis.mcs.layouts.Fragment.visitChildren()

            try {
                Fragment currentFragment = context.getCurrentFragment();

                if (currentFragment != null) {
                    // Check the children of this fragment
                    currentFragment.visitChildren(visitor, null);
                } else {
                    // This is not a fragmented layout so use the layout root
                    RuntimeDeviceLayout layout = context.getDeviceLayout();
                    layout.getRootFormat().visit(visitor, null);
                }
View Full Code Here

Examples of de.danielbechler.diff.node.DiffNode.visitChildren()

    working.put(16, "Jarrah");
    working.put(23, "Shephard");
    working.put(42, "Kwon");

    final DiffNode mapNode = ObjectDifferBuilder.buildDefault().compare(working, base);
    mapNode.visitChildren(new DiffNode.Visitor()
    {
      public void node(final DiffNode node, final Visit visit)
      {
        final Object key = ((MapKeyElementSelector) node.getElementSelector()).getKey();
        //                 ^^^ I do not encourage this, but currently it's the only way
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.visitChildren()

                }

                private void focusOnFirstParameter(AjaxRequestTarget target, ActionPanel actionPanel) {

                    // first, force all parameters to build themselves...
                    actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof ScalarPanelAbstract) {
                                ScalarPanelAbstract spa = (ScalarPanelAbstract) object;
                                spa.forceBuildGui();
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.visitChildren()

                            }
                        }
                    });

                    // second, go searching for the first <input> in the action panel.
                    final Component actionPanelFirstParam = actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof FormComponent &&
                                !"scalarIfCompact".equals(object.getId()) &&
                                object.getOutputMarkupId()) {
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.visitChildren()

                }

                private void focusOnFirstParameter(AjaxRequestTarget target, ActionPanel actionPanel) {

                    // first, force all parameters to build themselves...
                    actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof ScalarPanelAbstract) {
                                ScalarPanelAbstract spa = (ScalarPanelAbstract) object;
                                spa.forceBuildGui();
View Full Code Here

Examples of org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.visitChildren()

                            }
                        }
                    });

                    // second, go searching for the first <input> in the action panel.
                    final Component actionPanelFirstParam = actionPanel.visitChildren(new IVisitor<Component, Component>() {
                        @Override
                        public void component(Component object, IVisit<Component> visit) {
                            if (object instanceof FormComponent &&
                                !"scalarIfCompact".equals(object.getId()) &&
                                object.getOutputMarkupId()) {
View Full Code Here

Examples of org.apache.wicket.MarkupContainer.visitChildren()

    // alleen markupcontainers hebben kinderen
    if (component instanceof MarkupContainer)
    {
      MarkupContainer container = (MarkupContainer) component;
      ChildMatchingVisitor visitor = new ChildMatchingVisitor();
      container.visitChildren(visitor);
      return visitor.matches;
    }
    return false;
  }
View Full Code Here

Examples of org.apache.wicket.MarkupContainer.visitChildren()

     */
    private void associateLabelToFormComponents(final ElementMetaData propertyMeta, Component component)
    {
        if (component instanceof MarkupContainer) {
            MarkupContainer container = (MarkupContainer)component;
            container.visitChildren(FormComponent.class, new IVisitor<Component>() {
                public Object component(Component component)
                {
                    FormComponent formComponent = (FormComponent)component;
                    formComponent.setLabel( new Model(propertyMeta.getLabel()) );
                    formComponent.add( new ErrorHighlightingBehavior() );
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.