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

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


  }

  private RtePlugin buildFormatPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.format().length > 0) {
      Format formatAnnotation = rteAnnotation.format()[0];
      List<String> features = new ArrayList<String>();

      if (formatAnnotation.bold()) {
        features.add("bold");
      }

      if (formatAnnotation.italic()) {
        features.add("italic");
      }

      if (formatAnnotation.underline()) {
        features.add("underline");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("format");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here


  }

  private RtePlugin buildFormatPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.format().length > 0) {
      Format formatAnnotation = rteAnnotation.format()[0];
      List<String> features = new ArrayList<String>();

      if (formatAnnotation.bold()) {
        features.add("bold");
      }

      if (formatAnnotation.italic()) {
        features.add("italic");
      }

      if (formatAnnotation.underline()) {
        features.add("underline");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("format");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here

  }

  private RtePlugin buildFormatPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.format().length > 0) {
      Format formatAnnotation = rteAnnotation.format()[0];
      List<String> features = new ArrayList<String>();

      if (formatAnnotation.bold()) {
        features.add("bold");
      }

      if (formatAnnotation.italic()) {
        features.add("italic");
      }

      if (formatAnnotation.underline()) {
        features.add("underline");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("format");
      widgetParameters.setFeatures(convertFeatures(features));
View Full Code Here

TOP

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

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.