Java AWT

Previous Chapter 23
java.awt.peer Reference
Next
 

TextFieldPeer

Name

TextFieldPeer

[Graphic: Figure from the text]

Description

TextFieldPeer is an interface that defines the basis for text fields.

Interface Definition

public abstract interface java.awt.peer.TextFieldPeer
   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 Dimension minimumSize (int rows, int columns); (Deprecated)
  public abstract Dimension preferredSize (int rows, int columns); (Deprecated)
  public abstract void setEchoChar (char echoChar); (New)
  public abstract void setEchoCharacter (char c); (Deprecated)
}

Interface Methods

getMinimumSize

public abstract Dimension getMinimumSize (int rows) (New)

Parameters

rows

Number of rows within the text field's peer.

Returns

The minimum dimensions of a text field's peer of the given size.

getPreferredSize

public abstract Dimension getPreferredSize (int rows) (New)

Parameters

rows

Number of rows within the text field's peer.

Returns

The preferred dimensions of a text field's peer of the given size.

minimumSize

public abstract Dimension minimumSize (int rows) (Deprecated)

Parameters

rows

Number of rows within the text field's peer.

Returns

Replaced by getMinimumSize(int).

preferredSize

public abstract Dimension preferredSize (int rows) (Deprecated)

Parameters

rows

Number of rows within the text field's peer.

Returns

Replaced by getPreferredSize(int).

setEchoChar

public abstract void setEchoChar (char c) (New)

Parameters

c

The character to display for all input.

Description

Changes the character that is displayed to the user for every character he or she types in the text field.

setEchoCharacter

public abstract void setEchoCharacter (char c) (Deprecated)

Parameters

c

The character to display for all input.

Description

Replaced by setEchoChar(char).

See Also

Dimension, TextComponentPeer


Previous Home Next
TextComponentPeer Book Index WindowPeer

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java