public class RMTableRow extends RMSwitchShape
Modifier and Type | Class and Description |
---|---|
static class |
RMTableRow.ColumnResizeMode |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VersionAlternate |
static java.lang.String |
VersionFirstOnly |
static java.lang.String |
VersionReprint |
static java.lang.String |
VersionSplitHeader |
static java.lang.String |
VersionStandard |
static java.lang.String |
VersionTopNOthers |
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(RMShape aChild,
int anIndex,
java.lang.Object theConstraints)
Overrides standard shape method to turn off structuring if child isn't text.
|
boolean |
childrenSuperSelectImmediately()
Editor method - states that children super-select immediately when table row is structured.
|
RMTableRow |
cloneDeep(java.lang.String aVersion)
A clone deep implementation that only clones the given version.
|
com.reportmill.shape.RMShapeLayout |
createLayout()
Creates a new layout.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
com.reportmill.shape.RMTableRPGAdder |
getAdder()
Returns the adder for this table row.
|
RMText |
getColumn(int anIndex)
Returns the column at the given index (assumes row is structured and column is RMText).
|
RMTableRow.ColumnResizeMode |
getColumnResizeMode()
Returns the method used to resize row columns when row is resize (and structured).
|
com.reportmill.base.RMGroup |
getGroup()
Returns the group for this table row.
|
float |
getMinSplitHeight()
Returns the minimum distance in points from the top of the row that this row can split.
|
float |
getMinSplitRemainderHeight()
Returns the minimum distance in points from the bottom of the row that this row can split.
|
boolean |
getMoveToBottom()
Returns whether this row should be moved to the bottom of the table during report generation.
|
int |
getNumberOfChildrenToStayWith()
Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.
|
int |
getNumberOfColumns()
Returns the number of columns in this table row (really just child count).
|
java.lang.String |
getPageBreakKey()
Returns the key used to determine whether row should force a page break.
|
boolean |
getPrintEvenIfGroupIsEmpty()
Returns whether this row should print even if it has no children (assumed to be a header/summary row).
|
boolean |
getReprintWhenWrapped()
Returns whether this row is reprinted on a new page when it's children cross a page boundary.
|
RMTableRow |
getRowAbove()
Returns the row above this one in the template.
|
boolean |
getSyncStructureWithAlternates()
Returns whether table row should synchronize the column widths of alternate versions.
|
boolean |
getSyncStructureWithRowAbove()
Returns whether table row should synchronize the column widths of the row immediately above it.
|
RMTable |
getTable()
Returns the parent of this table row.
|
RMTableRow |
getTemplate()
Returns the template row for this table row rpg.
|
java.lang.String |
getTitle()
Returns the title for this table row in it's parent table.
|
boolean |
isDetails()
Returns whether this table row rpg is a details.
|
boolean |
isHeader()
Returns whether this table row rpg is a header.
|
boolean |
isStructured()
Returns whether this table row is structured.
|
boolean |
isSummary()
Returns whether this table row rpg is a summary.
|
void |
paintShape(com.reportmill.shape.RMShapePainter aPainter,
java.awt.Graphics2D g)
Paints table row.
|
RMShape |
rpgClone(com.reportmill.shape.RMTableRPGAdder anAdder,
com.reportmill.base.RMGroup aGroup,
java.lang.String suggestedVersion)
RPG Clone (Version priorities: TopNOthers, suggested, custom, standard/alternate).
|
void |
setColumnResizeMode(RMTableRow.ColumnResizeMode aMode)
Sets the method used to resize row columns when row is resize (and structured).
|
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 aCount)
Sets the number of columns in this table row.
|
void |
setPageBreakKey(java.lang.String aString)
Sets the key used to determine whether row should force a page break.
|
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 |
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.
|
void |
syncStructureWithShape(RMShape aShape)
The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.
|
java.lang.String |
toString()
Returns a string description of the table row.
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
acceptsChildren, acceptsMouse, clone, cloneDeep, cloneDeep, getAlternates, getAlternates, getChildAnimator, getDefaultVersionName, getVersion, getVersion, getVersionKey, getVersionNames, hasAlternateVersions, hasMouseVersions, hasVersion, removeVersion, setReportMill, setReportMill, setVersion, setVersionKey, setWidth, shapeHidden, shapeShown, superSelectable, toXML, toXMLShapeChildren
addBinding, addChild, addChild, addChild, animUpdate, bounds, bringShapesToFront, checkBindings, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, createPartClone, divideShapeFromEdge, divideShapeFromTop, doLayout, firePropertyChange, fromXML, fromXMLShapeChildren, fromXMLShapeLayout, get, get, getAction, getAncestor, getAncestorCount, getAncestorInCommon, getAnim, getAnim, getAnimator, getAnimator, getAspectMapped, getAspects, getAutosizing, getAutosizingDefault, getBinder, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getFill, getFloat, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPath, getPathInBounds, getPreferredSize, getPreferredSizeImpl, getPreferredSizeProperty, getPreferredSizeX, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isHittable, isHittableChild, isLocked, isMouseDown, isMouseOver, isRoot, isShowing, isUnderlined, isValid, isViewing, isVisible, isVisibleChild, isVisibleDeep, layoutReset, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeFromParent, repaint, repaint, resolvePageReferences, revalidate, sendShapesToBack, setAction, setAutosizing, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightToFit, setHover, setLayout, setLayoutEnabled, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setOutline, setParent, setPreferredSize, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setUrl, setVisible, setX, setXY, setXY, setXYP, setY, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
public static final java.lang.String VersionStandard
public static final java.lang.String VersionFirstOnly
public static final java.lang.String VersionReprint
public static final java.lang.String VersionAlternate
public static final java.lang.String VersionTopNOthers
public static final java.lang.String VersionSplitHeader
public RMTableRow()
public RMTableRow(boolean isStructured)
public RMTable getTable()
public java.lang.String getTitle()
public boolean isStructured()
public void setStructured(boolean aFlag)
public RMTableRow.ColumnResizeMode getColumnResizeMode()
public void setColumnResizeMode(RMTableRow.ColumnResizeMode aMode)
public boolean getSyncStructureWithRowAbove()
public void setSyncStructureWithRowAbove(boolean aFlag)
public boolean getSyncStructureWithAlternates()
public void setSyncStructureWithAlternates(boolean aFlag)
public RMText getColumn(int anIndex)
public int getNumberOfColumns()
public void setNumberOfColumns(int aCount)
public int getNumberOfChildrenToStayWith()
public void setNumberOfChildrenToStayWith(int aValue)
public boolean getReprintWhenWrapped()
public void setReprintWhenWrapped(boolean aFlag)
public boolean getPrintEvenIfGroupIsEmpty()
public void setPrintEvenIfGroupIsEmpty(boolean aFlag)
public boolean getMoveToBottom()
public void setMoveToBottom(boolean aFlag)
public float getMinSplitHeight()
public void setMinSplitHeight(float aValue)
public float getMinSplitRemainderHeight()
public void setMinSplitRemainderHeight(float aValue)
public java.lang.String getPageBreakKey()
public void setPageBreakKey(java.lang.String aString)
public void syncStructureWithShape(RMShape aShape)
public RMTableRow getRowAbove()
public void addChild(RMShape aChild, int anIndex, java.lang.Object theConstraints)
public boolean childrenSuperSelectImmediately()
childrenSuperSelectImmediately
in class RMShape
public void paintShape(com.reportmill.shape.RMShapePainter aPainter, java.awt.Graphics2D g)
paintShape
in class RMSwitchShape
public com.reportmill.shape.RMTableRPGAdder getAdder()
public com.reportmill.base.RMGroup getGroup()
public RMTableRow getTemplate()
public boolean isHeader()
public boolean isDetails()
public boolean isSummary()
public RMShape rpgClone(com.reportmill.shape.RMTableRPGAdder anAdder, com.reportmill.base.RMGroup aGroup, java.lang.String suggestedVersion)
public com.reportmill.shape.RMShapeLayout createLayout()
createLayout
in class RMShape
public boolean equals(java.lang.Object anObj)
equals
in class RMSwitchShape
public RMTableRow cloneDeep(java.lang.String aVersion)
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMSwitchShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMSwitchShape