Package com.citytechinc.cq.component.dialog

Examples of com.citytechinc.cq.component.dialog.DialogElement


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


     * Verify that, if elements contains tabbable elements, that it only
     * contains one element. If the elements set contains a single tab
     * element, return it as the tab.
     */
    for (int i = 0; i < tab.getElements().size(); i++) {
      DialogElement curElement = tab.getElements().get(i);
      if (curElement instanceof TabbableDialogElement) {
        LogSingleton.getInstance().debug("Tabbable widget found " + curElement.getFieldName());
        TabbableDialogElement curTabbableElement = (TabbableDialogElement) curElement;

        LogSingleton.getInstance().debug("Is Tab? " + curTabbableElement.isTab());

        if (curTabbableElement.isTab()) {
View Full Code Here

        WidgetMakerParameters curFieldMember = new WidgetMakerParameters(
          (DialogField) curField.getAnnotation(DialogField.class), curField, fieldClass,
          parameters.getClassLoader(), parameters.getClassPool(), parameters.getWidgetRegistry(), null, true);

        DialogElement builtFieldWidget = WidgetFactory.make(curFieldMember, -1);
        if (builtFieldWidget instanceof AbstractWidget
          && StringUtils.isNotEmpty(dialogFieldSetAnnotation.namePrefix())) {
          AbstractWidget widget = (AbstractWidget) builtFieldWidget;
          String name = widget.getName();
          String newName;
View Full Code Here

    widgetParameters.setListeners(getListeners());

    widgetParameters.setOrderable(getOrderableForField(multiFieldAnnotation));
    widgetParameters.setAddItemLabel(getAddItemLabelForField(multiFieldAnnotation));
    parameters.setUseDotSlashInName(false);
    DialogElement element = WidgetFactory.make(parameters, MultiFieldWidget.RANKING);

    element.setFieldName("fieldConfig");

    List<DialogElement> elements = new ArrayList<DialogElement>();
    elements.add(element);

    widgetParameters.setContainedElements(elements);
View Full Code Here

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

        DialogElement builtFieldWidget = WidgetFactory.make(curFieldMember, -1);
        if (builtFieldWidget instanceof AbstractWidget
          && StringUtils.isNotEmpty(dialogFieldSetAnnotation.namePrefix())) {
          AbstractWidget widget = (AbstractWidget) builtFieldWidget;
          String name = widget.getName();
          String newName;
          if (name.startsWith("./")) {
            newName = name.substring(2);
          } else {
            newName = name;
          }
          newName = dialogFieldSetAnnotation.namePrefix() + newName;
          if (name.startsWith("./")) {
            newName = "./" + newName;
          }
          widget.setName(newName);
        }
                builtFieldWidget.setRanking(ranking);
        elements.add(builtFieldWidget);
      }
    }
        Collections.sort(elements, new DialogElementComparator());
    WidgetCollectionParameters wcp = new WidgetCollectionParameters();
View Full Code Here

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

     * Verify that, if elements contains tabbable elements, that it only
     * contains one element. If the elements set contains a single tab
     * element, return it as the tab.
     */
    for (int i = 0; i < tab.getElements().size(); i++) {
      DialogElement curElement = tab.getElements().get(i);
      if (curElement instanceof TabbableDialogElement) {
        LogSingleton.getInstance().debug("Tabbable widget found " + curElement.getFieldName());
        TabbableDialogElement curTabbableElement = (TabbableDialogElement) curElement;

        LogSingleton.getInstance().debug("Is Tab? " + curTabbableElement.isTab());

        if (curTabbableElement.isTab()) {
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.dialog.DialogElement

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.