Package com.reportmill.panels
Class CrossTabTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.reportmill.panels.CrossTabTool
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
This class provides GUI editing for RMCrossTab.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddCrossTab(RMEditor anEditor, String aKeyPath) Adds a crosstab to the given editor with the given list key.voidaddGroupingKey(String aKey) Adds a grouping key to the crosstab.voidaddSortingKey(String aKey) Adds a sorting key to the crosstab.Returns the class edited by this tool.getUI()Returns the Swing UI for the crosstab tool.Returns the name of this tool.voidmouseDragged(RMShape aShape, MouseEvent anEvent) Event handler for crosstab editing.voidmousePressed(RMShape aShape, MouseEvent anEvent) Event handler for crosstab editing.voidmoveGrouping(int sourceIndex, int destIndex) Moves a grouping from the first given index to the second given index.voidmoveSort(int sourceIndex, int destIndex) Moves a sort from the first given index to the second given index.voidprocessKeyEvent(RMShape aShape, KeyEvent anEvent) Key event handler for crosstab editing.voidresetUI()Updates the Swing UI from the currently selected crosstab.voidResponds to changes in the Swing UI controls.voidtakeValueFromDrop(Object anObj, RJAction anAction) Responds to a drag and drop.Methods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, reactivateTool, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
CrossTabToolpublic CrossTabTool()
 
- 
- 
Method Details- 
getUIReturns the Swing UI for the crosstab tool.
- 
resetUIpublic void resetUI()Updates the Swing UI from the currently selected crosstab.
- 
respondUIResponds to changes in the Swing UI controls.
- 
getShapeClassReturns the class edited by this tool.- Overrides:
- getShapeClassin class- Tool
 
- 
getWindowTitleReturns the name of this tool.- Overrides:
- getWindowTitlein class- Tool
 
- 
takeValueFromDropResponds to a drag and drop.
- 
addCrossTabAdds a crosstab to the given editor with the given list key.
- 
addGroupingKeyAdds a grouping key to the crosstab.
- 
addSortingKeyAdds a sorting key to the crosstab.
- 
moveGroupingpublic void moveGrouping(int sourceIndex, int destIndex) Moves a grouping from the first given index to the second given index.
- 
moveSortpublic void moveSort(int sourceIndex, int destIndex) Moves a sort from the first given index to the second given index.
- 
mousePressedEvent handler for crosstab editing.- Overrides:
- mousePressedin class- Tool
 
- 
mouseDraggedEvent handler for crosstab editing.- Overrides:
- mouseDraggedin class- Tool
 
- 
processKeyEventKey event handler for crosstab editing.- Overrides:
- processKeyEventin class- Tool
 
 
-