All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.granite.ui.components.formbuilder.FormResourceManager Maven / Gradle / Ivy

There is a newer version: 6.5.21
Show newest version
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2013 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 ************************************************************************/
package com.adobe.granite.ui.components.formbuilder;

import java.util.HashMap;

import javax.annotation.Nonnull;

import org.apache.sling.api.resource.Resource;
import org.osgi.annotation.versioning.ProviderType;

@ProviderType
public interface FormResourceManager {

    /**
     * Returns a generic form field resource.
     *
     * @param formResource
     *            the form resource
     * @return a generic form field resource
     */
    @Nonnull
    Resource getFormFieldResource(@Nonnull Resource formResource);

    /**
     * Returns a generic form field resource.
     *
     * @param formResource
     *            the form resource
     * @param label
     *            the label
     * @return a generic form field resource
     */
    @Nonnull
    Resource getFormFieldResource(@Nonnull Resource formResource, @Nonnull String label);

    /**
     * Returns a form drop down resource.
     *
     * @param formResource
     *            the form resource
     * @return a form drop down resource
     */
    @Nonnull
    Resource getFormDropdownResource(@Nonnull Resource formResource);

    /**
     * Returns a drop down option resource.
     *
     * @param formResource
     *            the form resource
     * @return a drop down option resource
     */
    @Nonnull
    Resource getDropdownOptionResource(@Nonnull Resource formResource);

    /**
     * Returns a checkbox field resource.
     *
     * @param formResource
     *            the form resource
     * @return a checkbox field resource
     */
    @Nonnull
    Resource getCheckboxFieldResource(@Nonnull Resource formResource);

    /**
     * Returns a checkbox field resource.
     *
     * @param formResource
     *            the form resource
     * @param label
     *            the label
     * @return a checkbox field resource
     */
    @Nonnull
    Resource getCheckboxFieldResource(@Nonnull Resource formResource, @Nonnull String label);

    /**
     * Returns a date field resource.
     *
     * @param formResource
     *            the form resource
     * @return a date field resource
     */
    @Nonnull
    Resource getDateFieldResource(@Nonnull Resource formResource);

    /**
     * Returns a default date resource.
     *
     * @param formResource
     *            the form resource
     * @return a default date resource
     */
    @Nonnull
    Resource getDefaultDateResource(@Nonnull Resource formResource);

    /**
     * Returns a default date resource.
     *
     * @param formResource
     *            the form resource
     * @param label
     *            the label
     * @return a default date resource
     */
    @Nonnull
    Resource getDefaultDateResource(@Nonnull Resource formResource, @Nonnull String label);

    /**
     * Returns a hidden field resource.
     *
     * @param formResource
     *            the form resource
     * @return a hidden field resource
     */
    @Nonnull
    Resource getHiddenFieldResource(@Nonnull Resource formResource);

    /**
     * Returns a default property field resource.
     *
     * @param formResource
     *            the form resource
     * @param values
     *            the values
     * @return a default property field resource
     */
    @Nonnull
    Resource getDefaultPropertyFieldResource(@Nonnull Resource formResource, @Nonnull HashMap values);

    /**
     * Returns the field template id used by external resources.
     *
     * @return the field template id used by external resources
     */
    @Nonnull
    String getFieldTemplateID();

    /**
     * Returns the dropdown option key used by external resources.
     *
     * @return the dropdown option key used by external resources
     */
    @Nonnull
    String getOptionTemplateID();

    /**
     * Returns the list order key used by external resources.
     *
     * @return the list order key used by external resources
     */
    @Nonnull
    String getOrderKey();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy