Package com.citytechinc.cq.component.dialog.widgetcollection

Examples of com.citytechinc.cq.component.dialog.widgetcollection.WidgetCollection


      namespaces.add(n);
    }
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setFieldName("namespaces");
    wcp.setContainedElements(namespaces);
    return Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });

  }
View Full Code Here


      }
      WidgetCollectionParameters wcp = new WidgetCollectionParameters();
      wcp.setContainedElements(styleList);
      wcp.setFieldName("styles");

      List<DialogElement> stylesDialogElements = Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("styles");
      widgetParameters.setFeatures(ALL_FEATURES);
      widgetParameters.setContainedElements(stylesDialogElements);
      return new RtePlugin(widgetParameters);
View Full Code Here

      WidgetCollectionParameters wcp = new WidgetCollectionParameters();
      wcp.setContainedElements(formatList);
      wcp.setFieldName("formats");

      List<DialogElement> formats = Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("paraformat");
      widgetParameters.setFeatures(ALL_FEATURES);
      widgetParameters.setContainedElements(formats);
      return new RtePlugin(widgetParameters);
View Full Code Here

          tableStyles.add(new RteStyle(styleParameters));
        }
        WidgetCollectionParameters wcp = new WidgetCollectionParameters();
        wcp.setContainedElements(tableStyles);
        wcp.setFieldName("tableStyles");
        containedStyles.add(new WidgetCollection(wcp));
      }

      if (tableAnnotation.cellStyles().length > 0) {
        cellStyles = new ArrayList<DialogElement>();

        for (int i = 0; i < tableAnnotation.cellStyles().length; i++) {
          Style curCellStyle = tableAnnotation.cellStyles()[i];
          String curFieldName = "cellstyle" + i;

          RteStyleParameters styleParameters = new RteStyleParameters();
          styleParameters.setFieldName(curFieldName);
          styleParameters.setCssName(curCellStyle.cssName());
          styleParameters.setText(curCellStyle.text());

          cellStyles.add(new RteStyle(styleParameters));
        }
        WidgetCollectionParameters wcp = new WidgetCollectionParameters();
        wcp.setContainedElements(cellStyles);
        wcp.setFieldName("cellStyles");
        containedStyles.add(new WidgetCollection(wcp));
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("table");
      widgetParameters.setFeatures(convertFeatures(features));
      if (containedStyles.size() > 0) {
View Full Code Here

      namespaces.add(n);
    }
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setFieldName("namespaces");
    wcp.setContainedElements(namespaces);
    return Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });

  }
View Full Code Here

  public static final List<DialogElement> buildTabPanel(List<DialogElement> tabs) {
    List<DialogElement> containedElements = new ArrayList<DialogElement>();
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setContainedElements(tabs);
    DialogElement tabPanelContainer = new WidgetCollection(wcp);

    TabPanelParameters tpp = new TabPanelParameters();
    tpp.setContainedElements(Arrays.asList(new DialogElement[] { tabPanelContainer }));
    DialogElement tabPanel = new TabPanel(tpp);

    WidgetCollectionParameters widgetCollectionForTabPanelParams = new WidgetCollectionParameters();
    widgetCollectionForTabPanelParams.setContainedElements(Arrays.asList(new DialogElement[] { tabPanel }));
    containedElements.add(new WidgetCollection(widgetCollectionForTabPanelParams));
    return containedElements;
  }
View Full Code Here

    /*
     * Construct a new Tab object containing all provided elements
     */
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setContainedElements(tab.getElements());
    WidgetCollection widgetCollection = new WidgetCollection(wcp);
    TabParameters tabParams = new TabParameters();
    tabParams.setTitle(tab.getTitle());
    tabParams.setContainedElements(Arrays.asList(new DialogElement[] { widgetCollection }));
    return new Tab(tabParams);
  }
View Full Code Here

      }
    }
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setContainedElements(elements);
    wcp.setFieldName(ITEMS);
    return Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });

  }
View Full Code Here

    if (StringUtils.isEmpty(parameters.getOptions())) {
      WidgetCollectionParameters wcp = new WidgetCollectionParameters();
      wcp.setContainedElements(options);
      wcp.setFieldName("options");
      optionsList = Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });
    }
    parameters.setContainedElements(optionsList);

    return new SelectionWidget(parameters);
View Full Code Here

        }

    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
    wcp.setFieldName("namespaces");
    wcp.setContainedElements(namespaces);
    return Arrays.asList(new DialogElement[] { new WidgetCollection(wcp) });

  }
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.dialog.widgetcollection.WidgetCollection

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.