Class RMTableTool<T extends RMTable>

    • Constructor Detail

      • RMTableTool

        public RMTableTool()
    • Method Detail

      • initUI

        protected void initUI()
        Initialize UI panel.
        Overrides:
        initUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • resetUI

        public void resetUI()
        Updates UI panel from currently table
        Overrides:
        resetUI in class UIOwner<SwingEvent,​javax.swing.JComponent>
      • getTable

        public RMTable getTable()
        Returns the selected table.
      • isUngroupable

        public boolean isUngroupable​(RMShape aShape)
        Overridden to make table not ungroupable.
        Overrides:
        isUngroupable in class RMTool<T extends RMTable>
      • getGroupingTablePopupMenu

        public javax.swing.JPopupMenu getGroupingTablePopupMenu()
        Returns the popup menu for the grouping table.
      • addGroupingKey

        public void addGroupingKey​(java.lang.String aKey)
        Adds a grouping key to the currently selected table.
      • addTable

        public static void addTable​(@Nonnull
                                    RMEditor anEditor,
                                    @Nullable
                                    java.lang.String aKeyPath)
        Adds a new table to the given editor with the given dataset key.
      • mouseMoved

        public void mouseMoved​(T aTable,
                               java.awt.event.MouseEvent anEvent)
        MouseMoved implementation to update cursor for resize bars.
        Overrides:
        mouseMoved in class RMTool<T extends RMTable>
      • mousePressed

        public void mousePressed​(T aTable,
                                 java.awt.event.MouseEvent anEvent)
        Event handling for table editing.
        Overrides:
        mousePressed in class RMTool<T extends RMTable>
      • getResizeBarPopupX

        public double getResizeBarPopupX​(RMTableRow aTableRow)
        Returns the x location of the given resize bar popup.
      • mouseDragged

        public void mouseDragged​(T aTable,
                                 java.awt.event.MouseEvent anEvent)
        Event handling for table editing.
        Overrides:
        mouseDragged in class RMTool<T extends RMTable>
      • mouseReleased

        public void mouseReleased​(T aTable,
                                  java.awt.event.MouseEvent anEvent)
        Event handling for table editing.
        Overrides:
        mouseReleased in class RMTool<T extends RMTable>
      • runMenuForShape

        public void runMenuForShape​(RMShape aShape,
                                    int x,
                                    int y)
        Opens a popup menu specific for table row divider under mouse.
      • getHandleCount

        public int getHandleCount​(T aShape)
        Overrides shape implementation to declare no handles when the child of a table group.
        Overrides:
        getHandleCount in class RMTool<T extends RMTable>