    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface jclass.bwt.JCTextAreaInterface

public interface JCTextAreaInterface
extends JCTextInterface

##

getMinimumSize(int, int)
  Returns the minimum size needed for the specified number of rows and columns.
getMultiline()
  Gets the Multiline value.
getRows()
  Returns the number of rows.
getTopCharacter()
  Gets the position of the leftmost character on the first line currently displayed, or 0 if the component is empty.
scrollVertical(int)
  Scrolls the displayed text vertically.
setMultiline(boolean)
  If true (default), the user can break text into multiple lines by hitting Enter.
setRows(int)
  Sets the number of rows.
setTopCharacter(int)
  Sets the position of the leftmost character on the first line currently displayed.

##

getRows

     public abstract int getRows()

  Returns the number of rows.

setRows

     public abstract void setRows(int v)

  Sets the number of rows.

getMinimumSize

     public abstract Dimension getMinimumSize(int rows,
                                              int columns)

  Returns the minimum size needed for the specified number of rows and columns.

setMultiline

     public abstract void setMultiline(boolean v)

  If true (default), the user can break text into multiple lines by hitting Enter.

getMultiline

     public abstract boolean getMultiline()

  Gets the Multiline value.

  See Also:
    setMultiline

scrollVertical

     public abstract void scrollVertical(int lines)

  Scrolls the displayed text vertically.

  Parameters:
    lines - the number of lines to scroll; if positive, scrolls upward; otherwise, scrolls downward.

getTopCharacter

     public abstract int getTopCharacter()

  Gets the position of the leftmost character on the first line currently displayed, or 0 if the component is empty.

  See Also:
    setTopCharacter

setTopCharacter

     public abstract void setTopCharacter(int pos)

  Sets the position of the leftmost character on the first line currently displayed. This is the number of characters from the beginning of the text buffer. The first character position is 0.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index