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

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


  }

  private RtePlugin buildStylesRtePlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.styles().length > 0) {
      Styles stylesAnnotation = rteAnnotation.styles()[0];

      List<DialogElement> styleList = new ArrayList<DialogElement>();

      for (int i = 0; i < stylesAnnotation.styles().length; i++) {
        String styleFieldName = "style" + i;

        RteStyleParameters styleParameters = new RteStyleParameters();
        styleParameters.setFieldName(styleFieldName);
        styleParameters.setCssName(stylesAnnotation.styles()[i].cssName());
        styleParameters.setText(stylesAnnotation.styles()[i].text());
        styleList.add(new RteStyle(styleParameters));
      }
      WidgetCollectionParameters wcp = new WidgetCollectionParameters();
      wcp.setContainedElements(styleList);
      wcp.setFieldName("styles");
View Full Code Here


  }

  private RtePlugin buildStylesRtePlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.styles().length > 0) {
      Styles stylesAnnotation = rteAnnotation.styles()[0];

      List<DialogElement> styleList = new ArrayList<DialogElement>();

      for (int i = 0; i < stylesAnnotation.styles().length; i++) {
        String styleFieldName = "style" + i;

        RteStyleParameters styleParameters = new RteStyleParameters();
        styleParameters.setFieldName(styleFieldName);
        styleParameters.setCssName(stylesAnnotation.styles()[i].cssName());
        styleParameters.setText(stylesAnnotation.styles()[i].text());
        styleList.add(new RteStyle(styleParameters));
      }
      WidgetCollectionParameters wcp = new WidgetCollectionParameters();
      wcp.setContainedElements(styleList);
      wcp.setFieldName("styles");
View Full Code Here

  }

  private RtePlugin buildStylesRtePlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.styles().length > 0) {
      Styles stylesAnnotation = rteAnnotation.styles()[0];

      List<DialogElement> styleList = new ArrayList<DialogElement>();

      for (int i = 0; i < stylesAnnotation.styles().length; i++) {
        String styleFieldName = "style" + i;

        RteStyleParameters styleParameters = new RteStyleParameters();
        styleParameters.setFieldName(styleFieldName);
        styleParameters.setCssName(stylesAnnotation.styles()[i].cssName());
        styleParameters.setText(stylesAnnotation.styles()[i].text());
        styleList.add(new RteStyle(styleParameters));
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("spellcheck");
      widgetParameters.setFeatures(ALL_FEATURES);
View Full Code Here

TOP

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

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.