public final class TextArea extends Object
Provides a text area.
Constructor and Description |
---|
TextArea(List<TextAreaItem> items,
DocumentPage page)
Initializes a new instance of the
TextArea class. |
TextArea(Rectangle rectangle,
String text,
DocumentPage page)
Initializes a new instance of the
TextArea class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes this text area from
Page . |
List<TextAreaItem> |
getItems()
Gets a collection of text area items.
|
DocumentPage |
getPage()
Gets a page which contains this text area.
|
Rectangle |
getRectangle()
Gets a rectangle of the text area.
|
String |
getText()
Gets a text of the text area.
|
public TextArea(List<TextAreaItem> items, DocumentPage page)
Initializes a new instance of the TextArea
class.
items
- A collection of TextAreaItem
objects.page
- An instance of DocumentPage
class where this object is added.public TextArea(Rectangle rectangle, String text, DocumentPage page)
Initializes a new instance of the TextArea
class.
rectangle
- A rectangle of the text area.text
- A text of the text area.page
- An instance of DocumentPage
class where this object is added.public DocumentPage getPage()
Gets a page which contains this text area.
DocumentPage
class which contains this text area.public Rectangle getRectangle()
Gets a rectangle of the text area.
Rectangle
class.public String getText()
Gets a text of the text area.
public List<TextAreaItem> getItems()
Gets a collection of text area items.
TextAreaItem
objects.public void dispose()
Removes this text area from Page
.
Copyright © 2018. All rights reserved.