@Override public boolean accept(FeedbackMessage message) { Component reporter = message.getReporter(); return (reporter == null) || (container != null && !container.contains(reporter, true)); } }
@Override public boolean accept(FeedbackMessage message) { Component reporter = message.getReporter(); return (reporter == null) || (container != null && !container.contains(reporter, true)); } }
/** * Returns true if this component is an ancestor of the given component * * @param component * The component to check * @return True if the given component has this component as an ancestor * @deprecated use getParent().contains(component, false) */ @Deprecated public final boolean isAncestorOf(final Component component) { return getParent().contains(component, false); }
/** * Returns true if this component is an ancestor of the given component * * @param component * The component to check * @return True if the given component has this component as an ancestor * @deprecated use getParent().contains(component, false) */ public final boolean isAncestorOf(final Component component) { return getParent().contains(component, false); // // Walk up containment hierarchy // for (MarkupContainer current = component.parent; current != null; // current = current // .getParent()) // { // // Is this an ancestor? // if (current == this) // { // return true; // } // } // // // This component is not an ancestor of the given component // return false; }
@Override public boolean accept(FeedbackMessage message) { final Component reporter = message.getReporter(); return reporter != null && (container.contains(reporter, true) || Objects.equal(container, reporter)); } }
@Override public boolean accept(FeedbackMessage message) { final Component reporter = message.getReporter(); return reporter != null && (container.contains(reporter, true) || Objects.equal(container, reporter)); } }
/** * @see org.apache.wicket.feedback.IFeedbackMessageFilter#accept(org.apache.wicket.feedback.FeedbackMessage) */ public boolean accept(FeedbackMessage message) { if (message.getReporter() == null) { return false; } else { return container.contains(message.getReporter(), true) || container == message.getReporter(); } } }
/** * @see org.apache.wicket.feedback.IFeedbackMessageFilter#accept(org.apache.wicket.feedback.FeedbackMessage) */ public boolean accept(FeedbackMessage message) { if (message.getReporter() == null) { return false; } else { return container.contains(message.getReporter(), true) || container == message.getReporter(); } } }
/** * Override this method to specify the markup container where your IPageable * is part of. This implementation is a default implementation that tries to * find a parent markup container and update that container. This is * necessary as ListViews can't be updated themselves. * * @param target * the request target to add the components that need to be * updated in the ajax event. */ protected void onAjaxEvent(AjaxRequestTarget target) { // update the container (parent) of the pageable, this assumes that // the pageable is a component, and that it is a child of a web // markup container. Component container = ((Component) pageable); // no need for a nullcheck as there is bound to be a non-repeater // somewhere higher in the hierarchy while (container instanceof AbstractRepeater) { container = container.getParent(); } target.add(container); // in case the navigator is not contained by the container, we have // to add it to the response if (((MarkupContainer) container).contains(this, true) == false) { target.add(this); } }
if (((MarkupContainer)container).contains(this, true) == false)
if (((MarkupContainer)container).contains(this, true) == false)
if (!((MarkupContainer) container).contains(this, true))
if (((MarkupContainer)container).contains(this, true) == false)
if (((MarkupContainer)container).contains(this, true) == false)
if (((MarkupContainer)container).contains(this, true) == false)
if (container.contains(getComponent(), true)) { target.appendJavaScript(getSortScript()); break;