Package com.reportmill.shape
Class RMTable
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShape
- 
- com.reportmill.shape.RMSplitShape
- 
- com.reportmill.shape.RMTable
 
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMTable extends RMSplitShape 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.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDetailsPartstatic intHeaderPartstatic intSummaryPart- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMTable()Creates a plain table.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMTableRowaddDetails(java.lang.String aKey)Adds a details row for the given grouping key.voidaddGrouping(RMGrouping aGrouping, int anIndex, RMShape aHeader, RMShape aDetails, RMShape aSummary)Adds a given grouping to the table at the givein grouping index.voidaddGroupingKey(java.lang.String aKey)Adds a grouping to the table for the given key string.voidaddGroupingKey(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.RMTableRowaddHeader(java.lang.String aKey)Adds a header row for the given grouping key.RMTableRowaddSummary(java.lang.String aKey)Adds a summary row for the given grouping key.java.lang.Objectclone()Standard clone implementation.voidcopy(java.lang.Object anObj)Standard copy implementation.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.voidfromXMLDeep(RXArchiver anArchiver, RXElement anElement)XML unarchival for shape childrenfloatgetColumnSpacing()Returns the space between a table that has more than one column (int printer points).java.lang.StringgetFilterKey()Returns the optional key chain (expression) used to limit the table list derived from list key.RMGroupergetGrouper()Returns the grouper associated with the table.RMGroupinggetGrouping(int anIndex)Returns the individual grouping at the given index.RMGroupinggetGrouping(java.lang.String aKey)Returns the individual grouping that has the same key as the one given.intgetGroupingCount()Returns the number of groups in this table.java.lang.StringgetListKey()Returns the list key associated with the table.intgetNumberOfColumns()Returns the number of columns that this table should be repeated over on the same page before paginating.intgetPageBreakGroupIndex()Returns the index of the grouping in the grouper at which an explicit.java.lang.BooleangetPaginate()Returns whether the table is supposed to be paginated.RMTableRowgetRow(int anIndex)Returns the specific table row at the given index.RMGroupinggetSelectedGrouping()Returns the currently selected grouping (while editing only).intgetSelectedGroupingIndex()Returns the currently selected grouping's index (for editing, mostly).RMSortgetSelectedSort()Returns the currently selected grouping's sort (while editing only).intgetSelectedSortIndex()Returns the currently selected grouping's currently selected sort (for editing, mostly).booleangetStartingPageBreak()Returns whether this table should always start on a new page (if in table group).voidgrouperWillChange()Called whenever grouper will be changed to handle undo.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.voidmoveGrouping(int index1, int index2)Moves the grouping at the first index so that it resides at the second index.RMTableRowremoveDetails(java.lang.String aKey)Removes the details row for the given grouping key.voidremoveGrouping(RMGrouping aGrouping)Removes the given grouping.RMTableRowremoveHeader(java.lang.String aKey)Removes the header row for the given grouping key.RMTableRowremoveSummary(java.lang.String aKey)Removes the details row for the given grouping key.RMShaperpgClone(ReportMill aReportMill)Report generation method.voidrpgClonePreprocess(ReportMill aReportMill)Report generation method.voidsetColumnSpacing(float aValue)Sets the space between a table that has more than one column (int printer points).voidsetFilterKey(java.lang.String aKeyExpr)Returns the optional key chain (expression) used to limit the table list derived from list key.voidsetListKey(java.lang.String aKeyPath)Sets the list key associated with the table.voidsetNumberOfColumns(int aValue)Sets the number of columns that this table should be repeated over on the same page before paginating.voidsetPageBreakGroupIndex(int aValue)Returns the index of the grouping in the grouper at which an explicit.voidsetPaginate(java.lang.Boolean aValue)Sets whether the table is supposed to be paginated.voidsetSelectedGroupingIndex(int anIndex)Sets the currently selected grouping by index (for editing, mostly).voidsetSelectedSortIndex(int anIndex)Sets the currently selected grouping's currently selected sort (for editing, mostly).RMTableRowsetShowGroupPart(int part, int index, boolean add)Adds or removes header/details/summary row for a givein grouping index.RMTableRowsetShowGroupPart(int part, java.lang.String aKey, boolean add)Adds or removes header/detail/summary rows for a given grouping key.voidsetStartingPageBreak(boolean aFlag)Sets whether this table should always start on a new page (if in table group).java.lang.StringtoString()Standard to string implementation (prints class name and shape bounds).RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.shape.RMSplitShapeaddChild, addChildWithTitle, arrangeChildren, canBeUngrouped, childrenSuperSelectImmediately, getChildWithTitle, getResizeBarAtPoint, getResizeBarBounds, getTitleForChild, removeChild, setHeightDeep, setWidthDeep, superSelectable
 - 
Methods inherited from class com.reportmill.shape.RMShapeacceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildrenWhoHitTest, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightToFit, setLineWidth, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Field Detail- 
HeaderPartpublic static final int HeaderPart - See Also:
- Constant Field Values
 
 - 
DetailsPartpublic static final int DetailsPart - See Also:
- Constant Field Values
 
 - 
SummaryPartpublic static final int SummaryPart - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getListKeypublic java.lang.String getListKey() Returns the list key associated with the table.- Overrides:
- getListKeyin class- RMShape
 
 - 
setListKeypublic void setListKey(java.lang.String aKeyPath) Sets the list key associated with the table.- Overrides:
- setListKeyin class- RMShape
 
 - 
getFilterKeypublic java.lang.String getFilterKey() Returns the optional key chain (expression) used to limit the table list derived from list key.
 - 
setFilterKeypublic void setFilterKey(java.lang.String aKeyExpr) Returns the optional key chain (expression) used to limit the table list derived from list key.
 - 
getGrouperpublic RMGrouper getGrouper() Returns the grouper associated with the table.
 - 
getPaginatepublic java.lang.Boolean getPaginate() Returns whether the table is supposed to be paginated.
 - 
setPaginatepublic void setPaginate(java.lang.Boolean aValue) Sets whether the table is supposed to be paginated.
 - 
getPageBreakGroupIndexpublic int getPageBreakGroupIndex() Returns the index of the grouping in the grouper at which an explicit.
 - 
setPageBreakGroupIndexpublic void setPageBreakGroupIndex(int aValue) Returns the index of the grouping in the grouper at which an explicit.
 - 
getStartingPageBreakpublic boolean getStartingPageBreak() Returns whether this table should always start on a new page (if in table group).
 - 
setStartingPageBreakpublic void setStartingPageBreak(boolean aFlag) Sets whether this table should always start on a new page (if in table group).
 - 
getNumberOfColumnspublic int getNumberOfColumns() Returns the number of columns that this table should be repeated over on the same page before paginating.
 - 
setNumberOfColumnspublic void setNumberOfColumns(int aValue) Sets the number of columns that this table should be repeated over on the same page before paginating.
 - 
getColumnSpacingpublic float getColumnSpacing() Returns the space between a table that has more than one column (int printer points).
 - 
setColumnSpacingpublic void setColumnSpacing(float aValue) Sets the space between a table that has more than one column (int printer points).
 - 
getGroupingCountpublic int getGroupingCount() Returns the number of groups in this table.
 - 
getGroupingpublic RMGrouping getGrouping(int anIndex) Returns the individual grouping at the given index.
 - 
getGroupingpublic RMGrouping getGrouping(java.lang.String aKey) Returns the individual grouping that has the same key as the one given.
 - 
getSelectedGroupingpublic RMGrouping getSelectedGrouping() Returns the currently selected grouping (while editing only).
 - 
getSelectedSortpublic RMSort getSelectedSort() Returns the currently selected grouping's sort (while editing only).
 - 
addGroupingKeypublic void addGroupingKey(java.lang.String aKey) Adds a grouping to the table for the given key string.
 - 
addGroupingKeypublic 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. You can also supply specific table rows for headers, details and/or summary.
 - 
addGroupingpublic void addGrouping(RMGrouping aGrouping, int anIndex, RMShape aHeader, RMShape aDetails, RMShape aSummary) Adds a given grouping to the table at the givein grouping index. You can also supply specific table rows for headers, details and/or summary.
 - 
removeGroupingpublic void removeGrouping(RMGrouping aGrouping) Removes the given grouping.
 - 
moveGroupingpublic void moveGrouping(int index1, int index2)Moves the grouping at the first index so that it resides at the second index.
 - 
getRowpublic RMTableRow getRow(int anIndex) Returns the specific table row at the given index.
 - 
addHeaderpublic RMTableRow addHeader(java.lang.String aKey) Adds a header row for the given grouping key.
 - 
removeHeaderpublic RMTableRow removeHeader(java.lang.String aKey) Removes the header row for the given grouping key.
 - 
addDetailspublic RMTableRow addDetails(java.lang.String aKey) Adds a details row for the given grouping key.
 - 
removeDetailspublic RMTableRow removeDetails(java.lang.String aKey) Removes the details row for the given grouping key.
 - 
addSummarypublic RMTableRow addSummary(java.lang.String aKey) Adds a summary row for the given grouping key.
 - 
removeSummarypublic RMTableRow removeSummary(java.lang.String aKey) Removes the details row for the given grouping key.
 - 
setShowGroupPartpublic RMTableRow setShowGroupPart(int part, java.lang.String aKey, boolean add) Adds or removes header/detail/summary rows for a given grouping key.
 - 
setShowGroupPartpublic RMTableRow setShowGroupPart(int part, int index, boolean add) Adds or removes header/details/summary row for a givein grouping index.
 - 
grouperWillChangepublic void grouperWillChange() Called whenever grouper will be changed to handle undo.
 - 
getSelectedGroupingIndexpublic int getSelectedGroupingIndex() Returns the currently selected grouping's index (for editing, mostly).
 - 
setSelectedGroupingIndexpublic void setSelectedGroupingIndex(int anIndex) Sets the currently selected grouping by index (for editing, mostly).
 - 
getSelectedSortIndexpublic int getSelectedSortIndex() Returns the currently selected grouping's currently selected sort (for editing, mostly).
 - 
setSelectedSortIndexpublic void setSelectedSortIndex(int anIndex) Sets the currently selected grouping's currently selected sort (for editing, mostly).
 - 
rpgClonePreprocesspublic void rpgClonePreprocess(ReportMill aReportMill) Report generation method.- Overrides:
- rpgClonePreprocessin class- RMShape
 
 - 
rpgClonepublic RMShape rpgClone(ReportMill aReportMill) Report generation method.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
clonepublic java.lang.Object clone() Standard clone implementation.- Overrides:
- clonein class- RMSplitShape
 
 - 
copypublic void copy(java.lang.Object anObj) Standard copy implementation.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMSplitShape
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 - 
fromXMLDeeppublic void fromXMLDeep(RXArchiver anArchiver, RXElement anElement) XML unarchival for shape children- Overrides:
- fromXMLDeepin class- RMShape
 
 
- 
 
-