|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMSplitShape
com.reportmill.shape.RMTable
public class RMTable
This RMShape subclass provides functionality to graphically represent a list of data in a ReportMill report. It also supports data manipulation such as grouping and sorting.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.reportmill.shape.RMSplitShape |
---|
com.reportmill.shape.RMSplitShape.RMSplitShapeLayout |
Field Summary | |
---|---|
static int |
DetailsPart
|
static int |
HeaderPart
|
static int |
SummaryPart
|
Fields inherited from class com.reportmill.shape.RMShape |
---|
WRAP_TYPE_BOTH, WRAP_TYPE_NONE |
Constructor Summary | |
---|---|
RMTable()
Creates a plain table. |
Method Summary | |
---|---|
RMTableRow |
addDetails(java.lang.String aKey)
Adds a details row for the given grouping key. |
void |
addGrouping(RMGrouping aGrouping,
int anIndex,
RMShape aHeader,
RMShape aDetails,
RMShape aSummary)
Adds a given grouping to the table at the givein grouping index. |
void |
addGroupingKey(java.lang.String aKey)
Adds a grouping to the table for the given key string. |
void |
addGroupingKey(java.lang.String aKey,
int anIndex,
RMShape aHeader,
RMShape aDetails,
RMShape aSummary)
Adds a grouping to the table for the given key string at the given grouping index. |
RMTableRow |
addHeader(java.lang.String aKey)
Adds a header row for the given grouping key. |
RMTableRow |
addSummary(java.lang.String aKey)
Adds a summary row for the given grouping key. |
java.lang.Object |
clone()
Standard clone implementation. |
void |
copy(java.lang.Object anObj)
Standard copy implementation. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
XML unarchival. |
float |
getColumnSpacing()
Returns the space between a table that has more than one column (int printer points). |
java.lang.String |
getFilterKey()
Returns the optional key chain expression string used to prune the table list derived from dataset key. |
com.reportmill.base.RMGrouper |
getGrouper()
Returns the grouper associated with the table. |
RMGrouping |
getGrouping(int anIndex)
Returns the individual grouping at the given index. |
RMGrouping |
getGrouping(java.lang.String aKey)
Returns the individual grouping that has the same key as the one given. |
int |
getGroupingCount()
Returns the number of groups in this table. |
java.lang.String |
getListKey()
Returns the list key associated with the table. |
int |
getNumberOfColumns()
Returns the number of columns that this table should be repeated over on the same page before paginating. |
int |
getPageBreakGroupIndex()
Returns the index of the grouping in the grouper at which an explicit. |
java.lang.Boolean |
getPaginate()
Returns whether the table is supposed to be paginated. |
RMTableRow |
getRow(int anIndex)
Returns the specific table row at the given index. |
boolean |
getStartingPageBreak()
Returns whether this table should always start on a new page (if in table group). |
void |
moveGrouping(int index1,
int index2)
Moves the grouping at the first index so that it resides at the second index. |
RMTableRow |
removeDetails(java.lang.String aKey)
Removes the details row for the given grouping key. |
void |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping. |
RMTableRow |
removeHeader(java.lang.String aKey)
Removes the header row for the given grouping key. |
RMTableRow |
removeSummary(java.lang.String aKey)
Removes the details row for the given grouping key. |
RMShape |
rpgClone(com.reportmill.base.ReportMill aReportMill)
Returns an individual page of a table. |
void |
rpgClonePreprocess(com.reportmill.base.ReportMill aReportMill)
Report generation method. |
void |
setColumnSpacing(float aValue)
Sets the space between a table that has more than one column (int printer points). |
void |
setFilterKey(java.lang.String aKeyExpr)
Sets the optional key chain expression string used to prune the table list derived from dataset key. |
void |
setListKey(java.lang.String aKeyPath)
Sets the list key associated with the table. |
void |
setNumberOfColumns(int aValue)
Sets the number of columns that this table should be repeated over on the same page before paginating. |
void |
setPageBreakGroupIndex(int aValue)
Returns the index of the grouping in the grouper at which an explicit. |
void |
setPaginate(java.lang.Boolean aValue)
Sets whether the table is supposed to be paginated. |
RMTableRow |
setShowGroupPart(int part,
java.lang.String aKey,
boolean add)
Adds or removes header/detail/summary rows for a given grouping key. |
void |
setStartingPageBreak(boolean aFlag)
Sets whether this table should always start on a new page (if in table group). |
java.lang.String |
toString()
Standard to string implementation (prints class name and shape bounds). |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML archival. |
void |
toXMLDeep(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
XML archival - override to suppress archival of children. |
void |
undoCopy(java.lang.Object anObj)
Undo copy to perform arrange children after undo. |
Methods inherited from class com.reportmill.shape.RMSplitShape |
---|
addChild, addChildWithTitle, arrangeChildren, boundsChanged, canBeUngrouped, childrenSuperSelectImmediately, getChildWithTitle, getResizeBarAtPoint, getResizeBarBounds, getTitleForChild, removeChild, superSelectable |
Methods inherited from class com.reportmill.base.RMObject |
---|
didUndo, getAnimAttribute, getClassNameShort |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HeaderPart
public static final int DetailsPart
public static final int SummaryPart
Constructor Detail |
---|
public RMTable()
Method Detail |
---|
public java.lang.String getListKey()
getListKey
in class RMShape
public void setListKey(java.lang.String aKeyPath)
public java.lang.String getFilterKey()
public void setFilterKey(java.lang.String aKeyExpr)
public com.reportmill.base.RMGrouper getGrouper()
public int getGroupingCount()
public RMGrouping getGrouping(int anIndex)
public RMGrouping getGrouping(java.lang.String aKey)
public void addGroupingKey(java.lang.String aKey)
public void addGroupingKey(java.lang.String aKey, int anIndex, RMShape aHeader, RMShape aDetails, RMShape aSummary)
public void addGrouping(RMGrouping aGrouping, int anIndex, RMShape aHeader, RMShape aDetails, RMShape aSummary)
public void removeGrouping(RMGrouping aGrouping)
public void moveGrouping(int index1, int index2)
public RMTableRow addHeader(java.lang.String aKey)
public RMTableRow removeHeader(java.lang.String aKey)
public RMTableRow addDetails(java.lang.String aKey)
public RMTableRow removeDetails(java.lang.String aKey)
public RMTableRow addSummary(java.lang.String aKey)
public RMTableRow removeSummary(java.lang.String aKey)
public RMTableRow setShowGroupPart(int part, java.lang.String aKey, boolean add)
public java.lang.Boolean getPaginate()
public void setPaginate(java.lang.Boolean aValue)
public int getPageBreakGroupIndex()
public void setPageBreakGroupIndex(int aValue)
public boolean getStartingPageBreak()
public void setStartingPageBreak(boolean aFlag)
public int getNumberOfColumns()
public void setNumberOfColumns(int aValue)
public float getColumnSpacing()
public void setColumnSpacing(float aValue)
public RMTableRow getRow(int anIndex)
public void rpgClonePreprocess(com.reportmill.base.ReportMill aReportMill)
rpgClonePreprocess
in class RMShape
public RMShape rpgClone(com.reportmill.base.ReportMill aReportMill)
rpgClone
in class RMShape
public boolean equals(java.lang.Object anObj)
equals
in class com.reportmill.shape.RMSplitShape
public java.lang.Object clone()
clone
in class com.reportmill.shape.RMSplitShape
public void copy(java.lang.Object anObj)
copy
in class com.reportmill.shape.RMSplitShape
public void undoCopy(java.lang.Object anObj)
undoCopy
in class RMShape
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
toXML
in class RMShape
public void toXMLDeep(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
toXMLDeep
in class RMShape
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement)
fromXML
in class RMShape
public java.lang.String toString()
toString
in class RMShape
|
ReportMill 10 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |