public ElementWithOptions addOptionToGroup(String value, String text, String groupId) {
        if (value == null) {
            value = "";
        }

        value = value.trim();

        this.addOptionToGroup(new Option(value, text), groupId);

        return this;
    }
public ElementWithOptions addOptionToGroup ( String value , String text , String groupId ) { if ( value == null ) { value = "" ; } value = value . trim ( ) ; this . addOptionToGroup ( new Option ( value , text ) , groupId ) ; return this ; }
Adds an option to the group of this element with the given id.
If the group is not found, it's created with null text.
@param value Unique value in this element
@param text Option text
@param groupId Id of the option group
@return This element