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

com.citytechinc.cq.component.annotations.widgets.SizeField Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.citytechinc.cq.component.annotations.widgets;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Represents a Widget of type CQ.form.SizeField
 */
@Retention(RetentionPolicy.CLASS)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface SizeField {

    /**
     * The name of the height parameter.
     *
     * @return String
     */
    String heightParameter() default "./height";

    /**
     * The string to add before the height field.
     *
     * @return String
     */
    String heightPrefix() default "x";

    /**
     * The string to add after the height field.
     *
     * @return String
     */
    String heightSuffix() default "px";

    /**
     * The name of the width parameter.
     *
     * @return String
     */
    String widthParameter() default "./width";

    /**
     * The string to add before the width field.
     *
     * @return String
     */
    String widthPrefix() default "";

    /**
     * The string to add after the width field.
     *
     * @return String
     */
    String widthSuffix() default "";

    /**
     * The width of the fields in pixels.
     *
     * @return int
     */
    int fieldWidth() default 40;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy