Package com.inductiveautomation.rm.shape
Class RMTableGroup
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
com.inductiveautomation.rm.shape.RMParentShape
com.inductiveautomation.rm.shape.RMTableGroup
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
This class manages a hierarchy 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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddChildTable(RMTable aTable) Adds the given table as a child to the main table.voidaddChildTable(RMTable aTable, RMTable aParentTable) Adds the given table as a child of the given parent table.voidaddChildTable(RMTable aTable, RMTable aParentTable, RMTable afterThisTable) Adds the given table table as a child of the parent table (after the third given table).voidaddPeerTable(RMTable aTable) Adds the given table to the main table's list of peers.voidaddPeerTable(RMTable aTable, RMTable afterThisTable) Adds the given table as a peer, and just after, the second given table.booleanEditor method - indicates that table group children (tables) super select immediately.clone()Standard clone implementation.Override to clone child tables.protected voidfromXMLChildren(RXArchiver anArchiver, RXElement anElement) XML unarchival - overridden to unarchive all child tables, recursively.protected voidfromXMLChildTables(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.intReturns the number of top level tables in this table group.intgetChildTableCount(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 dataset key for the current main table (pre-pending dataset keys of parents).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.booleanOverride to paint table stroke on top.intReturns the index of the given table in its parent's child tables list.protected voidOverride to reset child in bounds.voidmakeTableChildOfTable(RMTable aTable, Object newParent) This method moves a table to a new parent (used for Move In and Move Out menus).voidThis method moves a given table up or down in its peer list (used for Move Up & Move Down menus).voidpaintShapeOver(RMShapePainter aPntr) Paints table group button after child table has been drawn.voidremoveTable(RMTable aTable) This method removes a table from the table group.rpgAll(ReportOwner anRptOwner, RMShape aParent) Override to set main table to first child table.voidsetMainTable(RMTable aTable) Sets the currently selected table.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement) XML archival - override to archive all child tables (not just visible one), recursively.protected voidtoXMLChildTables(RXArchiver anArchiver, RXElement anElement, RMTable aParentTable) XML archival to recursively archive table group hierarchy.protected RXElementtoXMLShape(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLShape, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXMLMethods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, 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, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, 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, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, 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, isDeletable, 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, paintShape, paintShapeAll, paintShapeChildren, 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, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMTableGrouppublic RMTableGroup()
 
- 
- 
Method Details- 
getMainTableReturns the currently selected table.
- 
setMainTableSets the currently selected table.
- 
getParentTableReturns the parent of the given table.
- 
indexOfReturns the index of the given table in its parent's child tables list. Returns -1 if not found
- 
getPeerTablesReturns the list of peer tables for a given table.
- 
getPeerTablePreviousReturns the previous peer table of the given table.
- 
getPeerTableNextReturns the next peer table of the given table.
- 
getChildTableCountpublic int getChildTableCount()Returns the number of top level tables in this table group.
- 
getChildTableReturns the top level table at the given index for this table group.
- 
getChildTablesReturns the list of top level tables for this table group.
- 
getChildTableCountReturns the number of child tables for the given parent table.
- 
getChildTableReturns the specific child table of the given table at the given index.
- 
getChildTablesReturns the list of child tables for the given table.
- 
getChildTablesReturns the list of child tables for the given table, creating the list if requested.
- 
getDatasetKeyReturns the complete dataset key for the current main table (pre-pending dataset keys of parents).- Overrides:
- getDatasetKeyin class- RMShape
 
- 
addPeerTableAdds the given table to the main table's list of peers.
- 
addPeerTableAdds the given table as a peer, and just after, the second given table.
- 
addChildTableAdds the given table as a child to the main table.
- 
addChildTableAdds the given table as a child of the given parent table.
- 
addChildTableAdds the given table table as a child of the parent table (after the third given table).
- 
moveTableThis method moves a given table up or down in its peer list (used for Move Up & Move Down menus).
- 
makeTableChildOfTableThis method moves a table to a new parent (used for Move In and Move Out menus).
- 
removeTableThis method removes a table from the table group.
- 
paintShapeOverPaints table group button after child table has been drawn.- Overrides:
- paintShapeOverin class- RMShape
 
- 
getStrokeOnToppublic boolean getStrokeOnTop()Override to paint table stroke on top.- Overrides:
- getStrokeOnTopin class- RMShape
 
- 
layoutChildrenprotected void layoutChildren()Override to reset child in bounds.- Overrides:
- layoutChildrenin class- RMParentShape
 
- 
rpgAllOverride to set main table to first child table.- Overrides:
- rpgAllin class- RMParentShape
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMParentShape
 
- 
cloneDeepOverride to clone child tables.- Overrides:
- cloneDeepin class- RMParentShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
- 
toXMLChildrenXML archival - override to archive all child tables (not just visible one), recursively.- Overrides:
- toXMLChildrenin class- RMParentShape
 
- 
toXMLChildTablesXML archival to recursively archive table group hierarchy.
- 
fromXMLChildrenXML unarchival - overridden to unarchive all child tables, recursively.- Overrides:
- fromXMLChildrenin class- RMParentShape
 
- 
fromXMLChildTablesXML archival to recursively unarchive table group hierarchy.
- 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately()Editor method - indicates that table group children (tables) super select immediately.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 
-