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

Examples of com.citytechinc.cq.component.annotations.widgets.DialogFieldSet


  public DialogElement make() throws ClassNotFoundException, SecurityException, InvalidComponentFieldException,
    NotFoundException, CannotCompileException, NoSuchFieldException, InstantiationException,
    IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException {

    DialogFieldSet dialogFieldSetAnnotation = getAnnotation(DialogFieldSet.class);

    DialogFieldSetWidgetParameters widgetParameters = new DialogFieldSetWidgetParameters();

    widgetParameters.setFieldName(getFieldNameForField());
    widgetParameters.setFieldLabel(getFieldLabelForField());
    widgetParameters.setFieldDescription(getFieldDescriptionForField());
    widgetParameters.setAdditionalProperties(getAdditionalPropertiesForField());
    widgetParameters.setHideLabel(getHideLabelForField());

    widgetParameters.setCollapseFirst(dialogFieldSetAnnotation.collapseFirst());
    widgetParameters.setCollapsible(dialogFieldSetAnnotation.collapsible());
    widgetParameters.setCollapsed(dialogFieldSetAnnotation.collapsed());
    widgetParameters.setBorder(dialogFieldSetAnnotation.border());
    String title = null;
    if (!StringUtils.isEmpty(dialogFieldSetAnnotation.title())) {
      title = dialogFieldSetAnnotation.title();
    }
    widgetParameters.setTitle(title);
    widgetParameters.setListeners(getListeners());
    widgetParameters.setContainedElements(buildWidgetCollection(dialogFieldSetAnnotation));
View Full Code Here


  public DialogElement make() throws ClassNotFoundException, SecurityException, InvalidComponentFieldException,
    NotFoundException, CannotCompileException, NoSuchFieldException, InstantiationException,
    IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException {

    DialogFieldSet dialogFieldSetAnnotation = getAnnotation(DialogFieldSet.class);

    DialogFieldSetWidgetParameters widgetParameters = new DialogFieldSetWidgetParameters();

    widgetParameters.setFieldName(getFieldNameForField());
    widgetParameters.setFieldLabel(getFieldLabelForField());
    widgetParameters.setFieldDescription(getFieldDescriptionForField());
    widgetParameters.setAdditionalProperties(getAdditionalPropertiesForField());
    widgetParameters.setHideLabel(getHideLabelForField());

    widgetParameters.setCollapseFirst(dialogFieldSetAnnotation.collapseFirst());
    widgetParameters.setCollapsible(dialogFieldSetAnnotation.collapsible());
    widgetParameters.setCollapsed(dialogFieldSetAnnotation.collapsed());
    widgetParameters.setBorder(dialogFieldSetAnnotation.border());
    String title = null;
    if (!StringUtils.isEmpty(dialogFieldSetAnnotation.title())) {
      title = dialogFieldSetAnnotation.title();
    }
    widgetParameters.setTitle(title);
    widgetParameters.setListeners(getListeners());
    widgetParameters.setContainedElements(buildWidgetCollection(dialogFieldSetAnnotation));
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.annotations.widgets.DialogFieldSet

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.