Package com.inductiveautomation.rm.tool
Class RMCrossTabCellTool<T extends RMCrossTabCell>
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.tool.RMTool<T>
com.inductiveautomation.rm.tool.RMTextShapeTool<T>
com.inductiveautomation.rm.tool.RMCrossTabCellTool<T>
- All Implemented Interfaces:
- RMSortPanel.Owner
public class RMCrossTabCellTool<T extends RMCrossTabCell>
extends RMTextShapeTool<T>
implements RMSortPanel.Owner
Provides Swing UI editing for RMCell shapes.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.rm.tool.RMToolRMTool.RMShapeHandle
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.tool.RMToolHandleE, HandleN, HandleNE, HandleNW, HandleS, HandleSE, HandleSW, HandleW, HandleWidth, SPLIT_RESETFields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected JComponentcreateUI()Creates UI panel - base panel is RMTextTool version.booleandrawBoundsRect(RMTextShape aText) Returns whether to draw bounds rect.voiddrop(T aCell, DropTargetDropEvent anEvent) Override normal implementation to handle KeysPanel drop.getCell()Returns the currently selected cell.Returns the grouping of the selected cell.intgetHandleCount(T aShape) Overrides tool method to indicate that cells have no handles.getIcon()Returns the icon for bar labels (uses SwitchShapeTool icon).protected voidinitUI()Create UI panel.voidmouseDragged(T aCell, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmousePressed(T aShape, MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmouseReleased(T aCell, MouseEvent anEvent) Event handling - overrides text to in case cell tool needs to forward events to table tool.voidprocessKeyEvent(T aCell, KeyEvent anEvent) Key event handler for super selected cell.voidresetUI()Updates UI from currently selected cell.voidrespondUI(SwingEvent anEvent) Updates currently selected cell from UI controls.Methods inherited from class com.inductiveautomation.rm.tool.RMTextShapeToolacceptsDrag, activateTool, convertToText, didBecomeSuperSelectedShapeInEditor, getHandleRect, getShapeClass, getToolTipText, getWindowTitle, isPaintingTextLinkIndicator, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, moveShapeHandle, paintShapeHandles, paintTextLinkIndicator, willLoseSuperSelectionInEditorMethods inherited from class com.inductiveautomation.rm.tool.RMToolattachEventBus, deactivateTool, dragEnter, dragExit, dragOver, dropClass, dropColor, dropDragKey, dropFiles, dropString, flavorForClass, flushChanges, getAcceptsChildren, getBoundsSuperSelected, getDatasetEntity, getDragDisplayBounds, getEditor, getEditorPane, getFont, getFontDeep, getGalleryClone, getHandleAtPoint, getHandleCursor, getHandleOpposing, getHandlePoint, getIcon, getPointsFromUnits, getSelectedShape, getSelectedShapes, getSelectTool, getShapeFillInspector, getShapeHandleAtPoint, getTool, getTool, getUnitsFromPoints, isSelected, isSuperSelectable, isSuperSelected, isUngroupable, mouseMoved, newInstance, paintTool, reactivateTool, setFont, setFontBold, setFontBoldDeep, setFontFamily, setFontFamilyDeep, setFontItalic, setFontItalicDeep, setFontName, setFontNameDeep, setFontSize, setFontSizeDeepMethods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisibleMethods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabledMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.rm.tool.RMSortPanel.OwnergetSelectedShape
- 
Constructor Details- 
RMCrossTabCellToolpublic RMCrossTabCellTool()
 
- 
- 
Method Details- 
createUICreates UI panel - base panel is RMTextTool version.- Overrides:
- createUIin class- RMTool<T extends RMCrossTabCell>
 
- 
initUIprotected void initUI()Create UI panel.- Overrides:
- initUIin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
resetUIpublic void resetUI()Updates UI from currently selected cell.- Overrides:
- resetUIin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
respondUIUpdates currently selected cell from UI controls.- Specified by:
- respondUIin interface- RMSortPanel.Owner
- Overrides:
- respondUIin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
getCellReturns the currently selected cell.
- 
getGroupingReturns the grouping of the selected cell.- Specified by:
- getGroupingin interface- RMSortPanel.Owner
 
- 
mousePressedEvent handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
- mousePressedin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
mouseDraggedEvent handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
- mouseDraggedin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
mouseReleasedEvent handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
- mouseReleasedin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
processKeyEventKey event handler for super selected cell.- Overrides:
- processKeyEventin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
getHandleCountOverrides tool method to indicate that cells have no handles.- Overrides:
- getHandleCountin class- RMTextShapeTool<T extends RMCrossTabCell>
 
- 
getIconReturns the icon for bar labels (uses SwitchShapeTool icon).- Overrides:
- getIconin class- RMTool<T extends RMCrossTabCell>
 
- 
drawBoundsRectReturns whether to draw bounds rect.
- 
dropOverride normal implementation to handle KeysPanel drop.- Overrides:
- dropin class- RMTextShapeTool<T extends RMCrossTabCell>
 
 
-