Package com.reportmill.shape
Class RMTableRow
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.shape.RMShape
- 
- com.reportmill.shape.RMSwitchShape
- 
- com.reportmill.shape.RMTableRow
 
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMTableRow extends RMSwitchShape This class models a table row in a table.
- 
- 
Field SummaryFields Modifier and Type Field Description static int_moveHandlestatic java.lang.StringVersionAlternatestatic java.lang.StringVersionFirstOnlystatic java.lang.StringVersionReprintstatic java.lang.StringVersionSplitHeaderstatic java.lang.StringVersionStandardstatic java.lang.StringVersionTopNOthers- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMTableRow()Creates a plain, unstructured table row.RMTableRow(boolean isStructured)Creates a table row allowing the user to specify whether it should be structured.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(RMShape aChild, int anIndex)Overrides standard shape method to turn off structuring if child isn't text.voidarrange()Recalcs column widths to fill table row width.voidarrangeWithShape(RMShape aShape)Recalcs column widths to fill table row width.voidboundsChanged(RMShape shape)Notification method - relays out children when bounds are changed.booleancanBeUngrouped()Editor method - states that this shape can't be ungrouped.booleanchildrenSuperSelectImmediately()Editor method - states that children super-select immediately when table row is structured.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.RMTextgetColumn(int anIndex)Returns the column at the given index (assumes row is structured and column is RMText).floatgetMinSplitHeight()Returns the minimum distance in points from the top of the row that this row can split.floatgetMinSplitRemainderHeight()Returns the minimum distance in points from the bottom of the row that this row can split.booleangetMoveToBottom()Returns whether this row should be moved to the bottom of the table during report generation.intgetNumberOfChildrenToStayWith()Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.intgetNumberOfColumns()Returns the number of columns in this table row (really just child count).booleangetPrintEvenIfGroupIsEmpty()Returns whether this row should print even if it has no children (assumed to be a header/summary row).booleangetReprintWhenWrapped()Returns whether this row is reprinted on a new page when it's children cross a page boundary.RMTableRowgetRowAbove()Returns the row above this one in the template.booleangetSyncStructureWithAlternates()Returns whether table row should synchronize the column widths of alternate versions.booleangetSyncStructureWithRowAbove()Returns whether table row should synchronize the column widths of the row immediately above it.java.lang.StringgetTitle()Returns the title for this table row in it's parent table.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.booleanisStructured()Returns whether this table row is structured.RMShaperpgClone(ReportMill rm, RMGroup group, java.lang.String suggestedVersion)This rpgClone method hands things off to RMTableRowRPG.java.lang.ObjectrpgCloneBase()This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.voidrpgCloneNotification(ReportMill rm, RMShape copy)Overrides shape method to suppress normal notification (will send after table row's version).voidsetMinSplitHeight(float aValue)Sets the minimum distance in points from the top of the row that this row can split.voidsetMinSplitRemainderHeight(float aValue)Sets the minimum distance in points from the top of the row that this row can split.voidsetMoveToBottom(boolean aFlag)Sets whether this row should be moved to the bottom of the table during report generation.voidsetNumberOfChildrenToStayWith(int aValue)Sets the number of children this table row needs to be accompanied by, if some children run off page bottom.voidsetNumberOfColumns(int count)Sets the number of columns in this table row.voidsetPrintEvenIfGroupIsEmpty(boolean aFlag)Returns whether this row should print even if it has no children (assumed to be a header/summary row).voidsetReprintWhenWrapped(boolean aFlag)Sets whether this row is reprinted on a new page when it's children cross a page boundary.voidsetStructured(boolean aFlag)Sets whether this table row should be structured.voidsetStructured(boolean aFlag, boolean fixColumns)Sets whether this table row should be structured, with an option to re-layout children.voidsetSyncStructureWithAlternates(boolean aFlag)Sets whether table row should synchronize the column widths of alternate versions.voidsetSyncStructureWithRowAbove(boolean aFlag)Sets whether table row should synchronize the column widths of the row immediately above it.booleansizesToFitChildren()Editor method.voidsyncStructureWithShape(RMShape aShape)The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.java.lang.StringtoString()Returns a string description of the table row.RXElementtoXML(RXArchiver anArchiver)XML archival.protected voidtransferAttributes(RMSwitchShape toShape)Overrides switch shape method to specify additional attributes to be transferred when setVersion is called.- 
Methods inherited from class com.reportmill.shape.RMSwitchShapeacceptsChildren, acceptsMouse, alternateShapeInstance, clone, cloneDeep, getAlternates, getChildAnimator, getDefaultVersionName, getVersion, getVersion, getVersionKey, getVersionNames, hasAlternateVersions, hasMouseVersions, hasVersion, mouseEntered, mouseExited, removeVersion, rpgClone, rpgClone, setAlternates, setVersion, setVersion, setVersionKey, setWidthDeep, superSelectable
 - 
Methods inherited from class com.reportmill.shape.RMShapeacceptsDragKeys, acceptsFormat, addChild, addChildBelowLastChild, bounds, boundsChanged, bringShapesToFront, 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, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, 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, getListKey, 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, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgCloneChildren, rpgCloneConclude, rpgClonePrepare, rpgClonePreprocess, 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, setWidthToFit, setX, setXY, setXY, setXYP, setY, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Field Detail- 
VersionStandardpublic static final java.lang.String VersionStandard - See Also:
- Constant Field Values
 
 - 
VersionFirstOnlypublic static final java.lang.String VersionFirstOnly - See Also:
- Constant Field Values
 
 - 
VersionReprintpublic static final java.lang.String VersionReprint - See Also:
- Constant Field Values
 
 - 
VersionAlternatepublic static final java.lang.String VersionAlternate - See Also:
- Constant Field Values
 
 - 
VersionTopNOtherspublic static final java.lang.String VersionTopNOthers - See Also:
- Constant Field Values
 
 - 
VersionSplitHeaderpublic static final java.lang.String VersionSplitHeader - See Also:
- Constant Field Values
 
 - 
_moveHandlepublic static int _moveHandle 
 
- 
 - 
Method Detail- 
getTitlepublic java.lang.String getTitle() Returns the title for this table row in it's parent table.
 - 
isStructuredpublic boolean isStructured() Returns whether this table row is structured.
 - 
setStructuredpublic void setStructured(boolean aFlag) Sets whether this table row should be structured.
 - 
setStructuredpublic void setStructured(boolean aFlag, boolean fixColumns)Sets whether this table row should be structured, with an option to re-layout children.
 - 
getSyncStructureWithRowAbovepublic boolean getSyncStructureWithRowAbove() Returns whether table row should synchronize the column widths of the row immediately above it.
 - 
setSyncStructureWithRowAbovepublic void setSyncStructureWithRowAbove(boolean aFlag) Sets whether table row should synchronize the column widths of the row immediately above it.
 - 
getSyncStructureWithAlternatespublic boolean getSyncStructureWithAlternates() Returns whether table row should synchronize the column widths of alternate versions.
 - 
setSyncStructureWithAlternatespublic void setSyncStructureWithAlternates(boolean aFlag) Sets whether table row should synchronize the column widths of alternate versions.
 - 
getColumnpublic RMText getColumn(int anIndex) Returns the column at the given index (assumes row is structured and column is RMText).
 - 
getNumberOfColumnspublic int getNumberOfColumns() Returns the number of columns in this table row (really just child count).
 - 
setNumberOfColumnspublic void setNumberOfColumns(int count) Sets the number of columns in this table row.
 - 
getNumberOfChildrenToStayWithpublic int getNumberOfChildrenToStayWith() Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.
 - 
setNumberOfChildrenToStayWithpublic void setNumberOfChildrenToStayWith(int aValue) Sets the number of children this table row needs to be accompanied by, if some children run off page bottom.
 - 
getReprintWhenWrappedpublic boolean getReprintWhenWrapped() Returns whether this row is reprinted on a new page when it's children cross a page boundary.
 - 
setReprintWhenWrappedpublic void setReprintWhenWrapped(boolean aFlag) Sets whether this row is reprinted on a new page when it's children cross a page boundary.
 - 
getPrintEvenIfGroupIsEmptypublic boolean getPrintEvenIfGroupIsEmpty() Returns whether this row should print even if it has no children (assumed to be a header/summary row).
 - 
setPrintEvenIfGroupIsEmptypublic void setPrintEvenIfGroupIsEmpty(boolean aFlag) Returns whether this row should print even if it has no children (assumed to be a header/summary row).
 - 
getMoveToBottompublic boolean getMoveToBottom() Returns whether this row should be moved to the bottom of the table during report generation.
 - 
setMoveToBottompublic void setMoveToBottom(boolean aFlag) Sets whether this row should be moved to the bottom of the table during report generation.
 - 
getMinSplitHeightpublic float getMinSplitHeight() Returns the minimum distance in points from the top of the row that this row can split.
 - 
setMinSplitHeightpublic void setMinSplitHeight(float aValue) Sets the minimum distance in points from the top of the row that this row can split.
 - 
getMinSplitRemainderHeightpublic float getMinSplitRemainderHeight() Returns the minimum distance in points from the bottom of the row that this row can split.
 - 
setMinSplitRemainderHeightpublic void setMinSplitRemainderHeight(float aValue) Sets the minimum distance in points from the top of the row that this row can split.
 - 
arrangepublic void arrange() Recalcs column widths to fill table row width.
 - 
arrangeWithShapepublic void arrangeWithShape(RMShape aShape) Recalcs column widths to fill table row width.
 - 
syncStructureWithShapepublic void syncStructureWithShape(RMShape aShape) The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.
 - 
getRowAbovepublic RMTableRow getRowAbove() Returns the row above this one in the template.
 - 
addChildpublic void addChild(RMShape aChild, int anIndex) Overrides standard shape method to turn off structuring if child isn't text.
 - 
transferAttributesprotected void transferAttributes(RMSwitchShape toShape) Overrides switch shape method to specify additional attributes to be transferred when setVersion is called.- Overrides:
- transferAttributesin class- RMSwitchShape
 
 - 
rpgCloneBasepublic java.lang.Object rpgCloneBase() This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.- Overrides:
- rpgCloneBasein class- RMShape
 
 - 
rpgClonepublic RMShape rpgClone(ReportMill rm, RMGroup group, java.lang.String suggestedVersion) This rpgClone method hands things off to RMTableRowRPG.
 - 
rpgCloneNotificationpublic void rpgCloneNotification(ReportMill rm, RMShape copy) Overrides shape method to suppress normal notification (will send after table row's version).- Overrides:
- rpgCloneNotificationin class- RMShape
 
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- RMSwitchShape
 
 - 
copypublic void copy(java.lang.Object anObj) Standard copy implementation.- Overrides:
- copyin class- RMSwitchShape
 
 - 
canBeUngroupedpublic boolean canBeUngrouped() Editor method - states that this shape can't be ungrouped.- Overrides:
- canBeUngroupedin class- RMShape
 
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Editor method - states that children super-select immediately when table row is structured.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
sizesToFitChildrenpublic boolean sizesToFitChildren() Editor method.- Overrides:
- sizesToFitChildrenin class- RMShape
 
 - 
boundsChangedpublic void boundsChanged(RMShape shape) Notification method - relays out children when bounds are changed.- Overrides:
- boundsChangedin class- RMShape
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLin class- RMSwitchShape
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLin class- RMSwitchShape
 
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMSwitchShape
 
 
- 
 
-