org.kuali.student.r2.common.dto
Class RichTextInfo

java.lang.Object
  extended by org.kuali.student.r2.common.dto.RichTextInfo
All Implemented Interfaces:
Serializable, RichText

public class RichTextInfo
extends Object
implements RichText, Serializable

See Also:
Serialized Form

Constructor Summary
RichTextInfo()
          Constructs a new RichTextInfo.
RichTextInfo(RichText richText)
          Constructs a new RichTextInfo from another RichText.
RichTextInfo(String plain, String formatted)
          Constructs a new RichTextInfo from a plain and a formatted string
 
Method Summary
 String getFormatted()
          Formatted version of the rich text with all the formatting included.
 String getPlain()
          Plain text version of the rich text with all the special formatting stripped out.
 void setFormatted(String formatted)
           
 void setPlain(String plain)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RichTextInfo

public RichTextInfo()
Constructs a new RichTextInfo.


RichTextInfo

public RichTextInfo(RichText richText)
Constructs a new RichTextInfo from another RichText.

Parameters:
richText - the RichText to copy

RichTextInfo

public RichTextInfo(String plain,
                    String formatted)
Constructs a new RichTextInfo from a plain and a formatted string

Parameters:
plain - The Plain text representation
formatted - The Formatted text representation
Method Detail

getPlain

public String getPlain()
Description copied from interface: RichText
Plain text version of the rich text with all the special formatting stripped out.

Specified by:
getPlain in interface RichText

setPlain

public void setPlain(String plain)

getFormatted

public String getFormatted()
Description copied from interface: RichText
Formatted version of the rich text with all the formatting included. TODO: Define what format is to be used? Is it assumed to be HTML? or WORD? or Wiki?

Specified by:
getFormatted in interface RichText

setFormatted

public void setFormatted(String formatted)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.