Java AWT

Previous Chapter 23
java.awt.peer Reference
Next
 

TextAreaPeer

Name

TextAreaPeer

[Graphic: Figure from the text]

Description

TextAreaPeer is an interface that defines the basis for text areas.

Interface Definition

public abstract interface java.awt.peer.TextAreaPeer
   extends java.awt.peer.TextComponentPeer {
  // Interface Methods
  public abstract Dimension getMinimumSize (int rows, int columns); (New)
  public abstract Dimension getPreferredSize (int rows, int columns); (New)
  public abstract void insert (String string, int position); (New)
  public abstract void insertText (String string, int position); (Deprecated)
  public abstract Dimension minimumSize (int rows, int columns); (Deprecated)
  public abstract Dimension preferredSize (int rows, int columns); (Deprecated)
  public abstract void replaceRange (String string, int startPosition, int endPosition); (New)
  public abstract void replaceText (String string, int startPosition, int endPosition); (Deprecated)
}

Interface Methods

getMinimumSize

public abstract Dimension getMinimumSize (int rows, int columns) (New)

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.

getPreferredSize

public abstract Dimension getPreferredSize (int rows, int columns) (New)

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.

insert

public abstract void insert (String string, int position) (New)

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.

insertText

public abstract void insertText (String string, int position) (Deprecated)

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).

minimumSize

public abstract Dimension minimumSize (int rows, int columns) (Deprecated)

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).

preferredSize

public abstract Dimension preferredSize (int rows, int columns) (Deprecated)

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).

replaceRange

public abstract void replaceRange (String string, int startPosition, int endPosition) (New)

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.

replaceText

public abstract void replaceText (String string, int startPosition, int endPosition) (Deprecated)

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).

See Also

Dimension, String, TextComponentPeer


Previous Home Next
ScrollPanePeer (New) Book Index TextComponentPeer

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.