Interface RadioContainer


  • public interface RadioContainer
    A container of Radio components, used to identify the element name used when rendering the individual radio buttons. (All buttons in a group share the same element name.)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getControlName()
      Returns the value used as the name attribute of the rendered element.
      boolean isDisabled()
      If true, then all radio buttons within the container should be disabled.
      boolean isSelected​(java.lang.Object value)
      Returns true if the value is the current selected value.
      java.lang.String toClient​(java.lang.Object value)
      Converts an object to a client-side string representation of that value.
    • Method Detail

      • getControlName

        java.lang.String getControlName()
        Returns the value used as the name attribute of the rendered element. This value will be unique within an enclosing form, even if the same component renders multiple times.
        See Also:
        Field.getControlName()
      • isDisabled

        boolean isDisabled()
        If true, then all radio buttons within the container should be disabled.
      • toClient

        java.lang.String toClient​(java.lang.Object value)
        Converts an object to a client-side string representation of that value.
        Parameters:
        value - to convert (may be null)
        Returns:
        string representation of the value
        See Also:
        ValueEncoder.toClient(Object)
      • isSelected

        boolean isSelected​(java.lang.Object value)
        Returns true if the value is the current selected value.