Examples of TextAreaPeer


Examples of java.awt.peer.TextAreaPeer

  public Dimension preferredSize (int rows, int columns)
  {
    if (isPreferredSizeSet())
      return new Dimension(prefSize);
   
    TextAreaPeer peer = (TextAreaPeer) getPeer ();
    if (peer == null)
      return new Dimension (getWidth(), getHeight());

    return peer.getPreferredSize (rows, columns);
  }
View Full Code Here

Examples of java.awt.peer.TextAreaPeer

   * @deprecated This method is deprecated in favor of
   * <code>append ()</code>.
   */
  public void appendText (String str)
  {
    TextAreaPeer peer = (TextAreaPeer) getPeer ();

    if (peer != null)
      peer.insert (str, peer.getText().length ());
    else
      setText(getText() + str);  
  }
View Full Code Here

Examples of java.awt.peer.TextAreaPeer

  public void insertText (String str, int pos)
  {
    String tmp1 = null;
    String tmp2 = null;
   
    TextAreaPeer peer = (TextAreaPeer) getPeer ();

    if (peer != null)
      peer.insert (str, pos);
    else
      {
        tmp1 = getText().substring(0, pos);
        tmp2 = getText().substring(pos, getText().length());
        setText(tmp1 + str + tmp2);
View Full Code Here

Examples of java.awt.peer.TextAreaPeer

  public void replaceText (String str, int start, int end)
  {
    String tmp1 = null;
    String tmp2 = null;

    TextAreaPeer peer = (TextAreaPeer) getPeer();

    if (peer != null)
      peer.replaceRange(str, start, end);
    else
      {
        tmp1 = getText().substring(0, start);
        tmp2 = getText().substring(end, getText().length());
        setText(tmp1 + str + tmp2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.