Package com.citytechinc.cq.component.annotations.widgets.rte

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Style


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

        for (int i = 0; i < tableAnnotation.tableStyles().length; i++) {
          Style curTableStyle = tableAnnotation.tableStyles()[i];
          String curFieldName = "tablestyle" + i;

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

          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);
View Full Code Here


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

        for (int i = 0; i < tableAnnotation.tableStyles().length; i++) {
          Style curTableStyle = tableAnnotation.tableStyles()[i];
          String curFieldName = "tablestyle" + i;

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

          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);
View Full Code Here

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

        for (int i = 0; i < tableAnnotation.tableStyles().length; i++) {
          Style curTableStyle = tableAnnotation.tableStyles()[i];
          String curFieldName = "tablestyle" + i;

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

          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);
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.annotations.widgets.rte.Style

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.