TextAreaPeer peer = (TextAreaPeer) getPeer (); if (peer == null) return;  peer.replaceRange (text, start, end);
replaceText (str, start, end);
  public void replaceRange (String text, int start, int end)  {    TextAreaPeer peer = (TextAreaPeer) getPeer ();    if (peer == null)      return;    peer.replaceRange (text, start, end);  }