Class TextArea
※ 한글 번역은 JavaApi-5 한글판 참고.

public class TextArea
extends
TextComponent

A TextArea object is a multi-line region that displays text. It can be set to allow editing or to be read-only.
TextArea 객체는 텍스트를 표시하는 복수행 영역입니다. 편집을 가능하게 설정하거나 읽기 전용으로 설정할 수도 있습니다.

This text area could be created by the following line of code:

 new TextArea("Hello", 5, 40);



Nested Class Summary

- TextArea.AccessibleAWTTextArea
This class implements accessibility support for the TextArea class.
이 클래스는 TextArea 클래스의 사용자 보조 기능의 지원를 구현하고 있습니다.

 

Field Summary

- SCROLLBARS_BOTH
Create and display both vertical and horizontal scrollbars.
수평과 수직 스크롤 바를 나타냅니다.

- SCROLLBARS_HORIZONTAL_ONLY
Create and display horizontal scrollbar only.
수평 스크롤 바만을 나타냅니다.

- SCROLLBARS_NONE
Do not create or display any scrollbars for the text area.
이 텍스트 영역에 스크롤 바를 나타내지 않습니다.

- SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.
수직 스크롤 바만을 나타냅니다.

 

Constructor Summary

- TextArea()
Constructs a new text area with the empty string as text.
새로운 텍스트 영역을 만듭니다.

- TextArea(int rows, int columns)
Constructs a new text area with the specified number of rows and columns and the empty string as text.
지정된 행과 열을 가지는 문자열로 새로운 텍스트 영역을 만듭니다.

- TextArea(String text)
Constructs a new text area with the specified text.
지정된 텍스트로 새로운 텍스트 영역을 만듭니다.

- TextArea(String text, int rows, int columns)
Constructs a new text area with the specified text, and with the specified number of rows and columns.
지정된 행과 열을 가지는 텍스트 영역을 지정된 텍스트로 만듭니다.

- TextArea(String text, int rows, int columns, int scrollbars)
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.
지정된 행과 열 그리고 지정된 텍스트와 스크롤바가 표시되는 새로운 텍스트 영역을 나타냅니다.

 

Method Summary

- void addNotify()
Creates the TextArea's peer.
TextArea를 동등하게 만듭니다.

- void append(String str)
Appends the given text to the text area's current text.
텍스트 영역의 현재 텍스트에 지정된 텍스트를 추가합니다.

- void appendText(String str)
Deprecated. As of JDK version 1.1, replaced by append(String).
추천하지 않습니다.  JDK 버전 1.1 이후는 append(String)를 사용합니다.

- AccessibleContext getAccessibleContext()
Returns the AccessibleContext associated with this TextArea.
TextArea에 관련된 AccessibleContext를 리턴합니다.

- int getColumns()
Returns the number of columns in this text area.
텍스트 영역의 열의 갯수를 리턴합니다.

- Dimension getMinimumSize()
Determines the minimum size of this text area.
텍스트 영역의 최소 사이즈를 결정합니다.

- Dimension getMinimumSize(int rows, int columns)
Determines the minimum size of a text area with the specified number of rows and columns.
지정된 행과 열에 따라 텍스트 영역의 최소 사이즈를 결정합니다.

- Dimension getPreferredSize()
Determines the preferred size of this text area.
텍스트 영역의 추천 사이즈를 결정합니다.

- Dimension getPreferredSize(int rows, int columns)
Determines the preferred size of a text area with the specified number of rows and columns.
지정된 행과 열에 따라 텍스트 영역의 추천 사이즈를 결정합니다.

- int getRows()
Returns the number of rows in the text area.
텍스트 영역의 행의 갯수를 리턴합니다.

- int getScrollbarVisibility()
Returns an enumerated value that indicates which scroll bars the text area uses.
텍스트 영역이 사용하는 스크롤 바를 나타내는 열거된 값을 리턴합니다.

- void insert(String str, int pos)
Inserts the specified text at the specified position in this text area.
텍스트 영역내의 지정된 위치에 지정된 텍스트를 삽입합니다.

- void insertText(String str, int pos)
Deprecated. As of JDK version 1.1, replaced by insert(String, int).
추천하지 않습니다.  JDK 버전 1.1 이후는 insert(String, int)를 사용합니다.

- Dimension minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
추천하지 않습니다.  JDK 버전 1.1 이후는 getMinimumSize()를 사용합니다.

- Dimension minimumSize(int rows, int columns)
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int, int).
추천하지 않습니다.  JDK 버전 1.1 이후는 getMinimumSize(int, int)를 사용합니다.

- protected  String paramString()
Returns a string representing the state of this TextArea.
TextArea 상태를 나타내는 문자열을 리턴합니다.

- Dimension preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
추천하지 않습니다.  JDK 버전 1.1 이후는 getPreferredSize()를 사용합니다.

- Dimension preferredSize(int rows, int columns)
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int, int).
추천하지 않습니다.  JDK 버전 1.1 이후는 getPreferredSize(int, int)를 사용합니다.

- void replaceRange(String str, int start, int end)
Replaces text between the indicated start and end positions with the specified replacement text.
시작 위치와 마지막 위치 사이에 표시된 텍스트를 지정된 텍스트에 옮겨놓습니다.

- void replaceText(String str, int start, int end)
Deprecated. As of JDK version 1.1, replaced by replaceRange(String, int, int).
추천하지 않습니다.  JDK 버전 1.1 이후는 replaceRange(String, int, int)를 사용합니다.

- void setColumns(int columns)
Sets the number of columns for this text area.
텍스트 영역의 열의 갯수를 설정합니다.

- void setRows(int rows)
Sets the number of rows for this text area.
텍스트 영역의 행의 갯수를 설정합니다.

저작자 표시
Posted by Queensland
<< PREV : [1] : [2] : [3] : [4] : [5] : ... [55] : NEXT >>

BLOG main image
by Queensland

공지사항

카테고리

분류 전체보기 (55)
Android Developers Reference (0)
java programming (44)
Java API Documentation (11)
휴식 (0)
참고 URL (0)

최근에 달린 댓글

최근에 받은 트랙백

Total : 12,254
Today : 4 Yesterday : 20
믹시