@Override public final void reuseStategyNotSupportedForItemsNavigation(IQuickView quickView) { Args.notNull(quickView, "quickview"); if (!quickView.getReuseStrategy().isAddItemsSupported()) { throw new ReuseStrategyNotSupportedException(" stategy is not supported for itemsnavigator "); } }
/** {@inheritDoc} */ @Override public final void parentNotSuitable(IQuickView quickView) { Args.notNull(quickView, "quickview"); if (!quickView.getReuseStrategy().isAddItemsSupported()) { return; } MarkupContainer parent = quickView.getParent(); if (parent == null) { throw new QuickViewNotAddedToParentException("add quickview to a markupcontainer"); } if (parent instanceof Page) { throw new QuickViewNotAddedToParentException("add quickview to a markupcontainer"); } if (parent.size() > 1) { throw new ParentNotUnaryException( "the markupcontainer to which quickview is attached should have quickview as its only child"); } }