|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.Context
public class Context
Report context (all attributes affecting the elements). This is mostly used internally to handle the report context setting. Applications should call ReportSheet methods to change the current context when populating a report.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.report.ReportElement |
|---|
AGGREGATE, AUTOSIZE, GROW, LOCAL_QUERY, QUERY, XNODEPATH |
| Constructor Summary | |
|---|---|
Context(ReportElement elem)
Save the current context from an element. |
|
Context(ReportSheet report)
Save the current context of a report. |
|
| Method Summary | |
|---|---|
Object |
clone()
Create a clone of this object. |
int |
getAlignment()
Get alignment setting. |
Color |
getBackground()
Get background color. |
Insets |
getCellPadding()
Get cell padding space. |
String |
getCSSClass()
Get the css class of the element |
Font |
getFont()
Get font setting. |
Color |
getForeground()
Get foreground color. |
String |
getFullName()
Get the id of this element. |
String |
getID()
Get the id of this element. |
double |
getIndent()
Get indent in inches. |
String |
getOnClick()
Get the Javascript onClick event handler. |
int |
getPainterLayout()
Get painter layout setting. |
Size |
getPreferredSize()
Return the size that is needed for this element. |
String |
getProperty(String name)
Get an property of this element. |
Enumeration |
getPropertyNames()
Get all attribute names. |
String |
getScript()
Get the script associated with this element. |
int |
getSpacing()
Get line spacing. |
int |
getTableLayout()
Get table layout setting. |
double |
getTableWidth()
Get table width setting. |
double[] |
getTabStops()
Get tab stops. |
String |
getTarget()
Get the hyperlink target (anchor) of this element. |
int |
getTextAdvance()
Get text advance amount in pixels. |
String |
getType()
Return the element type. |
Object |
getUserObject()
Get the user object. |
boolean |
isHideOnPrint()
Check if the element should be hidden for printing and exporting. |
boolean |
isKeepWithNext()
Check if this element should be kept on the same page as the next element. |
boolean |
isOrphanControl()
Check if widow/orphan control is on. |
boolean |
isVisible()
This method is ignored. |
void |
restore()
Restore the context in its associated report. |
void |
setAlignment(int align)
Set alignment setting. |
void |
setBackground(Color bg)
Set background color. |
void |
setCellPadding(Insets padding)
Set cell padding space. |
void |
setContext(ReportElement elem)
Set the attributes. |
void |
setCSSClass(String elementClass)
Set the css class of the element. |
void |
setFont(Font font)
Set font setting. |
void |
setForeground(Color fg)
Set foreground color. |
void |
setFullName(String id)
This method is ignored. |
void |
setHideOnPrint(boolean hide)
Set if the element should be hidden for printing and exporting. |
void |
setID(String id)
This method is ignored. |
void |
setIndent(double indent)
Set indent in inches. |
void |
setKeepWithNext(boolean keep)
Set keep with next. |
void |
setOnClick(String cmd)
Set the Javascript onClick event handler. |
void |
setOrphanControl(boolean orphan)
Set widow/orphan control. |
void |
setPainterLayout(int policy)
Set painter layout setting. |
void |
setProperty(String name,
String attr)
Set an property value. |
void |
setScript(String cmd)
Set the script associated with this element. |
void |
setSpacing(int spacing)
Set line spacing. |
void |
setTableLayout(int autosize)
Set table layout setting. |
void |
setTableWidth(double tblwidth)
Set table width setting. |
void |
setTabStops(double[] tabstops)
Set tab stops. |
void |
setTarget(String target)
Define the hyperlink target (anchor) of this element. |
void |
setTextAdvance(int adv)
Set text advance. |
void |
setUserObject(Object obj)
Set an user object. |
void |
setVisible(boolean vis)
This method is ignored. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(ReportSheet report)
public Context(ReportElement elem)
| Method Detail |
|---|
public void setContext(ReportElement elem)
setContext in interface ReportElementpublic void restore()
public String getID()
getID in interface ReportElementpublic void setID(String id)
setID in interface ReportElementpublic String getFullName()
getFullName in interface ReportElementpublic void setFullName(String id)
setFullName in interface ReportElementpublic boolean isVisible()
isVisible in interface ReportElementpublic void setVisible(boolean vis)
setVisible in interface ReportElementvis - false to hide an element.public String getType()
getType in interface ReportElementpublic int getAlignment()
getAlignment in interface ReportElementpublic void setAlignment(int align)
setAlignment in interface ReportElementpublic double getIndent()
getIndent in interface ReportElementpublic void setIndent(double indent)
setIndent in interface ReportElementpublic int getSpacing()
getSpacing in interface ReportElementpublic void setSpacing(int spacing)
setSpacing in interface ReportElementpublic Font getFont()
getFont in interface ReportElementpublic void setFont(Font font)
setFont in interface ReportElementpublic Color getForeground()
getForeground in interface ReportElementpublic void setForeground(Color fg)
setForeground in interface ReportElementpublic Color getBackground()
getBackground in interface ReportElementpublic void setBackground(Color bg)
setBackground in interface ReportElementpublic int getTableLayout()
public void setTableLayout(int autosize)
public int getPainterLayout()
public void setPainterLayout(int policy)
public Insets getCellPadding()
public void setCellPadding(Insets padding)
public double getTableWidth()
public void setTableWidth(double tblwidth)
public double[] getTabStops()
public void setTabStops(double[] tabstops)
public int getTextAdvance()
public void setTextAdvance(int adv)
public boolean isOrphanControl()
public void setOrphanControl(boolean orphan)
public boolean isKeepWithNext()
isKeepWithNext in interface ReportElementpublic void setKeepWithNext(boolean keep)
setKeepWithNext in interface ReportElementpublic String getScript()
getScript in interface ReportElementpublic void setScript(String cmd)
setScript in interface ReportElementpublic String getOnClick()
getOnClick in interface ReportElementpublic void setOnClick(String cmd)
setOnClick in interface ReportElementpublic String getTarget()
getTarget in interface ReportElementpublic void setTarget(String target)
setTarget in interface ReportElementpublic boolean isHideOnPrint()
isHideOnPrint in interface ReportElementpublic void setHideOnPrint(boolean hide)
setHideOnPrint in interface ReportElementpublic String getProperty(String name)
getProperty in interface ReportElementname - property name.
public void setProperty(String name,
String attr)
setProperty in interface ReportElementname - property name.attr - property value. Use null value to remove an
property.public Enumeration getPropertyNames()
getPropertyNames in interface ReportElementpublic void setUserObject(Object obj)
setUserObject in interface ReportElementpublic Object getUserObject()
getUserObject in interface ReportElementpublic Object clone()
ReportElement
clone in interface ReportElementclone in class Objectpublic Size getPreferredSize()
ReportElement
getPreferredSize in interface ReportElementpublic void setCSSClass(String elementClass)
setCSSClass in interface ReportElementelementClass - the name of the class as defined in the
css style sheet.public String getCSSClass()
getCSSClass in interface ReportElement
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||