Class Radio

    • Constructor Detail

      • Radio

        public Radio​(java.lang.String id)
        Creates a new Radio instance.
        Parameters:
        id - the id.
      • Radio

        public Radio​(java.lang.String id,
                     java.lang.String radioGroupName)
        Creates a new Radio instance.
        Parameters:
        id - the id.
        radioGroupName - the name of the radio group the radio button belongs to. It has sense only in case this Radio element will not be rendered but Acroform field will be created instead.
    • Method Detail

      • setChecked

        public Radio setChecked​(boolean checked)
        Sets the state of the radio button.
        Parameters:
        checked - true if the radio button shall be checked, false otherwise. By default, the radio button is unchecked.
        Returns:
        this same Radio button.
      • getProperty

        public <T1> T1 getProperty​(int property)
        Gets the property from this entity. Compared to IPropertyContainer.getOwnProperty(int), this method can check parent's properties, styles, etc, depending on the origin of the instance
        Specified by:
        getProperty in interface IPropertyContainer
        Overrides:
        getProperty in class AbstractElement<Radio>
        Type Parameters:
        T1 - the return type associated with the property
        Parameters:
        property - the property to be retrieved
        Returns:
        the value of the given property. null will be returned if the property value was not found