Examples of EditConfigActionConfigParameters


Examples of com.citytechinc.cq.component.editconfig.actionconfigs.EditConfigActionConfigParameters

      List<EditConfigActionConfig> actionConfigs = new ArrayList<EditConfigActionConfig>();

      int counter = 0;
      for (ActionConfig actionConfig : componentAnnotation.actionConfigs()) {
        EditConfigActionConfigParameters params = new EditConfigActionConfigParameters();
        if (!StringUtils.isEmpty(actionConfig.handler())) {
          params.setHandler(actionConfig.handler());
        }
        if (!StringUtils.isEmpty(actionConfig.text())) {
          params.setText(actionConfig.text());
        }
        if (!StringUtils.isEmpty(actionConfig.xtype())) {
          params.setXtype(actionConfig.xtype());
        }
        if (actionConfig.additionalProperties().length > 0) {
          Map<String, String> additionalProperties = new HashMap<String, String>();
          for (ActionConfigProperty acp : actionConfig.additionalProperties()) {
            additionalProperties.put(acp.name(), acp.value());
          }
          params.setAdditionalProperties(additionalProperties);
        }
        params.setFieldName(ACTION_CONFIG_FIELD_NAME + counter);
        actionConfigs.add(new EditConfigActionConfig(params));
        counter++;
      }

      EditConfigActionConfigsParameters parameters = new EditConfigActionConfigsParameters();
View Full Code Here

Examples of com.citytechinc.cq.component.editconfig.actionconfigs.EditConfigActionConfigParameters

      List<EditConfigActionConfig> actionConfigs = new ArrayList<EditConfigActionConfig>();

      int counter = 0;
      for (ActionConfig actionConfig : componentAnnotation.actionConfigs()) {
        EditConfigActionConfigParameters params = new EditConfigActionConfigParameters();
        if (!StringUtils.isEmpty(actionConfig.handler())) {
          params.setHandler(actionConfig.handler());
        }
        if (!StringUtils.isEmpty(actionConfig.text())) {
          params.setText(actionConfig.text());
        }
        if (!StringUtils.isEmpty(actionConfig.xtype())) {
          params.setXtype(actionConfig.xtype());
        }
        if (actionConfig.additionalProperties().length > 0) {
          Map<String, String> additionalProperties = new HashMap<String, String>();
          for (ActionConfigProperty acp : actionConfig.additionalProperties()) {
            additionalProperties.put(acp.name(), acp.value());
          }
          params.setAdditionalProperties(additionalProperties);
        }
        params.setFieldName(ACTION_CONFIG_FIELD_NAME + counter);
        actionConfigs.add(new EditConfigActionConfig(params));
        counter++;
      }

      EditConfigActionConfigsParameters parameters = new EditConfigActionConfigsParameters();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.