TextArea
object is a multi-line region that displays text. It can be set to allow editing or to be read-only. The following image shows the appearance of a text area:
This text area could be created by the following line of code:
new TextArea("Hello", 5, 40);
@version 1.81, 06/16/06 @author Sami Shaio @since JDK1.0
Copyright (c) Xoetrope Ltd., 2002-2006
$Revision: 1.2 $
License: see License.txt
<s:textarea label="Comments" name="comments" cols="30" rows="8"/>@see TabbedPanel
TextArea is a convenience class whose members represent contiguous glyph-areas that have identical text-related traits. With regard to the XSL-FO AreaTree, it is not a real area: essentially each character in the TextArea represents an XSL-FO glyph-area.
TextArea does not contain a copy of the text, but only keeps pointers to the text that is in the FOTree. Its generated-by is always an FObjMixed FO, and it is "backed" by exactly one of the nodes immediately under that FObjMixed item, usually an FOText node. TextArea stores a pointer to that node, as well a record of how much of that node's text actually belongs in this area. Please note that a given FOText node may have more than one TextArea that springs from it (they would have to be in different LineAreas or use different Fonts due to overriding). However , a TextSegment always springs from exactly one FOText node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|