Style Intelligence v12.0

inetsoft.report
Interface TextElement

All Superinterfaces:
Cloneable, HyperlinkSupport, ReportElement, Serializable, TabElement
All Known Subinterfaces:
HeadingElement
All Known Implementing Classes:
PageLayout.InfoText, inetsoft.report.internal.TextElementDef

public interface TextElement
extends TabElement, HyperlinkSupport

A TextElement represents a text string. It can be a short string, or a multi-line paragraph. The text element can wrap into multiple lines, and can wrap around other elements.


Field Summary
 
Fields inherited from interface inetsoft.report.ReportElement
AGGREGATE, AUTOSIZE, GROW, LOCAL_QUERY, QUERY, XNODEPATH
 
Method Summary
 Object getData()
          Get the data in object, it's used for binding.
 String getText()
          Get the contents of this text element.
 int getTextAdvance()
          Get the advance amount after a text element.
 String getTextID()
          Get the textID, which is used for i18n support.
 TextLens getTextLens()
          Return the text lens of this text element.
 boolean isJustify()
          Get the line justify setting.
 boolean isOrphanControl()
          Get widow/orphan control.
 void setData(Object val)
          Set the data in object, it's used for binding.
 void setJustify(boolean justify)
          Set the line justify setting.
 void setOrphanControl(boolean orphan)
          Set the widow/orphan control.
 void setText(String text)
          Set the contents of this text element.
 void setTextAdvance(int textadv)
          Set the horizontal space after a text element.
 void setTextID(String textID)
          Set the textID, which is used for i18n support.
 void setTextLens(TextLens text)
          Set the contents of this text element.
 
Methods inherited from interface inetsoft.report.TabElement
getFillStyle, getTabStops, isRightTab, setFillStyle, setRightTab, setTabStops
 
Methods inherited from interface inetsoft.report.ReportElement
clone, getAlignment, getBackground, getCSSClass, getFont, getForeground, getFullName, getID, getIndent, getOnClick, getPreferredSize, getProperty, getPropertyNames, getScript, getSpacing, getTarget, getType, getUserObject, isHideOnPrint, isKeepWithNext, isVisible, setAlignment, setBackground, setContext, setCSSClass, setFont, setForeground, setFullName, setHideOnPrint, setID, setIndent, setKeepWithNext, setOnClick, setProperty, setScript, setSpacing, setTarget, setUserObject, setVisible
 
Methods inherited from interface inetsoft.report.HyperlinkSupport
getHyperlink, setHyperlink
 

Method Detail

getText

String getText()
Get the contents of this text element.


setText

void setText(String text)
Set the contents of this text element.


setTextLens

void setTextLens(TextLens text)
Set the contents of this text element.


getTextLens

TextLens getTextLens()
Return the text lens of this text element.


isJustify

boolean isJustify()
Get the line justify setting.

Returns:
true if lines are justified.

setJustify

void setJustify(boolean justify)
Set the line justify setting.

Parameters:
justify - true to justify lines.

getTextAdvance

int getTextAdvance()
Get the advance amount after a text element.


setTextAdvance

void setTextAdvance(int textadv)
Set the horizontal space after a text element.

Parameters:
textadv - gap in points.

isOrphanControl

boolean isOrphanControl()
Get widow/orphan control.


setOrphanControl

void setOrphanControl(boolean orphan)
Set the widow/orphan control. If orphan control is turned on, single line at the top and bottom of a page is avoided if text has multiple lines.


getData

Object getData()
Get the data in object, it's used for binding.


setData

void setData(Object val)
Set the data in object, it's used for binding.


getTextID

String getTextID()
Get the textID, which is used for i18n support.


setTextID

void setTextID(String textID)
Set the textID, which is used for i18n support.


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