public final class TextItem extends Object
Provides a text item.
Constructor and Description |
---|
TextItem(String text)
Initializes a new instance of the
TextItem class. |
TextItem(String text,
String hyperlink)
Initializes a new instance of the
TextItem class. |
TextItem(String text,
String hyperlink,
TextItemOptions options)
Initializes a new instance of the
TextItem class. |
TextItem(String text,
TextItemOptions options)
Initializes a new instance of the
TextItem class. |
Modifier and Type | Method and Description |
---|---|
TextItem |
addText(String itemText)
Adds a text to the item.
|
TextItem |
addText(String itemText,
String itemHyperlink)
Adds a text to the item.
|
TextItem |
addText(String itemText,
String itemHyperlink,
TextItemOptions itemOptions)
Adds a text to the item.
|
TextItem |
addText(String itemText,
TextItemOptions itemOptions)
Adds a text to the item.
|
String |
getHyperlink()
Gets a hyperlink of the item.
|
TextItem |
getNextItem()
Gets a next item.
|
TextItemOptions |
getOptions()
Gets a options of the item.
|
String |
getText()
Gets a text of the item.
|
boolean |
isHyperlink()
Gets a value indicating whether the item is hyperlink.
|
boolean |
isLast()
Gets a value indicating whether item is the last item of the sequence.
|
public TextItem(String text)
Initializes a new instance of the TextItem
class.
text
- A text of the item.public TextItem(String text, String hyperlink)
Initializes a new instance of the TextItem
class.
text
- A text of the item.hyperlink
- A hyperlink.public TextItem(String text, TextItemOptions options)
Initializes a new instance of the TextItem
class.
text
- A text of the item.options
- A options of the item.public TextItem(String text, String hyperlink, TextItemOptions options)
Initializes a new instance of the TextItem
class.
text
- A text of the item.hyperlink
- A hyperlink.options
- A options of the item.public String getText()
Gets a text of the item.
public String getHyperlink()
Gets a hyperlink of the item.
public boolean isHyperlink()
Gets a value indicating whether the item is hyperlink.
public TextItem getNextItem()
Gets a next item.
public boolean isLast()
Gets a value indicating whether item is the last item of the sequence.
public TextItemOptions getOptions()
Gets a options of the item.
public TextItem addText(String itemText)
Adds a text to the item.
itemText
- A text to add.TextItem
in which a text was added.public TextItem addText(String itemText, String itemHyperlink)
Adds a text to the item.
itemText
- A text to add.itemHyperlink
- A hyperlink.TextItem
in which a text was added.public TextItem addText(String itemText, TextItemOptions itemOptions)
Adds a text to the item.
itemText
- A text to add.itemOptions
- A options of the text.TextItem
in which a text was added.public TextItem addText(String itemText, String itemHyperlink, TextItemOptions itemOptions)
Adds a text to the item.
itemText
- A text to add.itemHyperlink
- A hyperlink.itemOptions
- A options of the text.TextItem
in which a text was added.Copyright © 2018. All rights reserved.