Package com.reportmill.panels
Class TableRowTool
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.panels.Tool
- 
- com.reportmill.panels.TableRowTool
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class TableRowTool extends Tool This class provides Swing UI editing for table rows.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description TableRowTool()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddColumn()Adds a column to the currently selected table row.voidaddVersionFromMenu(java.lang.String aVersion)Adds a new version to the currently selected table row.voidfillMenuForShape(javax.swing.JPopupMenu aMenu, RMTableRow aTableRow)Loads a popup menu with menus specific for currently selected table row.intgetHandleCount(RMShape aShape)Overrides tool method to declare that table rows have no handles.java.lang.ClassgetShapeClass()Returns the class that this tool is responsible for (RMTableRow).RJPanelgetUI()Returns the Swing UI panel used for this tool.java.lang.StringgetWindowTitle()Returns the name that should be used in the inspector window.voidmouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent)MouseMoved implementation to update cursor for resize bars.voidmousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)Mouse pressed implementation to make sure structured table row colums get selected.voidremoveVersionCurrent()Removes the currently selected version from the currently selected table row.voidresetUI()Refreshes the Swing UI controls for the currently selected table row (usually called by Ribs).voidrespondUI(java.lang.Object anObj)Handles changes to Swing GUI controls for currently selected table row (called by controls, usually via Ribs).voidsetVersionFromMenu(java.lang.String aVersion)Sets the version of the currently selected table row.- 
Methods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
getUIpublic RJPanel getUI() Returns the Swing UI panel used for this tool.
 - 
resetUIpublic void resetUI() Refreshes the Swing UI controls for the currently selected table row (usually called by Ribs).
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Handles changes to Swing GUI controls for currently selected table row (called by controls, usually via Ribs).
 - 
fillMenuForShapepublic void fillMenuForShape(javax.swing.JPopupMenu aMenu, RMTableRow aTableRow)Loads a popup menu with menus specific for currently selected table row.
 - 
addVersionFromMenupublic void addVersionFromMenu(java.lang.String aVersion) Adds a new version to the currently selected table row.
 - 
setVersionFromMenupublic void setVersionFromMenu(java.lang.String aVersion) Sets the version of the currently selected table row.
 - 
removeVersionCurrentpublic void removeVersionCurrent() Removes the currently selected version from the currently selected table row.
 - 
addColumnpublic static void addColumn() Adds a column to the currently selected table row.
 - 
getShapeClasspublic java.lang.Class getShapeClass() Returns the class that this tool is responsible for (RMTableRow).- Overrides:
- getShapeClassin class- Tool
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the name that should be used in the inspector window.- Overrides:
- getWindowTitlein class- Tool
 
 - 
mouseMovedpublic void mouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent) MouseMoved implementation to update cursor for resize bars.- Overrides:
- mouseMovedin class- Tool
 
 - 
mousePressedpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent) Mouse pressed implementation to make sure structured table row colums get selected.- Overrides:
- mousePressedin class- Tool
 
 - 
getHandleCountpublic int getHandleCount(RMShape aShape) Overrides tool method to declare that table rows have no handles.- Overrides:
- getHandleCountin class- Tool
 
 
- 
 
-