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
,Cloneable
This class models a table row in a table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a plain, unstructured table row.RMTableRow
(boolean isStructured) Creates a table row allowing the user to specify whether it should be structured. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Overrides standard shape method to turn off structuring if child isn't text.void
arrange()
Recalcs column widths to fill table row width.void
arrangeWithShape
(RMShape aShape) Recalcs column widths to fill table row width.void
boundsChanged
(RMShape shape) Notification method - relays out children when bounds are changed.boolean
Editor method - states that this shape can't be ungrouped.boolean
Editor method - states that children super-select immediately when table row is structured.void
Standard copy implementation.boolean
Standard equals implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.getColumn
(int anIndex) Returns the column at the given index (assumes row is structured and column is RMText).float
Returns the minimum distance in points from the top of the row that this row can split.float
Returns the minimum distance in points from the bottom of the row that this row can split.boolean
Returns whether this row should be moved to the bottom of the table during report generation.int
Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.int
Returns the number of columns in this table row (really just child count).boolean
Returns whether this row should print even if it has no children (assumed to be a header/summary row).boolean
Returns whether this row is reprinted on a new page when it's children cross a page boundary.Returns the row above this one in the template.boolean
Returns whether table row should synchronize the column widths of alternate versions.boolean
Returns whether table row should synchronize the column widths of the row immediately above it.getTitle()
Returns the title for this table row in it's parent table.initWithArchiver
(RMArchiver anArchiver) Legacy unarchival.boolean
Returns whether this table row is structured.rpgClone
(ReportMill rm, RMGroup group, String suggestedVersion) This rpgClone method hands things off to RMTableRowRPG.This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.void
rpgCloneNotification
(ReportMill rm, RMShape copy) Overrides shape method to suppress normal notification (will send after table row's version).void
setMinSplitHeight
(float aValue) Sets the minimum distance in points from the top of the row that this row can split.void
setMinSplitRemainderHeight
(float aValue) Sets the minimum distance in points from the top of the row that this row can split.void
setMoveToBottom
(boolean aFlag) Sets whether this row should be moved to the bottom of the table during report generation.void
setNumberOfChildrenToStayWith
(int aValue) Sets the number of children this table row needs to be accompanied by, if some children run off page bottom.void
setNumberOfColumns
(int count) Sets the number of columns in this table row.void
setPrintEvenIfGroupIsEmpty
(boolean aFlag) Returns whether this row should print even if it has no children (assumed to be a header/summary row).void
setReprintWhenWrapped
(boolean aFlag) Sets whether this row is reprinted on a new page when it's children cross a page boundary.void
setStructured
(boolean aFlag) Sets whether this table row should be structured.void
setStructured
(boolean aFlag, boolean fixColumns) Sets whether this table row should be structured, with an option to re-layout children.void
setSyncStructureWithAlternates
(boolean aFlag) Sets whether table row should synchronize the column widths of alternate versions.void
setSyncStructureWithRowAbove
(boolean aFlag) Sets whether table row should synchronize the column widths of the row immediately above it.boolean
Editor method.void
syncStructureWithShape
(RMShape aShape) The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.toString()
Returns a string description of the table row.toXML
(RXArchiver anArchiver) XML archival.protected void
transferAttributes
(RMSwitchShape toShape) Overrides switch shape method to specify additional attributes to be transferred when setVersion is called.Methods inherited from class com.reportmill.shape.RMSwitchShape
acceptsChildren, 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.RMShape
acceptsDragKeys, 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.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Field Details
-
VersionStandard
- See Also:
-
VersionFirstOnly
- See Also:
-
VersionReprint
- See Also:
-
VersionAlternate
- See Also:
-
VersionTopNOthers
- See Also:
-
VersionSplitHeader
- See Also:
-
_moveHandle
public static int _moveHandle
-
-
Constructor Details
-
RMTableRow
public RMTableRow()Creates a plain, unstructured table row. -
RMTableRow
public RMTableRow(boolean isStructured) Creates a table row allowing the user to specify whether it should be structured.
-
-
Method Details
-
getTitle
Returns the title for this table row in it's parent table. -
isStructured
public boolean isStructured()Returns whether this table row is structured. -
setStructured
public void setStructured(boolean aFlag) Sets whether this table row should be structured. -
setStructured
public void setStructured(boolean aFlag, boolean fixColumns) Sets whether this table row should be structured, with an option to re-layout children. -
getSyncStructureWithRowAbove
public boolean getSyncStructureWithRowAbove()Returns whether table row should synchronize the column widths of the row immediately above it. -
setSyncStructureWithRowAbove
public void setSyncStructureWithRowAbove(boolean aFlag) Sets whether table row should synchronize the column widths of the row immediately above it. -
getSyncStructureWithAlternates
public boolean getSyncStructureWithAlternates()Returns whether table row should synchronize the column widths of alternate versions. -
setSyncStructureWithAlternates
public void setSyncStructureWithAlternates(boolean aFlag) Sets whether table row should synchronize the column widths of alternate versions. -
getColumn
Returns the column at the given index (assumes row is structured and column is RMText). -
getNumberOfColumns
public int getNumberOfColumns()Returns the number of columns in this table row (really just child count). -
setNumberOfColumns
public void setNumberOfColumns(int count) Sets the number of columns in this table row. -
getNumberOfChildrenToStayWith
public int getNumberOfChildrenToStayWith()Returns the number of children this table row needs to be accompanied by, if some children run off page bottom. -
setNumberOfChildrenToStayWith
public void setNumberOfChildrenToStayWith(int aValue) Sets the number of children this table row needs to be accompanied by, if some children run off page bottom. -
getReprintWhenWrapped
public boolean getReprintWhenWrapped()Returns whether this row is reprinted on a new page when it's children cross a page boundary. -
setReprintWhenWrapped
public void setReprintWhenWrapped(boolean aFlag) Sets whether this row is reprinted on a new page when it's children cross a page boundary. -
getPrintEvenIfGroupIsEmpty
public boolean getPrintEvenIfGroupIsEmpty()Returns whether this row should print even if it has no children (assumed to be a header/summary row). -
setPrintEvenIfGroupIsEmpty
public void setPrintEvenIfGroupIsEmpty(boolean aFlag) Returns whether this row should print even if it has no children (assumed to be a header/summary row). -
getMoveToBottom
public boolean getMoveToBottom()Returns whether this row should be moved to the bottom of the table during report generation. -
setMoveToBottom
public void setMoveToBottom(boolean aFlag) Sets whether this row should be moved to the bottom of the table during report generation. -
getMinSplitHeight
public float getMinSplitHeight()Returns the minimum distance in points from the top of the row that this row can split. -
setMinSplitHeight
public void setMinSplitHeight(float aValue) Sets the minimum distance in points from the top of the row that this row can split. -
getMinSplitRemainderHeight
public float getMinSplitRemainderHeight()Returns the minimum distance in points from the bottom of the row that this row can split. -
setMinSplitRemainderHeight
public void setMinSplitRemainderHeight(float aValue) Sets the minimum distance in points from the top of the row that this row can split. -
arrange
public void arrange()Recalcs column widths to fill table row width. -
arrangeWithShape
Recalcs column widths to fill table row width. -
syncStructureWithShape
The syncStructureWithShape() method sync's the column widths of receiver to those of given shape. -
getRowAbove
Returns the row above this one in the template. -
addChild
Overrides standard shape method to turn off structuring if child isn't text. -
transferAttributes
Overrides switch shape method to specify additional attributes to be transferred when setVersion is called.- Overrides:
transferAttributes
in classRMSwitchShape
-
rpgCloneBase
This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.- Overrides:
rpgCloneBase
in classRMShape
-
rpgClone
This rpgClone method hands things off to RMTableRowRPG. -
rpgCloneNotification
Overrides shape method to suppress normal notification (will send after table row's version).- Overrides:
rpgCloneNotification
in classRMShape
-
equals
Standard equals implementation.- Overrides:
equals
in classRMSwitchShape
-
copy
Standard copy implementation.- Overrides:
copy
in classRMSwitchShape
-
canBeUngrouped
public boolean canBeUngrouped()Editor method - states that this shape can't be ungrouped.- Overrides:
canBeUngrouped
in classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()Editor method - states that children super-select immediately when table row is structured.- Overrides:
childrenSuperSelectImmediately
in classRMShape
-
sizesToFitChildren
public boolean sizesToFitChildren()Editor method.- Overrides:
sizesToFitChildren
in classRMShape
-
boundsChanged
Notification method - relays out children when bounds are changed.- Overrides:
boundsChanged
in classRMShape
-
toXML
XML archival.- Overrides:
toXML
in classRMSwitchShape
-
fromXML
XML unarchival.- Overrides:
fromXML
in classRMSwitchShape
-
initWithArchiver
Legacy unarchival.- Specified by:
initWithArchiver
in interfaceRMArchiver.Archiving
- Overrides:
initWithArchiver
in classRMSwitchShape
-
toString
Returns a string description of the table row.
-