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

com.citytechinc.cq.component.annotations.widgets.Switch 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 granite/ui/components/foundation/form/switch in
 * Touch UI
 */
@Retention(RetentionPolicy.CLASS)
@Target({ ElementType.FIELD, ElementType.METHOD })
public @interface Switch {

    /**
     * The text for “On”.
     *
     * @return String
     */
    String offText() default "";

    /**
     * The text for “Off”.
     *
     * @return String
     */
    String onText() default "";

    /**
     * Indicates if the checkbox is checked. Providing checked property (either
     * true or false) will imply ignoreData to be true.
     * 

* The only valid values are "true" and "false" * * @return String */ String checked() default ""; /** * If false, the checked status is based on matching the form values by name * and value properties. Otherwise, the form values are not matched, and the * checked status is based on checked property specified. * * @return boolean */ boolean ignoreData() default false; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy