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

com.ironsoftware.ironpdf.form.CheckBoxField Maven / Gradle / Ivy

package com.ironsoftware.ironpdf.form;

/**
 * The type Check box field.
 */
public class CheckBoxField extends FormField {

    private final boolean booleanValue;

    /**
     * (INTERNAL) Please Get CheckBoxField from {@link FormFieldsSet#getCheckBoxFields()} from {@link FormManager#getFields()}
     *
     * @param annotationIndex the annotation index
     * @param name            the name
     * @param pageIndex       the page index
     * @param x               the x
     * @param y               the y
     * @param width           the width
     * @param height          the height
     * @param value           the value
     * @param booleanValue    the boolean value
     * @param readOnly        the read only
     */
    public CheckBoxField(int annotationIndex, String name, int pageIndex,
                         double x, double y, double width, double height, String value, boolean booleanValue, boolean readOnly) {
        super(annotationIndex, name, pageIndex, FormFieldTypes.CHECK_BOX.getFormType(), x, y, width, height, value, readOnly);
        this.booleanValue = booleanValue;
    }

    /**
     * Gets boolean value of the checkbox.
     *
     * @return the boolean value
     */
    public final boolean getBooleanValue() {
        return booleanValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy