public class RMTable extends RMParentShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
Constructor and Description |
---|
RMTable()
Creates a plain table.
|
RMTable(java.lang.String aDatasetKey)
Creates a table with given dataset key (and corresponding default grouping and details row).
|
Modifier and Type | Method and Description |
---|---|
void |
addChildWithTitle(RMTableRow aChild,
int anIndex,
java.lang.String aTitle)
Convenience to set a child title and add to the table.
|
RMTableRow |
addDetails(java.lang.String aKey)
Convenience to add details for grouping key.
|
void |
addGrouping(RMGrouping aGrouping,
int anIndex)
Adds a given grouping to the table at the given grouping index.
|
void |
addGroupingKey(java.lang.String aKey,
int anIndex)
Adds a grouping to the table for the given key string at the given grouping index.
|
RMTableRow |
addHeader(java.lang.String aKey)
Convenience to add header for grouping key.
|
RMTableRow |
addSummary(java.lang.String aKey)
Convenience to add summary for grouping key.
|
boolean |
childrenSuperSelectImmediately()
Editor method - indicates that children should super select immediately when split shape is super selected.
|
RMTable |
clone()
Standard clone implementation.
|
RMShape |
getChildWithTitle(java.lang.String aTitle)
Returns a specific child with the given name.
|
int |
getColumnCount()
Returns the number of columns that this table should be repeated over on the same page before paginating.
|
double |
getColumnSpacing()
Returns the space between a table that has more than one column (int printer points).
|
java.lang.String |
getDatasetKey()
Returns the dataset key associated with the table.
|
java.lang.String |
getFilterKey()
Returns the optional key chain expression string used to prune the table list derived from dataset key.
|
RMGrouper |
getGrouper()
Returns the grouper associated with the table.
|
RMGrouping |
getGrouping(int anIndex)
Returns the individual grouping at the given index.
|
RMGrouping |
getGrouping(java.lang.String aKey)
Returns the individual grouping that has the same key as the one given.
|
RMGrouping |
getGrouping(java.lang.String aKey,
boolean doCreate,
int anIndex)
Returns the individual grouping that has the same key as the one given, with option to create at index if missing.
|
int |
getGroupingCount()
Returns the number of groups in this table.
|
int |
getPageBreakGroupIndex()
Returns the index of the grouping in the grouper at which an explicit.
|
int |
getResizeBarAtPoint(RMPoint aPoint)
Returns the index of the resize bar that is hit by the given point.
|
RMRect |
getResizeBarBounds(int anIndex)
Returns the bounds rect of the resize bar for the child at the given index.
|
RMTableRow |
getRow(int anIndex)
Returns the specific table row at the given index.
|
RMTableRow |
getRow(java.lang.String aName)
Returns the specific table row with the given name.
|
boolean |
getStartingPageBreak()
Returns whether this table should always start on a new page (if in table group).
|
boolean |
getStrokeOnTop()
Override to paint table stroke on top.
|
boolean |
isPrintEvenIfGroupIsEmpty()
Returns whether table does printing even if no objects (which really depends on whether first row is a header
that does this).
|
void |
moveGrouping(int fromIndex,
int toIndex)
Moves the grouping at the first index so that it resides at the second index.
|
void |
paintShape(RMShapePainter aPntr)
Paints a table shape.
|
void |
paintShapeOver(RMShapePainter aPntr)
Paints stroke around table after all children have drawn.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Override to update rows when grouper changes and revalidate when child height changes.
|
void |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping.
|
RMShape |
rpgAll(ReportOwner anOwner,
RMShape aParent)
Report generation for table.
|
void |
setColumnCount(int aValue)
Sets the number of columns that this table should be repeated over on the same page before paginating.
|
void |
setColumnSpacing(double aValue)
Sets the space between a table that has more than one column (int printer points).
|
void |
setDatasetKey(java.lang.String aKeyPath)
Sets the dataset key associated with the table.
|
void |
setFilterKey(java.lang.String aKeyExpr)
Sets the optional key chain expression string used to prune the table list derived from dataset key.
|
void |
setGrouper(RMGrouper aGrouper)
Sets the grouper associated with the table.
|
void |
setPageBreakGroupIndex(int aValue)
Returns the index of the grouping in the grouper at which an explicit.
|
void |
setStartingPageBreak(boolean aFlag)
Sets whether this table should always start on a new page (if in table group).
|
void |
setTitleForChild(java.lang.String aNm1,
java.lang.String aNm2)
Sets title for child of given name to new name.
|
java.lang.String |
toString()
Standard to string implementation (prints class name and shape bounds).
|
addChild, addChild, addChild, addChild, bringShapesToFront, cloneDeep, divideShapeFromTop, fromXML, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getClipShape, getColor, getDatasetEntity, 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, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isUnderlined, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, 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, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setX, setXY, setXY, setXYP, setY, superSelectable, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
public RMTable()
public RMTable(java.lang.String aDatasetKey)
public java.lang.String getDatasetKey()
getDatasetKey
in class RMShape
public void setDatasetKey(java.lang.String aKeyPath)
public java.lang.String getFilterKey()
public void setFilterKey(java.lang.String aKeyExpr)
public RMGrouper getGrouper()
public void setGrouper(RMGrouper aGrouper)
public int getGroupingCount()
public RMGrouping getGrouping(int anIndex)
public RMGrouping getGrouping(java.lang.String aKey)
public RMGrouping getGrouping(java.lang.String aKey, boolean doCreate, int anIndex)
public void addGroupingKey(java.lang.String aKey, int anIndex)
public void addGrouping(RMGrouping aGrouping, int anIndex)
public void removeGrouping(RMGrouping aGrouping)
public void moveGrouping(int fromIndex, int toIndex)
public RMTableRow addHeader(java.lang.String aKey)
public RMTableRow addDetails(java.lang.String aKey)
public RMTableRow addSummary(java.lang.String aKey)
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class RMShape
public int getPageBreakGroupIndex()
public void setPageBreakGroupIndex(int aValue)
public boolean getStartingPageBreak()
public void setStartingPageBreak(boolean aFlag)
public boolean isPrintEvenIfGroupIsEmpty()
public int getColumnCount()
public void setColumnCount(int aValue)
public double getColumnSpacing()
public void setColumnSpacing(double aValue)
public RMTableRow getRow(int anIndex)
public RMTableRow getRow(java.lang.String aName)
public RMShape getChildWithTitle(java.lang.String aTitle)
public void setTitleForChild(java.lang.String aNm1, java.lang.String aNm2)
public void addChildWithTitle(RMTableRow aChild, int anIndex, java.lang.String aTitle)
public RMRect getResizeBarBounds(int anIndex)
public int getResizeBarAtPoint(RMPoint aPoint)
public boolean childrenSuperSelectImmediately()
childrenSuperSelectImmediately
in class RMShape
public RMShape rpgAll(ReportOwner anOwner, RMShape aParent)
rpgAll
in class RMParentShape
public void paintShape(RMShapePainter aPntr)
paintShape
in class RMShape
public void paintShapeOver(RMShapePainter aPntr)
paintShapeOver
in class RMShape
public boolean getStrokeOnTop()
getStrokeOnTop
in class RMShape
public RMTable clone()
clone
in class RMParentShape