Example usage for org.apache.wicket MarkupContainer contains

List of usage examples for org.apache.wicket MarkupContainer contains

Introduction

In this page you can find the example usage for org.apache.wicket MarkupContainer contains.

Prototype

public boolean contains(final Component component, final boolean recurse) 

Source Link

Usage

From source file:com.senacor.wbs.web.core.layout.BaseWBSPage.java

License:Apache License

public boolean accept(final FeedbackMessage message) {
    if (message.getReporter() == null) {
        return false;
    }/*from  w  w w.  j  av  a2 s  . c o  m*/
    for (MarkupContainer container : containerList) {
        if (container.contains(message.getReporter(), true) || (container == message.getReporter())) {
            return false;
        }
    }
    return true;
}

From source file:ee.pri.rl.blog.web.page.common.message.LocalFeedbackPanel.java

License:Open Source License

public LocalFeedbackPanel(String id, final MarkupContainer container) {
    super(id, new IFeedbackMessageFilter() {
        private static final long serialVersionUID = -1883211501894198761L;

        public boolean accept(FeedbackMessage message) {
            return container.contains(message.getReporter(), true);
        }//from w w w .  j  a v  a 2 s  .  c  o  m
    });
}