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.

See Also:
ContentComponent

Field Summary
static java.lang.String COPYRIGHT
          Copyright statement
 
Method Summary
 java.lang.String getText()
          Returns the text contained in this component as a String.
 void setText(java.lang.String p_text)
          Sets the plain text contained in this TextComponent.
 
Methods inherited from interface com.ibm.workplace.wcm.api.ContentComponent
getContainer, getName
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement

See Also:
Constant Field Values
Method Detail

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 p_text)
Sets the plain text contained in this TextComponent.

Parameters:
p_text - the text