public class TableTool extends Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
TableTool.TTCellRenderer
A DefaultTableCellRenderer subclass to add tool tips.
|
static class |
TableTool.TTTable
A JTable subclass to make table as big as scrollpane for drag and drop.
|
Tool.RMShapeHandle| Modifier and Type | Field and Description |
|---|---|
static javax.swing.Icon |
NoPageBreakIcon |
static javax.swing.Icon |
PageBreakIcon |
static javax.swing.Icon |
SortAscIcon |
static javax.swing.Icon |
SortDescIcon |
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth| Constructor and Description |
|---|
TableTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupingKey(java.lang.String aKey)
Adds a grouping key to the currently selected table.
|
void |
addSortingKey(java.lang.String aKey)
Adds a sorting key to the currently selected table.
|
static void |
addTable(RMEditor anEditor,
java.lang.String aKeyPath)
Adds a new table to the given editor with the given list key.
|
int |
getHandleCount(RMShape aShape)
Overrides shape implementation to declare no handles when the child of a table group.
|
RMGrouping |
getSelectedGrouping()
Returns the selected grouping for this table.
|
RMSort |
getSelectedSort()
Returns the selected sort for this table.
|
RMTable |
getSelectedTable()
Returns the selected table.
|
java.lang.Class |
getShapeClass()
Returns the shape class this tool edits (RMTable).
|
RJPanel |
getUI()
Returns the Swing UI panel for this tool.
|
java.lang.String |
getWindowTitle()
Returns the display name for this tool ("Table Inspector").
|
void |
mouseDragged(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Event handling for splitshape editing.
|
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)
Event handling for table editing.
|
void |
mouseReleased(RMShape aShape,
java.awt.event.MouseEvent anEvent)
Event handling for splitshape editing.
|
void |
moveGrouping(int index1,
int index2)
Moves a grouping from the first given index to the second given index.
|
void |
moveSort(int index1,
int index2)
Moves a sort from the first given index to the second given index.
|
void |
resetUI()
Updates Swing UI panel from currently selected table
|
void |
respondUI(java.lang.Object anObj)
Updates currently selected table from Swing UI panel.
|
void |
runMenuForShape(RMShape aShape,
int x,
int y)
Opens a popup menu specific for table row divider under mouse.
|
void |
takeValueFromDrop(java.lang.Object anObj,
RJAction anAction)
Handles drag and drop on grouping or sort tables.
|
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditorclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualspublic static javax.swing.Icon PageBreakIcon
public static javax.swing.Icon NoPageBreakIcon
public static javax.swing.Icon SortAscIcon
public static javax.swing.Icon SortDescIcon
public RMTable getSelectedTable()
public RMGrouping getSelectedGrouping()
public RMSort getSelectedSort()
public RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)
public void takeValueFromDrop(java.lang.Object anObj,
RJAction anAction)
public java.lang.Class getShapeClass()
getShapeClass in class Toolpublic java.lang.String getWindowTitle()
getWindowTitle in class Toolpublic void addGroupingKey(java.lang.String aKey)
public void addSortingKey(java.lang.String aKey)
public void moveGrouping(int index1,
int index2)
public void moveSort(int index1,
int index2)
public static void addTable(RMEditor anEditor, java.lang.String aKeyPath)
public void mouseMoved(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseMoved in class Toolpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
mousePressed in class Toolpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseDragged in class Toolpublic void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
mouseReleased in class Toolpublic void runMenuForShape(RMShape aShape, int x, int y)
public int getHandleCount(RMShape aShape)
getHandleCount in class Tool