Style Intelligence v12.0

inetsoft.report
Interface HeadingElement

All Superinterfaces:
Cloneable, HyperlinkSupport, ReportElement, Serializable, TabElement, TextElement

public interface HeadingElement
extends TextElement

A Heading element contains a heading text element. A heading element is a special text element. In addition to the text contain, a heading level number is added to the element. If a TOC element is added to the report, the contents of the TOC element is populated from all heading elements in the report.


Field Summary
 
Fields inherited from interface inetsoft.report.ReportElement
AGGREGATE, AUTOSIZE, GROW, LOCAL_QUERY, QUERY, XNODEPATH
 
Method Summary
 int getLevel()
          Get the heading level.
 boolean isShowNumber()
          Check if the heading displays the heading numbers in front of the heading text.
 boolean isShowPageNumber()
          Check if the heading displays the page numbers in TOC.
 void setLevel(int level)
          Set the heading level.
 void setShowNumber(boolean show)
          Set wheter the heading displays the heading numbers in front of the heading text.
 void setShowPageNumber(boolean spn)
          Set whether the heading displays the page numbers in TOC.
 
Methods inherited from interface inetsoft.report.TextElement
getData, getText, getTextAdvance, getTextID, getTextLens, isJustify, isOrphanControl, setData, setJustify, setOrphanControl, setText, setTextAdvance, setTextID, setTextLens
 
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

getLevel

int getLevel()
Get the heading level. The top level is 1.


setLevel

void setLevel(int level)
Set the heading level. The level can not be less than 1. The levels should be contiguous. For example, a heading element following a top level heading element (with level 1) should have a level of 1 or 2. If the heading level is not contiguous, the table of contents may not format the headings correctly.


isShowNumber

boolean isShowNumber()
Check if the heading displays the heading numbers in front of the heading text.


setShowNumber

void setShowNumber(boolean show)
Set wheter the heading displays the heading numbers in front of the heading text.


isShowPageNumber

boolean isShowPageNumber()
Check if the heading displays the page numbers in TOC.


setShowPageNumber

void setShowPageNumber(boolean spn)
Set whether the heading displays the page numbers in TOC.


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