Package com.inductiveautomation.rm.shape
Class RMTableRow
- java.lang.Object
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMTableRow extends RMSwitchShape This class models a table row in a table.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMTableRow.ColumnResizeMode- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringVersionAlternatestatic java.lang.StringVersionFirstOnlystatic java.lang.StringVersionReprintstatic java.lang.StringVersionSplitHeaderstatic java.lang.StringVersionStandardstatic java.lang.StringVersionTopNOthers- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
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.booleanchildrenSuperSelectImmediately()Editor method - states that children super-select immediately when table row is structured.protected voidfromXMLChildren(RXArchiver anArchiver, RXElement anElement)Override to make sure structured children are sorted by X (wasn't necessarily so before RM14).protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMTextShapegetColumn(int anIndex)Returns the column at the given index (assumes row is structured and column is RMTextShape).booleangetDeleteVerticalSpansOfHiddenShapes()Returns whether layout deletes vertical spans of hidden shapes.doublegetMinSplitHeight()Returns the minimum distance in points from the top of the row that this row can split.doublegetMinSplitRemainderHeight()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).java.lang.StringgetPageBreakKey()Returns the key used to determine whether row should force a page break.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 its children cross a page boundary.RMTableRowgetRowAbove()Returns the row above this one in the template.booleangetShiftShapesBelowHiddenShapesUp()Returns whether to shift shapes below hidden shapes up.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.RMTablegetTable()Returns the parent of this table row.java.lang.StringgetTitle()Returns the title for this table row.booleanisStructured()Returns whether this table row is structured.voidpaintShape(RMShapePainter aPntr)Paints table row.voidsetDeleteVerticalSpansOfHiddenShapes(boolean aValue)Sets whether layout deletes vertical spans of hidden shapes.voidsetMinSplitHeight(double aValue)Sets the minimum distance in points from the top of the row that this row can split.voidsetMinSplitRemainderHeight(double 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 aCount)Sets the number of columns in this table row.voidsetPageBreakKey(java.lang.String aString)Sets the key used to determine whether row should force a page break.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 its children cross a page boundary.voidsetShiftShapesBelowHiddenShapesUp(boolean aValue)Sets whether to shift shapes below hidden shapes up.voidsetStructured(boolean aFlag)Sets whether this table row should be structured.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.voidsetTitle(java.lang.String aTitle)Sets the title for this table row.voidsyncStructureWithShape(RMParentShape 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.protected RXElementtoXMLShape(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.inductiveautomation.rm.shape.RMSwitchShapeacceptsChildren, clone, cloneDeep, getAlternates, getAlternates, getChildAnimator, getDefaultVersionName, getPropertyNames, getVersion, getVersion, getVersionKey, getVersionNames, hasVersion, isDeletable, removeVersion, rpgAll, rpgAllSuper, setChildAnimator, setVersion, setVersionKey, setWidth, shapeHidden, shapeShown, superSelectable, toXML, toXMLChildren
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addLayoutChild, bringShapesToFront, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
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
 
 
- 
 - 
Method Detail- 
getTablepublic RMTable getTable() Returns the parent of this table row.
 - 
getTitlepublic java.lang.String getTitle() Returns the title for this table row.
 - 
setTitlepublic void setTitle(java.lang.String aTitle) Sets the title for this table row.
 - 
isStructuredpublic boolean isStructured() Returns whether this table row is structured.
 - 
setStructuredpublic void setStructured(boolean aFlag) Sets whether this table row should be structured.
 - 
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 RMTextShape getColumn(int anIndex) Returns the column at the given index (assumes row is structured and column is RMTextShape).
 - 
getNumberOfColumnspublic int getNumberOfColumns() Returns the number of columns in this table row (really just child count).
 - 
setNumberOfColumnspublic void setNumberOfColumns(int aCount) 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 its children cross a page boundary.
 - 
setReprintWhenWrappedpublic void setReprintWhenWrapped(boolean aFlag) Sets whether this row is reprinted on a new page when its 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 double getMinSplitHeight() Returns the minimum distance in points from the top of the row that this row can split.
 - 
setMinSplitHeightpublic void setMinSplitHeight(double aValue) Sets the minimum distance in points from the top of the row that this row can split.
 - 
getMinSplitRemainderHeightpublic double getMinSplitRemainderHeight() Returns the minimum distance in points from the bottom of the row that this row can split.
 - 
setMinSplitRemainderHeightpublic void setMinSplitRemainderHeight(double aValue) Sets the minimum distance in points from the top of the row that this row can split.
 - 
getPageBreakKeypublic java.lang.String getPageBreakKey() Returns the key used to determine whether row should force a page break.
 - 
setPageBreakKeypublic void setPageBreakKey(java.lang.String aString) Sets the key used to determine whether row should force a page break.
 - 
getDeleteVerticalSpansOfHiddenShapespublic boolean getDeleteVerticalSpansOfHiddenShapes() Returns whether layout deletes vertical spans of hidden shapes.
 - 
setDeleteVerticalSpansOfHiddenShapespublic void setDeleteVerticalSpansOfHiddenShapes(boolean aValue) Sets whether layout deletes vertical spans of hidden shapes.
 - 
getShiftShapesBelowHiddenShapesUppublic boolean getShiftShapesBelowHiddenShapesUp() Returns whether to shift shapes below hidden shapes up.
 - 
setShiftShapesBelowHiddenShapesUppublic void setShiftShapesBelowHiddenShapesUp(boolean aValue) Sets whether to shift shapes below hidden shapes up.
 - 
syncStructureWithShapepublic void syncStructureWithShape(RMParentShape 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.- Overrides:
- addChildin class- RMParentShape
 
 - 
transferAttributesprotected void transferAttributes(RMSwitchShape toShape) Overrides switch shape method to specify additional attributes to be transferred when setVersion is called.- Overrides:
- transferAttributesin class- RMSwitchShape
 
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Editor method - states that children super-select immediately when table row is structured.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Paints table row.- Overrides:
- paintShapein class- RMSwitchShape
 
 - 
toXMLShapeprotected RXElement toXMLShape(RXArchiver anArchiver) XML archival.- Overrides:
- toXMLShapein class- RMSwitchShape
 
 - 
fromXMLShapeprotected void fromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Overrides:
- fromXMLShapein class- RMSwitchShape
 
 - 
fromXMLChildrenprotected void fromXMLChildren(RXArchiver anArchiver, RXElement anElement) Override to make sure structured children are sorted by X (wasn't necessarily so before RM14).- Overrides:
- fromXMLChildrenin class- RMParentShape
 
 
- 
 
-