Exemplo n.º 1
0
 @Override
 public final void reuseStategyNotSupportedForItemsNavigation(IQuickView quickView) {
   Args.notNull(quickView, "quickview");
   if (!quickView.getReuseStrategy().isAddItemsSupported()) {
     throw new ReuseStrategyNotSupportedException(" stategy is not supported for itemsnavigator ");
   }
 }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public final void outPutMarkupIdNotTrue(IQuickView quickView) {
   Args.notNull(quickView, "quickview");
   MarkupContainer container = quickView.getParent();
   if (container.getOutputMarkupId() == false
       && container.getOutputMarkupPlaceholderTag() == false) {
     throw new OutputMarkupIdNotTrueException("parent doesn't have setOutputMarkupId to true");
   }
 }
Exemplo n.º 3
0
 /** {@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");
   }
 }
Exemplo n.º 4
0
 /** {@inheritDoc} */
 @Override
 public String scrollTo(IQuickView quickView, int height) {
   return scrollTo(quickView.getParent().getMarkupId(), height);
 }
Exemplo n.º 5
0
 /** {@inheritDoc} */
 @Override
 public String scrollToTop(IQuickView quickView) {
   return scrollToTop(quickView.getParent().getMarkupId());
 }