Examples of dataBind()


Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

   public void loadNavigations() throws Exception
   {
      UserPortalConfigService userPortalConfigService = getApplicationComponent(UserPortalConfigService.class);
      navigations = userPortalConfigService.loadEditableNavigations();
      UIVirtualList virtualList = getChild(UIVirtualList.class);
      virtualList.dataBind(new ObjectPageList<PageNavigation>(navigations, navigations.size()));
   }

   public List<PageNavigation> getNavigations()
   {
      return navigations;
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

            @Override
            public void remove() {
                throw new UnsupportedOperationException();
            }
        };
        virtualList.dataBind(source);
    }

    public static class AddNavigationActionListener extends EventListener<UIAddGroupNavigation> {
        public void execute(Event<UIAddGroupNavigation> event) throws Exception {
            WebuiRequestContext ctx = event.getRequestContext();
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

        if (lastQuery_ == null) {
            lastQuery_ = new Query<Page>(null, null, null, null, Page.class);
        }

        // virtualList.dataBind(new PageQueryAccessList(lastQuery_, 10));
        virtualList.dataBind(new PageIterator(lastQuery_.getOwnerType(), lastQuery_.getOwnerId(), lastQuery_.getName(),
                lastQuery_.getTitle(), 10));

        //
        UIRepeater repeater = (UIRepeater) virtualList.getRepeater();
        if (repeater.hasNext()) {
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

            @Override
            public void remove() {
                throw new UnsupportedOperationException();
            }
        };
        virtualList.dataBind(source);
        virtualList.setAutoAdjustHeight(true);
    }

    public void setScope(Scope scope) {
        this.navigationScope = scope;
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

      UserPortalConfigService configService = getApplicationComponent(UserPortalConfigService.class);
      Set<String> groupIdsHavingNavigation = configService.findGroupHavingNavigation();
      listGroup.removeAll(groupIdsHavingNavigation);

      UIVirtualList virtualList = getChild(UIVirtualList.class);
      virtualList.dataBind(new ObjectPageList<String>(listGroup, listGroup.size()));
   }

   static public class AddNavigationActionListener extends EventListener<UIAddGroupNavigation>
   {
      public void execute(Event<UIAddGroupNavigation> event) throws Exception
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

      UIVirtualList virtualList = getChild(UIVirtualList.class);
      if (lastQuery_ == null)
      {
         lastQuery_ = new Query<Page>(null, null, null, null, Page.class);
      }
      virtualList.dataBind(new PageQueryAccessList(lastQuery_, 10));

      UIRepeater repeater = (UIRepeater)virtualList.getDataFeed();
      PageList datasource = repeater.getDataSource();

      if (datasource.getAvailable() > 0)
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

        if (lastQuery_ == null) {
            lastQuery_ = new Query<Page>(null, null, null, null, Page.class);
        }

        // virtualList.dataBind(new PageQueryAccessList(lastQuery_, 10));
        virtualList.dataBind(new PageIterator(lastQuery_.getOwnerType(), lastQuery_.getOwnerId(), lastQuery_.getName(),
                lastQuery_.getTitle(), 10));

        //
        UIRepeater repeater = (UIRepeater) virtualList.getRepeater();
        if (repeater.hasNext()) {
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

      UIVirtualList virtualList = getChild(UIVirtualList.class);
      if (lastQuery_ == null)
      {
         lastQuery_ = new Query<Page>(null, null, null, null, Page.class);
      }
      virtualList.dataBind(new PageQueryAccessList(lastQuery_, 10));

      UIRepeater repeater = (UIRepeater)virtualList.getDataFeed();
      PageList datasource = repeater.getDataSource();

      if (datasource.getAvailable() > 0)
View Full Code Here

Examples of org.exoplatform.webui.core.UIVirtualList.dataBind()

      UserPortalConfigService configService = getApplicationComponent(UserPortalConfigService.class);
      Set<String> groupIdsHavingNavigation = configService.findGroupHavingNavigation();
      listGroup.removeAll(groupIdsHavingNavigation);

      UIVirtualList virtualList = getChild(UIVirtualList.class);
      virtualList.dataBind(new ObjectPageList<String>(listGroup, listGroup.size()));
   }

   static public class AddNavigationActionListener extends EventListener<UIAddGroupNavigation>
   {
      public void execute(Event<UIAddGroupNavigation> event) throws Exception
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.