com.ibm.workplace.wcm.api
Interface TextComponent
- All Superinterfaces:
- ContentComponent
- public interface TextComponent
- extends ContentComponent
Represents a Text component.
A TextComponent is a ContentComponent and
cannot be stored as a separate entity in the repository.
A TextComponent contains plain text. This interface provides
methods to retrieve and set the text contained within this component.
note: since v6.0.0, a ContentComponent is
referred to as an "Element" in the Authoring UI.
- See Also:
ContentComponent
|
Method Summary |
java.lang.String |
getText()
Returns the text contained in this component as a String. |
void |
setText(java.lang.String text)
Sets the plain text contained in this TextComponent. |
getText
public java.lang.String getText()
- Returns the text contained in this component as a
String.
- Returns:
- the text
setText
public void setText(java.lang.String text)
- Sets the plain text contained in this
TextComponent.
- Parameters:
text - the text