Package com.reportmill.shape
Class RMTableGroup
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMTableGroup
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
This class manages a heirarchy of tables so that multiple tables can be configured to display in the same area
of a given page. Each table will pick up exactly where the previous table ended.
-
Field Summary
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Editor method - inidcates that table group doesn't accept children.void
addChildTable
(RMTable aTable) Adds the given table as a child to the main table.void
addChildTable
(RMTable aTable, RMTable aParentTable) Adds the given table as a child of the given parent table.void
addChildTable
(RMTable aTable, RMTable aParentTable, RMTable afterThisTable) Adds the given table table as a child of the parent table (after the third given table).void
addPeerTable
(RMTable aTable) Adds the given table to the main table's list of peers.void
addPeerTable
(RMTable aTable, RMTable afterThisTable) Adds the given table as a peer, and just after, the second given table.boolean
Editor method - indicates that table group can't be ungrouped.boolean
Edtior method - indicates that table group children (tables) super select immediately.clone()
Standard clone implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.void
fromXML
(RXArchiver anArchiver, RXElement anElement, RMTable aParentTable) XML archival to recursively unarchive table group hierarchy.getChildTable
(int anIndex) Returns the top level table at the given index for this table group.getChildTable
(Object aTable, int anIndex) Returns the specific child table of the given table at the given index.int
Returns the number of top level tables in this table group.int
getChildTableCount
(Object aTable) Returns the number of child tables for the given parent table.Returns the list of top level tables for this table group.getChildTables
(Object aTable) Returns the list of child tables for the given table.getChildTables
(Object aTable, boolean create) Returns the list of child tables for the given table, creating the list if requested.Returns the complete list key for the current main table (pre-pending list keys of parents).Returns the main table.Returns the currently selected table.getParentTable
(RMTable aTable) Returns the parent of the given table.getPeerTableNext
(RMTable aTable) Returns the next peer table of the given table.getPeerTablePrevious
(RMTable aTable) Returns the previous peer table of the given table.getPeerTables
(RMTable aTable) Returns the list of peer tables for a given table.int
Returns the index of the given table in its parent's child tables list.initWithArchiver
(RMArchiver anArchiver) Legacy unarchival.void
makeTableChildOfTable
(RMTable aTable, Object newParent) This method moves a table to a new parent (used for Move In and Move Out menus).void
This method moves a given table up or down in its peer list (used for Move Up & Move Down menus).void
removeTable
(RMTable aTable) This method removes a table from the table group.rpgClone
(ReportMill aReportMill) Report generation method.void
rpgClonePreprocess
(ReportMill aReportMill) Report generation method.void
setMainTable
(RMTable aTable) Sets the currently selected table.boolean
Editor method - indicates that table group is super selectable.toXML
(RXArchiver anArchiver) XML archival.void
toXML
(RXArchiver anArchiver, RXElement anElement, RMTable aParentTable) XML archival to recursively archive table group hierarchy.Methods inherited from class com.reportmill.shape.RMShape
acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, 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, copy, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, equals, fromXMLDeep, 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, 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, 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, setHeightDeep, setHeightToFit, setLineWidth, setListKey, 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, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
Methods inherited from class com.reportmill.base.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Constructor Details
-
RMTableGroup
public RMTableGroup()Creates a basic (empty) table group.
-
-
Method Details
-
getMainTable
Returns the currently selected table. -
setMainTable
Sets the currently selected table. -
getParentTable
Returns the parent of the given table. -
indexOf
Returns the index of the given table in its parent's child tables list. -
getPeerTables
Returns the list of peer tables for a given table. -
getPeerTablePrevious
Returns the previous peer table of the given table. -
getPeerTableNext
Returns the next peer table of the given table. -
getChildTableCount
public int getChildTableCount()Returns the number of top level tables in this table group. -
getChildTable
Returns the top level table at the given index for this table group. -
getChildTables
Returns the list of top level tables for this table group. -
getChildTableCount
Returns the number of child tables for the given parent table. -
getChildTable
Returns the specific child table of the given table at the given index. -
getChildTables
Returns the list of child tables for the given table. -
getChildTables
Returns the list of child tables for the given table, creating the list if requested. -
getListKey
Returns the complete list key for the current main table (pre-pending list keys of parents).- Overrides:
getListKey
in classRMShape
-
getListKeyShape
Returns the main table.- Overrides:
getListKeyShape
in classRMShape
-
addPeerTable
Adds the given table to the main table's list of peers. -
addPeerTable
Adds the given table as a peer, and just after, the second given table. -
addChildTable
Adds the given table as a child to the main table. -
addChildTable
Adds the given table as a child of the given parent table. -
addChildTable
Adds the given table table as a child of the parent table (after the third given table). -
moveTable
This method moves a given table up or down in its peer list (used for Move Up & Move Down menus). -
makeTableChildOfTable
This method moves a table to a new parent (used for Move In and Move Out menus). -
removeTable
This method removes a table from the table group. -
rpgClonePreprocess
Report generation method.- Overrides:
rpgClonePreprocess
in classRMShape
-
rpgClone
Report generation method. -
clone
Standard clone implementation. -
initWithArchiver
Legacy unarchival.- Specified by:
initWithArchiver
in interfaceRMArchiver.Archiving
- Overrides:
initWithArchiver
in classRMShape
-
toXML
XML archival. -
fromXML
XML unarchival. -
toXML
XML archival to recursively archive table group hierarchy. -
fromXML
XML archival to recursively unarchive table group hierarchy. -
superSelectable
public boolean superSelectable()Editor method - indicates that table group is super selectable.- Overrides:
superSelectable
in classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()Edtior method - indicates that table group children (tables) super select immediately.- Overrides:
childrenSuperSelectImmediately
in classRMShape
-
canBeUngrouped
public boolean canBeUngrouped()Editor method - indicates that table group can't be ungrouped.- Overrides:
canBeUngrouped
in classRMShape
-
acceptsChildren
public boolean acceptsChildren()Editor method - inidcates that table group doesn't accept children.- Overrides:
acceptsChildren
in classRMShape
-