|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.model.domino.wrapped.DominoRichTextItem
public class DominoRichTextItem
DominoRichTextItem represents a RichTextItem field in a Document. This value is returned by the DominoDocument when the item is actually a rich text. This tells the other classes, like the FileDownload or the rich text editor that they are dealing with a RichText element...
Constructor Summary | |
---|---|
DominoRichTextItem(DominoDocument parent,
lotus.domino.MIMEEntity wrappedObject,
java.lang.String name)
Create a new DominoRichTextItem wrapper |
|
DominoRichTextItem(DominoDocument parent,
lotus.domino.RichTextItem wrappedObject)
Create a new DominoRichTextItem wrapper |
Method Summary | |
---|---|
void |
addAttachment(com.ibm.xsp.persistence.PersistedContent pc,
java.io.File content,
DominoDocument.AttachmentValueHolder att)
|
boolean |
addRichTextItem()
Add the RichTextItem to the parent Document |
void |
applyAttachments()
Add and Remove the current set of attachments to the document as necessary |
void |
clearCachedData(java.lang.String _persistenceFolder)
Clear cached data from persistance folder |
void |
closeMIMEEntities(boolean persist)
Closes MIME processing associated with items matching the name associated with the DominoRichTextItem. |
java.lang.String |
computeUniqueAttachmentName(java.lang.String attachmentName)
Compute unique attachment name |
static IMimeMultipart |
convertToMime(java.lang.Object value)
|
java.util.List<DominoDocument.AttachmentValueHolder> |
getAttachmentList(javax.faces.context.FacesContext context)
|
java.lang.String |
getContentAsText()
Return the text content as simple text. |
long |
getContentLength()
Returns the content length for the file |
DominoDocument.AttachmentValueHolder |
getEmbeddedImage(java.lang.String cidStr)
Get an embedded image associated with this RichTextItem specified by cidStr |
java.util.ArrayList<DominoDocument.AttachmentValueHolder> |
getEmbeddedImagesList()
|
java.lang.String |
getHTML()
Returns an HTML representation of the MIME |
lotus.domino.Item |
getItem()
|
java.lang.String |
getItemName()
Returns the name of the RichTextItem field (non-Javadoc) |
lotus.domino.MIMEEntity |
getMIMEEntity()
|
long[] |
getMimeLengths()
Returns an array of content lengths for the files |
IMimePart[] |
getMimeParts()
Returns an array of IMimeParts |
java.lang.String[] |
getMimeTypes()
Returns an array of content types for the files |
java.lang.String |
getName()
|
IMimeMultipart |
getNewValue()
Return the MIME entity ot be added to the RichTextItem |
DominoDocument |
getParent()
Get the rich text item parent document. |
com.ibm.xsp.persistence.PersistedContent |
getPersistedContent(javax.faces.context.FacesContext context,
java.lang.String fieldName,
java.lang.String attachmentName)
|
lotus.domino.RichTextItem |
getRichTextItem()
Check if the item is a RichTextItem. |
java.lang.String |
getText()
|
boolean |
hasAttachmentsToSave()
Return true is there are attachments yet to be saved to the
RichTextItem |
boolean |
hasEmbeddedImagesToSave()
|
boolean |
isDiscarded()
|
boolean |
isHTMLConverted()
Returns true if the HTML is the result of a conversion that requires a user prompt |
boolean |
isMime()
|
boolean |
isSameAs(IMimeMultipart rval)
Returns the position |
void |
persistEmbeddedImage(UIInputRichText.EmbeddedImage embeddedImage)
create new persistent file for Embedded Image. |
void |
persistFile(UIFileuploadEx.UploadedFile file)
Create persistent file for Domino attachment |
void |
reActivate(DominoDocument curParent,
lotus.domino.Item curItem)
Reuse this DominoRichTextItem for the specidied Document and RichTextItem. |
void |
reActivate(DominoDocument curParent,
lotus.domino.RichTextItem curItem)
Reuse this DominoRichTextItem for the specidied Document and RichTextItem Set discarded false |
boolean |
reAddAttachments()
|
boolean |
reAddEmbeddedImages()
Marks all ebmedded images that are currently in STATE_INDOCUMENT to STATE_ADDED |
void |
removeAllAttachments()
Remove all attachment from this RichTextItem |
void |
removeAttachment(java.lang.String attachmentName,
java.util.Vector<lotus.domino.EmbeddedObject> ve)
Remove the attachment, specified by attachmentName. |
void |
replaceNewValue(IMimeMultipart newValue)
Create a new MIME entity to be replace existing to the RichTextItem |
void |
setDiscarded(boolean discarded)
If the DominoRichTextItem has not already been discareded, recycle the wrapped MIME Entiry object nas set it to null |
void |
setEmbeddedImages(java.lang.String cidStr,
DominoDocument.AttachmentValueHolder av)
Add an embedded image specified by cidStr to this RichTextItem |
void |
setHTMLConverted(boolean isConverted)
Records if the HTML is the result of a conversion that requires a user prompt |
void |
setNewValue(IMimeMultipart newValue)
Create a new MIME entity to be added to the RichTextItem |
java.lang.String |
toString()
|
boolean |
updateRichTextItem(int curOperation)
Update the RichTextItem in the actual Document that this is a wrapper for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DominoRichTextItem(DominoDocument parent, lotus.domino.RichTextItem wrappedObject) throws lotus.domino.NotesException
parent
- The DominoDocument wrapper that contains the RichTextwrappedObject
- The lotus.domio.RichTextItem to be wrapped
lotus.domino.NotesException
public DominoRichTextItem(DominoDocument parent, lotus.domino.MIMEEntity wrappedObject, java.lang.String name) throws lotus.domino.NotesException
parent
- The DominoDocument wrapper that contains the RichTextwrappedObject
- The lotus.domio.RichTextItem to be wrappedname
- Name of the RIchTextItem field.
lotus.domino.NotesException
Method Detail |
---|
public java.lang.String getName()
public DominoDocument getParent()
lotus.domino.NotesException
public lotus.domino.RichTextItem getRichTextItem() throws lotus.domino.NotesException
Check if the item is a RichTextItem.
lotus.domino.NotesException
public lotus.domino.Item getItem() throws lotus.domino.NotesException
lotus.domino.NotesException
public lotus.domino.MIMEEntity getMIMEEntity() throws lotus.domino.NotesException
lotus.domino.NotesException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getHTML()
IMimeMultipart
getHTML
in interface IMimeMultipart
public java.lang.String getContentAsText()
IMimeMultipart
getContentAsText
in interface IMimeMultipart
public boolean isSameAs(IMimeMultipart rval)
IMimeMultipart
isSameAs
in interface IMimeMultipart
public java.lang.String getText() throws lotus.domino.NotesException
lotus.domino.NotesException
public boolean isMime()
true
if RichTextItem storage format is MIMEpublic static IMimeMultipart convertToMime(java.lang.Object value)
value
-
public long getContentLength()
IMimeMultipart
getContentLength
in interface IMimeMultipart
public java.lang.String getItemName()
getItemName
in interface IMimeMultipart
IMimeMultipart.getItemName()
public long[] getMimeLengths()
IMimeMultipart
getMimeLengths
in interface IMimeMultipart
IMimeMultipart.getMimeLengths()
public IMimePart[] getMimeParts()
IMimeMultipart
getMimeParts
in interface IMimeMultipart
IMimeMultipart.getMimeParts()
public java.lang.String[] getMimeTypes()
IMimeMultipart
getMimeTypes
in interface IMimeMultipart
IMimeMultipart.getMimeTypes()
public boolean addRichTextItem() throws lotus.domino.NotesException
lotus.domino.NotesException
public boolean updateRichTextItem(int curOperation) throws lotus.domino.NotesException
curOperation
- operation such as ITEM_ADD_OPERATION
lotus.domino.NotesException
public java.util.List<DominoDocument.AttachmentValueHolder> getAttachmentList(javax.faces.context.FacesContext context) throws lotus.domino.NotesException
context
-
lotus.domino.NotesException
public java.util.ArrayList<DominoDocument.AttachmentValueHolder> getEmbeddedImagesList()
public void removeAttachment(java.lang.String attachmentName, java.util.Vector<lotus.domino.EmbeddedObject> ve) throws lotus.domino.NotesException
ve
list of attachement if the RichTextItem is not MIME.
attachmentName
- ve
-
lotus.domino.NotesException
public void removeAllAttachments() throws lotus.domino.NotesException
lotus.domino.NotesException
public void addAttachment(com.ibm.xsp.persistence.PersistedContent pc, java.io.File content, DominoDocument.AttachmentValueHolder att) throws lotus.domino.NotesException
lotus.domino.NotesException
public DominoDocument.AttachmentValueHolder getEmbeddedImage(java.lang.String cidStr)
cidStr
cidStr
-
public void setEmbeddedImages(java.lang.String cidStr, DominoDocument.AttachmentValueHolder av)
cidStr
to this RichTextItem
cidStr
- av
- public boolean hasEmbeddedImagesToSave()
public boolean reAddEmbeddedImages()
public boolean reAddAttachments() throws lotus.domino.NotesException
lotus.domino.NotesException
public boolean isDiscarded()
public void closeMIMEEntities(boolean persist) throws lotus.domino.NotesException
persist
- Whether MIME entity content and header changes are saved in the associated in-memory items.
lotus.domino.NotesException
public void setDiscarded(boolean discarded)
discarded
- public void reActivate(DominoDocument curParent, lotus.domino.RichTextItem curItem)
curParent
- curItem
- public void reActivate(DominoDocument curParent, lotus.domino.Item curItem) throws lotus.domino.NotesException
curParent
- curItem
-
lotus.domino.NotesException
public void clearCachedData(java.lang.String _persistenceFolder)
_persistenceFolder
- public void applyAttachments() throws lotus.domino.NotesException
lotus.domino.NotesException
public void persistFile(UIFileuploadEx.UploadedFile file) throws lotus.domino.NotesException
file
-
lotus.domino.NotesException
public void persistEmbeddedImage(UIInputRichText.EmbeddedImage embeddedImage) throws lotus.domino.NotesException
embeddedImage
-
lotus.domino.NotesException
public java.lang.String computeUniqueAttachmentName(java.lang.String attachmentName)
attachmentName
-
public com.ibm.xsp.persistence.PersistedContent getPersistedContent(javax.faces.context.FacesContext context, java.lang.String fieldName, java.lang.String attachmentName) throws java.io.IOException
context
- fieldName
- attachmentName
-
java.io.IOException
public boolean hasAttachmentsToSave()
true
is there are attachments yet to be saved to the
RichTextItem
public IMimeMultipart getNewValue()
public void setNewValue(IMimeMultipart newValue)
newValue
- public void replaceNewValue(IMimeMultipart newValue) throws lotus.domino.NotesException
newValue
-
lotus.domino.NotesException
public boolean isHTMLConverted()
isHTMLConverted
in interface IMimeMultipart
public void setHTMLConverted(boolean isConverted)
setHTMLConverted
in interface IMimeMultipart
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |