Package com.citytechinc.cq.component.annotations

Examples of com.citytechinc.cq.component.annotations.DialogField


    /*
     * Iterate through all fields establishing proper widgets for each
     */
    for (CtMember member : fieldsAndMethods) {

      DialogField dialogProperty = (DialogField) member.getAnnotation(DialogField.class);

      if (dialogProperty != null) {

        WidgetMakerParameters parameters = new WidgetMakerParameters(dialogProperty, member,
          trueComponentClass, classLoader, classPool, widgetRegistry, null, true);

        DialogElement builtFieldWidget = WidgetFactory.make(parameters, -1);

        builtFieldWidget.setRanking(dialogProperty.ranking());

        int tabIndex = dialogProperty.tab();

        if (tabIndex < 1 || tabIndex > tabsList.size()) {
          throw new InvalidComponentFieldException("Invalid tab index " + tabIndex + " for field "
            + dialogProperty.fieldName());
        }

        tabsList.get(tabIndex - 1).addElement(builtFieldWidget);

      }
View Full Code Here


    for (CtMember curField : fieldsAndMethods) {
      if (curField.hasAnnotation(DialogField.class)) {
        Class<?> fieldClass = parameters.getClassLoader().loadClass(curField.getDeclaringClass().getName());

                DialogField dialogField = (DialogField)curField.getAnnotation(DialogField.class);
                double ranking = dialogField.ranking();

        WidgetMakerParameters curFieldMember = new WidgetMakerParameters(
          dialogField, curField, fieldClass,
          parameters.getClassLoader(), parameters.getClassPool(), parameters.getWidgetRegistry(), null, true);
View Full Code Here

    /*
     * Iterate through all fields establishing proper widgets for each
     */
    for (CtMember member : fieldsAndMethods) {

      DialogField dialogProperty = (DialogField) member.getAnnotation(DialogField.class);

      if (dialogProperty != null) {

        WidgetMakerParameters parameters = new WidgetMakerParameters(dialogProperty, member,
          trueComponentClass, classLoader, classPool, widgetRegistry, null, true);

        DialogElement builtFieldWidget = WidgetFactory.make(parameters, -1);

        builtFieldWidget.setRanking(dialogProperty.ranking());

        int tabIndex = dialogProperty.tab();

        if (tabIndex < 1 || tabIndex > tabsList.size()) {
          throw new InvalidComponentFieldException("Invalid tab index " + tabIndex + " for field "
            + dialogProperty.fieldName());
        }

        tabsList.get(tabIndex - 1).addElement(builtFieldWidget);

      }
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.annotations.DialogField

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.