Examples of DialogElement


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

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

     * 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

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

        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

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

    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

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

        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

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

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

     * 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

Examples of org.olat.modules.dialog.DialogElement

    DialogPropertyElements elements = dialogElmsMgr.findDialogElements(coursePropMgr, courseNode);
    List<DialogElement> list = new ArrayList<DialogElement>();
    if (elements != null) list = elements.getDialogPropertyElements();
    // loop over all dialog elements
    for (Iterator<DialogElement> iter = list.iterator(); iter.hasNext();) {
      DialogElement element = iter.next();
      element.getAuthor();
      element.getDate();
      Forum forum = forumMgr.loadForum(element.getForumKey());
      // do IndexForum
      doIndexAllMessages(courseNodeResourceContext, forum, indexWriter );
      // do Index File
      doIndexFile(element.getFilename(), element.getForumKey(), courseNodeResourceContext, indexWriter);
    }   
   
    // go further, index my child nodes
    courseNodeIndexer.doIndexCourse(repositoryResourceContext, course, courseNode, indexWriter);
  }
View Full Code Here

Examples of org.olat.modules.dialog.DialogElement

    DialogPropertyElements elements = depm.findDialogElements(course.getCourseEnvironment().getCoursePropertyManager(), this);
    List list = new ArrayList();
    if (elements != null) list = elements.getDialogPropertyElements();

    for (Iterator iter = list.iterator(); iter.hasNext();) {
      DialogElement element = (DialogElement) iter.next();
      doArchiveElement(element, exportDirectory);
    }
  }
View Full Code Here

Examples of org.olat.modules.dialog.DialogElement

    } else if (source == uploadButton) {
      Forum forum = ForumManager.getInstance().addAForum();
      OlatRootFolderImpl forumContainer = DialogElementsController.getForumContainer(forum.getKey());
      fileUplCtr = new FileUploadController(getWindowControl(),forumContainer, ureq, (int)FolderConfig.getLimitULKB(), Quota.UNLIMITED, null, false);     
      this.listenTo(fileUplCtr);
      recentElement = new DialogElement();
      recentElement.setForumKey(forum.getKey());
      recentElement.setAuthor(ureq.getIdentity().getName());
      content.contextPut("overview", Boolean.FALSE);
      content.put("upload", fileUplCtr.getInitialComponent());
    }
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.