Style Intelligence v12.0

inetsoft.report.lens
Class ParagraphLens

java.lang.Object
  extended by inetsoft.report.lens.ParagraphLens
All Implemented Interfaces:
TextLens, Serializable, Cloneable

public class ParagraphLens
extends Object
implements TextLens

This class converts a text string into paragraphs. A paragraph is defined as strings separated by one or more blank lines. Newlines in the paragraph are removed from the text. This is suitable to be used by convert a text stored in a file to print on screen. Because the ReportSheet supports text wrapping, it's often more appropriate to let the report control where the line wraps rather than using the newline in the data source.

See Also:
Serialized Form

Constructor Summary
ParagraphLens(TextLens text)
          Create a wrapper with the text contents.
 
Method Summary
 Object clone()
          Make a copy of this text lens.
 String getText()
          Get the text contents.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphLens

public ParagraphLens(TextLens text)
Create a wrapper with the text contents.

Parameters:
text - string value.
Method Detail

getText

public String getText()
Get the text contents.

Specified by:
getText in interface TextLens
Returns:
string value.

clone

public Object clone()
Description copied from interface: TextLens
Make a copy of this text lens.

Specified by:
clone in interface TextLens
Overrides:
clone in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.