Package com.cosmo.ui.widgets

Examples of com.cosmo.ui.widgets.BannerAreaWidget


    * @param page Una instancia de {@link PageContext} que representa la p�gina a renderizar.
    */
   private void renderBanners(Workspace workspace, StringBuilder xhtml, PageContext page) throws TemplateUnavailableException
   {
      int index;
      BannerAreaWidget baw;

      index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_LEFT);
      if (index >= 0)
      {
         baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
         xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_LEFT.length(), baw.render());
      }

      index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_RIGHT);
      if (index >= 0)
      {
         baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
         xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_RIGHT.length(), baw.render());
      }

      index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_CENTER_TOP);
      if (index >= 0)
      {
         baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
         xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_CENTER_TOP.length(), baw.render());
      }

      index = xhtml.indexOf(PageRenderer.TAG_WIDGET_BANNERS_CENTER_BOTTOM);
      if (index >= 0)
      {
         baw = new BannerAreaWidget(workspace, BannerAreaWidget.BannerAreas.Left);
         xhtml.replace(index, index + PageRenderer.TAG_WIDGET_BANNERS_CENTER_BOTTOM.length(), baw.render());
      }
   }
View Full Code Here

TOP

Related Classes of com.cosmo.ui.widgets.BannerAreaWidget

Copyright © 2018 www.massapicom. 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.