Class SimpleRadioButton

    • Constructor Detail

      • SimpleRadioButton

        public SimpleRadioButton​(java.lang.String name)
        Creates a new radio associated with a particular group name. All radio buttons associated with the same group name belong to a mutually-exclusive set. Radio buttons are grouped by their name attribute, so changing their name using the setName() method will also change their associated group.
        Parameters:
        name - the group name with which to associate the radio button
      • SimpleRadioButton

        protected SimpleRadioButton​(Element element)
        This constructor may be used by subclasses to explicitly use an existing element. This element must be an <input> element whose type is 'radio'.
        Parameters:
        element - the element to be used
    • Method Detail

      • wrap

        public static SimpleRadioButton wrap​(Element element)
        Creates a SimpleRadioButton widget that wraps an existing <input type='radio'> element. This element must already be attached to the document. If the element is removed from the document, you must call RootPanel.detachNow(Widget).
        Parameters:
        element - the element to be wrapped