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,- Cloneable
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddDetails(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(String aKey) Adds a grouping to the table for the given key string.voidaddGroupingKey(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.Adds a header row for the given grouping key.addSummary(String aKey) Adds a summary row for the given grouping key.clone()Standard clone implementation.voidStandard copy implementation.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.voidfromXMLDeep(RXArchiver anArchiver, RXElement anElement) XML unarchival for shape childrenfloatReturns the space between a table that has more than one column (int printer points).Returns the optional key chain (expression) used to limit the table list derived from list key.Returns the grouper associated with the table.getGrouping(int anIndex) Returns the individual grouping at the given index.getGrouping(String aKey) Returns the individual grouping that has the same key as the one given.intReturns the number of groups in this table.Returns the list key associated with the table.intReturns the number of columns that this table should be repeated over on the same page before paginating.intReturns the index of the grouping in the grouper at which an explicit.Returns whether the table is supposed to be paginated.getRow(int anIndex) Returns the specific table row at the given index.Returns the currently selected grouping (while editing only).intReturns the currently selected grouping's index (for editing, mostly).Returns the currently selected grouping's sort (while editing only).intReturns the currently selected grouping's currently selected sort (for editing, mostly).booleanReturns whether this table should always start on a new page (if in table group).voidCalled whenever grouper will be changed to handle undo.initWithArchiver(RMArchiver anArchiver) Legacy unarchival.voidmoveGrouping(int index1, int index2) Moves the grouping at the first index so that it resides at the second index.removeDetails(String aKey) Removes the details row for the given grouping key.voidremoveGrouping(RMGrouping aGrouping) Removes the given grouping.removeHeader(String aKey) Removes the header row for the given grouping key.removeSummary(String aKey) Removes the details row for the given grouping key.rpgClone(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(String aKeyExpr) Returns the optional key chain (expression) used to limit the table list derived from list key.voidsetListKey(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(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).setShowGroupPart(int part, int index, boolean add) Adds or removes header/details/summary row for a givein grouping index.setShowGroupPart(int part, 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).toString()Standard to string implementation (prints class name and shape bounds).toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.shape.RMSplitShapeaddChild, addChildWithTitle, arrangeChildren, canBeUngrouped, childrenSuperSelectImmediately, getChildWithTitle, getResizeBarAtPoint, getResizeBarBounds, getTitleForChild, removeChild, setHeightDeep, setWidthDeep, superSelectableMethods 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, yMethods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
- 
Field Details- 
HeaderPartpublic static final int HeaderPart- See Also:
 
- 
DetailsPartpublic static final int DetailsPart- See Also:
 
- 
SummaryPartpublic static final int SummaryPart- See Also:
 
 
- 
- 
Constructor Details- 
RMTablepublic RMTable()Creates a plain table.
 
- 
- 
Method Details- 
getListKeyReturns the list key associated with the table.- Overrides:
- getListKeyin class- RMShape
 
- 
setListKeySets the list key associated with the table.- Overrides:
- setListKeyin class- RMShape
 
- 
getFilterKeyReturns the optional key chain (expression) used to limit the table list derived from list key.
- 
setFilterKeyReturns the optional key chain (expression) used to limit the table list derived from list key.
- 
getGrouperReturns the grouper associated with the table.
- 
getPaginateReturns whether the table is supposed to be paginated.
- 
setPaginateSets 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.
- 
getGroupingReturns the individual grouping at the given index.
- 
getGroupingReturns the individual grouping that has the same key as the one given.
- 
getSelectedGroupingReturns the currently selected grouping (while editing only).
- 
getSelectedSortReturns the currently selected grouping's sort (while editing only).
- 
addGroupingKeyAdds a grouping to the table for the given key string.
- 
addGroupingKeypublic void addGroupingKey(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.
- 
removeGroupingRemoves 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.
- 
getRowReturns the specific table row at the given index.
- 
addHeaderAdds a header row for the given grouping key.
- 
removeHeaderRemoves the header row for the given grouping key.
- 
addDetailsAdds a details row for the given grouping key.
- 
removeDetailsRemoves the details row for the given grouping key.
- 
addSummaryAdds a summary row for the given grouping key.
- 
removeSummaryRemoves the details row for the given grouping key.
- 
setShowGroupPartAdds or removes header/detail/summary rows for a given grouping key.
- 
setShowGroupPartAdds 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).
- 
rpgClonePreprocessReport generation method.- Overrides:
- rpgClonePreprocessin class- RMShape
 
- 
rpgCloneReport generation method.
- 
equalsStandard equals implementation.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMSplitShape
 
- 
copyStandard copy implementation.
- 
initWithArchiverLegacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMSplitShape
 
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
- 
fromXMLDeepXML unarchival for shape children- Overrides:
- fromXMLDeepin class- RMShape
 
- 
toStringStandard to string implementation (prints class name and shape bounds).
 
-