public SafeHtmlBuilder setAction(SafeUrl value) {
    if (!ACTION_SAFE_URL_ELEMENT_WHITELIST.contains(elementName)) {
      throw new IllegalArgumentException(
          "Attribute \"action\" with a SafeUrl value can only be used "
              + "by one of the following elements: "
              + ACTION_SAFE_URL_ELEMENT_WHITELIST);
    }
    return setAttribute("action", value.getSafeUrlString());
  }
public SafeHtmlBuilder setAction(SafeUrl value) {
    if (!ACTION_SAFE_URL_ELEMENT_WHITELIST.contains(elementName)) {
      throw new IllegalArgumentException(
          "Attribute \"action\" with a SafeUrl value can only be used "
              + "by one of the following elements: "
              + ACTION_SAFE_URL_ELEMENT_WHITELIST);
    }
    return setAttribute("action", value.getSafeUrlString());
  }
public SafeHtmlBuilder setAction ( SafeUrl value ) { if ( ! ACTION_SAFE_URL_ELEMENT_WHITELIST . contains ( elementName ) ) { throw new IllegalArgumentException ( "Attribute \"action\" with a SafeUrl value can only be used " + "by one of the following elements: " + ACTION_SAFE_URL_ELEMENT_WHITELIST ) ; } return setAttribute ( "action" , value . getSafeUrlString ( ) ) ; }
Sets the {@code action} attribute for this element.

<p>The attribute {@code action} with a {@code SafeUrl} value is allowed on these elements:

<ul>
<li>{@code form}
</ul>

@throws IllegalArgumentException if the {@code action} attribute with a {@code SafeUrl} value
is not allowed on this element
Sets the { @code action } attribute for this element .