
 |
Chapter 23 java.awt.peer Reference |
 |
TextAreaPeer
Name
TextAreaPeer
TextAreaPeer is an interface
that defines the basis for text areas.
public abstract interface java.awt.peer.TextAreaPeer
extends java.awt.peer.TextComponentPeer {
// Interface Methods
public abstract Dimension getMinimumSize (int rows, int columns);
public abstract Dimension getPreferredSize (int rows, int columns);
public abstract void insert (String string, int position);
public abstract void insertText (String string, int position);
public abstract Dimension minimumSize (int rows, int columns);
public abstract Dimension preferredSize (int rows, int columns);
public abstract void replaceRange (String string, int startPosition, int endPosition);
public abstract void replaceText (String string, int startPosition, int endPosition);
}
- Parameters
-
- rows
-
Number of rows within
the text area's peer.
- columns
-
Number of columns
within the text area's peer.
- Returns
-
The minimum dimensions of a text area's peer of the given size.
- Parameters
-
- rows
-
Number of rows within
the text area's peer.
- columns
-
Number of columns
within the text area's peer.
- Returns
-
The preferred dimensions of a text area's peer of the given size.
- Parameters
-
- string
-
Content to place
within the text area's peer.
- position
-
Location at which
to insert the content.
- Description
-
Places additional text within the text area's peer.
- Parameters
-
- string
-
Content to place
within the text area's peer.
- position
-
Location at which
to insert the content.
- Description
-
Places additional text within the text area's peer. Replaced by insert(String,
int).
- Parameters
-
- rows
-
Number of rows within
the text area's peer.
- columns
-
Number of columns
within the text area's peer.
- Returns
-
The minimum dimensions of a text area's peer of the given size. Replaced
by getMinimumSize(int, int).
- Parameters
-
- rows
-
Number of rows within
the text area's peer.
- columns
-
Number of columns
within the text area's peer.
- Returns
-
The preferred dimensions of a text area's peer of the given size.
Replaced by getPreferredSize(int, int).
- Parameters
-
- string
-
New content to place
in the text area's peer.
- startPosition
-
Starting
position of the content to replace.
- endPosition
-
Ending position
of the content to replace.
- Description
-
Replaces a portion of the text area peer's content with the given
text.
- Parameters
-
- string
-
New content to place
in the text area's peer.
- startPosition
-
Starting
position of the content to replace.
- endPosition
-
Ending position
of the content to replace.
- Description
-
Replaces a portion of the text area peer's content with the given
text. Replaced by replaceRange(String, int, int).
Dimension, String,
TextComponentPeer
|
|