public interface DRichTextItem extends DBaseItem
| Modifier and Type | Method and Description |
|---|---|
void |
addNewLine()
Appends one or more new lines (carriage returns) to the end of a
rich-text item.
|
void |
addNewLine(int n)
Appends one or more new lines (carriage returns) to the end of a
rich-text item.
|
void |
addNewLine(int n,
boolean newparagraph)
Appends one or more new lines (carriage returns) to the end of a
rich-text item.
|
void |
addTab()
Appends one or more tabs to the end of a rich-text item.
|
void |
addTab(int count)
Appends one or more tabs to the end of a rich-text item.
|
void |
appendText(String text)
Appends text to the end of a rich text item.
|
DEmbeddedObject |
embedAttachment(String path)
Embeds an object or an attachment.
|
DEmbeddedObject |
getEmbeddedAttachment(String fileName)
Given the name of a file attachment in a rich-text item,
returns the corresponding EmbeddedObject.
|
Iterator |
getEmbeddedObjects()
All the embedded objects, object links, and file attachments contained
in a rich text item.
|
String |
getUnformattedText()
Returns the text of the item without any formatting.
|
DEmbeddedObject embedAttachment(String path)
embedObject(EmbeddedObject.EMBED_ATTACHMENT, "", source, "")path - source name of the objectDEmbeddedObject getEmbeddedAttachment(String fileName)
Note getEmbeddedObject is not supported under OS/2, under UNIX, and on the Macintosh.
fileName - the embedded attachments filenameIterator getEmbeddedObjects()
Note Embedded objects and object links are not supported for OS/2, UNIX, and the Macintosh. File attachments are.
void appendText(String text)
text - The text to append.void addNewLine()
void addNewLine(int n)
n - The number of new lines to append.void addNewLine(int n,
boolean newparagraph)
n - The number of new lines to append.newparagraph - If true (default), forces the new line to be a
paragraph separator. If false, the new line is added,
but does not force a new paragraph.void addTab()
void addTab(int count)
count - The number of tabs to append.String getUnformattedText()
Copyright © 2005–2020. All rights reserved.