public class RMTable
extends com.reportmill.shape.RMSplitShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
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 |
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.
|
void |
addHeader(java.lang.String aKey)
Convenience to add header for grouping key.
|
void |
addSummary(java.lang.String aKey)
Convenience to add summary for grouping key.
|
RMTable |
clone()
Standard clone implementation.
|
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.
|
void |
fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival for shape children.
|
int |
getColumnCount()
Returns the number of columns that this table should be repeated over on the same page before paginating.
|
float |
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.
|
com.reportmill.base.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.
|
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.
|
java.lang.Boolean |
getPaginate()
Returns whether the table is supposed to be paginated.
|
RMTableRow |
getRow(int anIndex)
Returns the specific table row at the given index.
|
boolean |
getStartingPageBreak()
Returns whether this table should always start on a new page (if in table group).
|
void |
moveGrouping(int fromIndex,
int toIndex)
Moves the grouping at the first index so that it resides at the second index.
|
void |
paintShape(com.reportmill.shape.RMShapePainter aPainter,
java.awt.Graphics2D aGraphics)
Paints a table shape.
|
void |
paintShapeOver(com.reportmill.shape.RMShapePainter aPainter,
java.awt.Graphics2D g)
Paints stroke around table after all children have drawn.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Called whenever grouper has changed to re-establish which rows remain and their order.
|
void |
removeGrouping(RMGrouping aGrouping)
Removes the given grouping.
|
void |
setColumnCount(int aValue)
Sets the number of columns that this table should be repeated over on the same page before paginating.
|
void |
setColumnSpacing(float 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(com.reportmill.base.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 |
setPaginate(java.lang.Boolean aValue)
Sets whether the table is supposed to be paginated.
|
void |
setReportMill(com.reportmill.base.ReportMill aReportMill)
Report generation.
|
void |
setReportMillDeep(com.reportmill.base.ReportMill aReportMill)
Override to stifle child rpg.
|
void |
setStartingPageBreak(boolean aFlag)
Sets whether this table should always start on a new page (if in table group).
|
java.lang.String |
toString()
Standard to string implementation (prints class name and shape bounds).
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
void |
toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML archival - override to suppress archival of children.
|
addChild, addChildWithTitle, addChildWithTitle, addChildWithTitle, childrenSuperSelectImmediately, cloneDeep, createLayout, getChildWithTitle, getResizeBarAtPoint, getResizeBarBounds, getTitleForChild, removeChild, setTitleForChild
acceptsChildren, acceptsMouse, 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, 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, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, 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, put, removeBinding, removeBinding, 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, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setUrl, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toXML, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, 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 com.reportmill.base.RMGrouper getGrouper()
public void setGrouper(com.reportmill.base.RMGrouper aGrouper)
public int getGroupingCount()
public RMGrouping getGrouping(int anIndex)
public RMGrouping getGrouping(java.lang.String aKey)
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 void addHeader(java.lang.String aKey)
public void addDetails(java.lang.String aKey)
public void addSummary(java.lang.String aKey)
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class RMShape
public java.lang.Boolean getPaginate()
public void setPaginate(java.lang.Boolean aValue)
public int getPageBreakGroupIndex()
public void setPageBreakGroupIndex(int aValue)
public boolean getStartingPageBreak()
public void setStartingPageBreak(boolean aFlag)
public int getColumnCount()
public void setColumnCount(int aValue)
public float getColumnSpacing()
public void setColumnSpacing(float aValue)
public RMTableRow getRow(int anIndex)
public void setReportMill(com.reportmill.base.ReportMill aReportMill)
setReportMill
in class RMShape
public void setReportMillDeep(com.reportmill.base.ReportMill aReportMill)
setReportMillDeep
in class RMShape
public void paintShape(com.reportmill.shape.RMShapePainter aPainter, java.awt.Graphics2D aGraphics)
paintShape
in class RMShape
public void paintShapeOver(com.reportmill.shape.RMShapePainter aPainter, java.awt.Graphics2D g)
paintShapeOver
in class RMShape
public boolean equals(java.lang.Object anObj)
equals
in class com.reportmill.shape.RMSplitShape
public RMTable clone()
clone
in class com.reportmill.shape.RMSplitShape
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public void toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
toXMLShapeChildren
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape
public void fromXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShapeChildren
in class RMShape