Search in sources :

Example 1 with MarkupContainer

use of org.apache.wicket.MarkupContainer in project midpoint by Evolveum.

the class WebComponentUtil method debugDumpComponentTree.

private static void debugDumpComponentTree(StringBuilder sb, Component c, int level) {
    DebugUtil.indentDebugDump(sb, level);
    sb.append(c).append("\n");
    if (c instanceof MarkupContainer) {
        for (Component sub : (MarkupContainer) c) {
            debugDumpComponentTree(sb, sub, level + 1);
        }
    }
}
Also used : MarkupContainer(org.apache.wicket.MarkupContainer) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) Component(org.apache.wicket.Component)

Example 2 with MarkupContainer

use of org.apache.wicket.MarkupContainer in project wiquery by WiQuery.

the class ChildMatches method matches.

@Override
public boolean matches(Component component) {
    // alleen markupcontainers hebben kinderen
    if (component instanceof MarkupContainer) {
        MarkupContainer container = (MarkupContainer) component;
        ChildMatchingVisitor visitor = new ChildMatchingVisitor();
        container.visitChildren(visitor);
        return visitor.matches;
    }
    return false;
}
Also used : MarkupContainer(org.apache.wicket.MarkupContainer)

Aggregations

MarkupContainer (org.apache.wicket.MarkupContainer)2 Component (org.apache.wicket.Component)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1