code: public void setDir(String dir)
      {
          AbstractHtmlState tsh = getState();
          tsh.registerAttribute(AbstractHtmlState.ATTR_GENERAL, DIR, dir);
      }
docs: Sets the dir attribute for the HTML element.
  @param dir
  @jsptagref.attributedescription Specifies the direction of text. (<code>LTR | RTL</code>)
  @jsptagref.databindable false
  @jsptagref.attributesyntaxvalue <i>string_dir</i>
  @netui:attribute required="false" rtexprvalue="true"
  description="Specifies the direction of text. (LTR | RTL)"