PREV CLASS NEXT CLASS
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.workplace.wcm.api
Interface LibraryRichTextComponent
- All Superinterfaces:
- Document, Editable, EditableItem, EditableLibraryComponent, Hierarchical, Item, LibraryComponent, Localized, WCMApiObject, WorkflowedDocument
public interface LibraryRichTextComponent- extends EditableLibraryComponent
Represents a RichText component that exists in the Component Library.
A LibraryRichTextComponent is a LibraryComponent and must be stored as a separate entity in the repository.
A LibraryRichTextComponent can contain formatted rich text. This interface provides methods to retrieve and set the rich text contained within this component.
note: since v6.0.0, a LibraryComponent is referred to as a "Component" in the Authoring UI.
- See Also:
- LibraryComponent
Method Summary java.lang.String getRichText()
Return the rich text contained in this component as a String representation of the HTML.void setRichText(java.lang.String richText)
Sets value for this rich text component replacing any existing markup.
Methods inherited from interface com.ibm.workplace.wcm.api.Hierarchical getParentId
Methods inherited from interface com.ibm.workplace.wcm.api.Item getCreationDate, getDescription, getIdentity, getModifiedDate, getName, getTitle
Methods inherited from interface com.ibm.portal.Localized getLocales
Methods inherited from interface com.ibm.workplace.wcm.api.EditableItem setDescription, setName, setTitle
Method Detail getRichText
java.lang.String getRichText()
- Returns the rich text contained in this component as a String representation of the HTML.
- Returns:
- the rich text
setRichText
void setRichText(java.lang.String richText) throws com.ibm.workplace.wcm.api.exceptions.OperationFailedExceptionPREV CLASS NEXT CLASS
Sets value for this rich text component replacing any existing markup.
Images stored on the file system of the WebSphere Portal server can be embedded in the LibraryRichTextComponent. Embedded images are referenced in the HTML passed to setRichText(String) using a standard HTML img tag, the value of the src attribute of the img tag must be the absolute path to the image on the WebSphere Portal server's file system.
Example code:
// Set HTML with embedded image String embeddedImage = "<img src='/home/ibm/ibm.jpg' />"; lrtComponent.setRichText(embeddedImage);
- Parameters:
- richText - the rich text (HTML)
- Throws:
- com.ibm.workplace.wcm.api.exceptions.OperationFailedException - if the rich text could not be set
- java.lang.NullPointerException - if the argument to this method is null
Tree SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD