public class TableRowTool extends Tool
Tool.RMShapeHandle
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
Constructor and Description |
---|
TableRowTool() |
Modifier and Type | Method and Description |
---|---|
static void |
addColumn()
Adds a column to the currently selected table row.
|
void |
addVersionFromMenu(java.lang.String aVersion)
Adds a new version to the currently selected table row.
|
void |
fillMenuForShape(javax.swing.JPopupMenu aMenu,
RMTableRow aTableRow)
Loads a popup menu with menus specific for currently selected table row.
|
int |
getHandleCount(RMShape aShape)
Overrides tool method to declare that table rows have no handles.
|
java.lang.Class |
getShapeClass()
Returns the class that this tool is responsible for (RMTableRow).
|
RJPanel |
getUI()
Returns the Swing UI panel used for this tool.
|
java.lang.String |
getWindowTitle()
Returns the name that should be used in the inspector window.
|
void |
mouseMoved(RMShape aShape,
java.awt.event.MouseEvent anEvent)
MouseMoved implementation to update cursor for resize bars.
|
void |
mousePressed(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Mouse pressed implementation to make sure structured table row colums get selected.
|
void |
removeVersionCurrent()
Removes the currently selected version from the currently selected table row.
|
void |
resetUI()
Refreshes the Swing UI controls for the currently selected table row (usually called by Ribs).
|
void |
respondUI(java.lang.Object anObj)
Handles changes to Swing GUI controls for currently selected table row (called by controls, usually via Ribs).
|
void |
setVersionFromMenu(java.lang.String aVersion)
Sets the version of the currently selected table row.
|
activateTool, 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
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)
public void fillMenuForShape(javax.swing.JPopupMenu aMenu, RMTableRow aTableRow)
public void addVersionFromMenu(java.lang.String aVersion)
public void setVersionFromMenu(java.lang.String aVersion)
public void removeVersionCurrent()
public static void addColumn()
public java.lang.Class getShapeClass()
getShapeClass
in class Tool
public java.lang.String getWindowTitle()
getWindowTitle
in class Tool
public void mouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseMoved
in class Tool
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed
in class Tool
public int getHandleCount(RMShape aShape)
getHandleCount
in class Tool