getLineWrap
getLineWrap: (JTextArea) -> booleanWhether long lines wrap.
JTextArea.new(…)| Method | Returns | Description |
|---|---|---|
getLineWrap() | boolean | Whether long lines wrap. |
setLineWrap(boolean) | () | Wraps long lines, or not. |
getWrapStyleWord() | boolean | Whether wrapping breaks at words. |
setWrapStyleWord(boolean) | () | Breaks wrapped lines at words (true) or anywhere (false). |
getTabSize() | number | The tab width in spaces. |
setTabSize(number) | () | Sets the tab width in spaces. |
getRows() | number | The rows it asks for (0: as many as the text has). |
setRows(number) | () | Sets the rows it asks for. |
getColumns() | number | The columns it asks for (0: as wide as the text). |
setColumns(number) | () | Sets the columns it asks for. |
getLineCount() | number | The number of lines (paragraphs, not wrapped rows). |
append(string?) | () | Appends str to the text (an insertion at the end, heard by the document's listeners). |
new(string?) | JTextArea | () -> JTextArea: An empty text area. |
new(number, number) | JTextArea | |
new(string?, number, number) | JTextArea | |
init(JTextArea, string?) | () | (JTextArea) -> (): An empty text area. |
init(JTextArea, number, number) | () | |
init(JTextArea, string?, number, number) | () | |
isInstance(any) | boolean | Whether obj is a JTextArea object, a class(JTextArea) subclass's included. |
| Field | Type | Description |
|---|---|---|
super | JTextComponentClass | JTextComponent's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
JTextAreaClass.new | JTextArea | () -> JTextArea: An empty text area. |
getLineWrapgetLineWrap: (JTextArea) -> booleanWhether long lines wrap.
setLineWrapsetLineWrap: (JTextArea, boolean) -> ()Wraps long lines, or not.
getWrapStyleWordgetWrapStyleWord: (JTextArea) -> booleanWhether wrapping breaks at words.
setWrapStyleWordsetWrapStyleWord: (JTextArea, boolean) -> ()Breaks wrapped lines at words (true) or anywhere (false).
getTabSizegetTabSize: (JTextArea) -> numberThe tab width in spaces.
setTabSizesetTabSize: (JTextArea, number) -> ()Sets the tab width in spaces.
getRowsgetRows: (JTextArea) -> numberThe rows it asks for (0: as many as the text has).
setRowssetRows: (JTextArea, number) -> ()Sets the rows it asks for.
getColumnsgetColumns: (JTextArea) -> numberThe columns it asks for (0: as wide as the text).
setColumnssetColumns: (JTextArea, number) -> ()Sets the columns it asks for.
getLineCountgetLineCount: (JTextArea) -> numberThe number of lines (paragraphs, not wrapped rows).
appendappend: (JTextArea, string?) -> ()Appends str to the text (an insertion at the end, heard by the document's listeners).
newnew: ((string?) -> JTextArea) & ((number, number) -> JTextArea) & ((string?, number, number) -> JTextArea)() -> JTextArea: An empty text area.
(string?) -> JTextArea: A text area showing text.
(number, number) -> JTextArea: An empty text area of rows and columns (its preferred size).
(string?, number, number) -> JTextArea: A text area showing text, of rows and columns.
initinit: ((JTextArea, string?) -> ()) & ((JTextArea, number, number) -> ()) & ((JTextArea, string?, number, number) -> ())(JTextArea) -> (): An empty text area.
(JTextArea, string?) -> (): A text area showing text.
(JTextArea, number, number) -> (): An empty text area of rows and columns (its preferred size).
(JTextArea, string?, number, number) -> (): A text area showing text, of rows and columns.
isInstanceisInstance: (any) -> booleanWhether obj is a JTextArea object, a class(JTextArea) subclass's included.