Class TableRowTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class TableRowTool extends Tool
This class provides Swing UI editing for table rows.
  • Constructor Details

    • TableRowTool

      public TableRowTool()
  • Method Details

    • getUI

      public RJPanel getUI()
      Returns the Swing UI panel used for this tool.
      Overrides:
      getUI in class Tool
    • resetUI

      public void resetUI()
      Refreshes the Swing UI controls for the currently selected table row (usually called by Ribs).
      Overrides:
      resetUI in class Tool
    • respondUI

      public void respondUI(Object anObj)
      Handles changes to Swing GUI controls for currently selected table row (called by controls, usually via Ribs).
      Overrides:
      respondUI in class Tool
    • fillMenuForShape

      public void fillMenuForShape(JPopupMenu aMenu, RMTableRow aTableRow)
      Loads a popup menu with menus specific for currently selected table row.
    • addVersionFromMenu

      public void addVersionFromMenu(String aVersion)
      Adds a new version to the currently selected table row.
    • setVersionFromMenu

      public void setVersionFromMenu(String aVersion)
      Sets the version of the currently selected table row.
    • removeVersionCurrent

      public void removeVersionCurrent()
      Removes the currently selected version from the currently selected table row.
    • addColumn

      public static void addColumn()
      Adds a column to the currently selected table row.
    • getShapeClass

      public Class getShapeClass()
      Returns the class that this tool is responsible for (RMTableRow).
      Overrides:
      getShapeClass in class Tool
    • getWindowTitle

      public String getWindowTitle()
      Returns the name that should be used in the inspector window.
      Overrides:
      getWindowTitle in class Tool
    • mouseMoved

      public void mouseMoved(RMShape aShape, MouseEvent anEvent)
      MouseMoved implementation to update cursor for resize bars.
      Overrides:
      mouseMoved in class Tool
    • mousePressed

      public void mousePressed(RMShape aShape, MouseEvent anEvent)
      Mouse pressed implementation to make sure structured table row colums get selected.
      Overrides:
      mousePressed in class Tool
    • getHandleCount

      public int getHandleCount(RMShape aShape)
      Overrides tool method to declare that table rows have no handles.
      Overrides:
      getHandleCount in class Tool