Class CrossTabTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class CrossTabTool extends Tool
This class provides GUI editing for RMCrossTab.
  • Constructor Details

    • CrossTabTool

      public CrossTabTool()
  • Method Details

    • getUI

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

      public void resetUI()
      Updates the Swing UI from the currently selected crosstab.
      Overrides:
      resetUI in class Tool
    • respondUI

      public void respondUI(Object anObj)
      Responds to changes in the Swing UI controls.
      Overrides:
      respondUI in class Tool
    • getShapeClass

      public Class getShapeClass()
      Returns the class edited by this tool.
      Overrides:
      getShapeClass in class Tool
    • getWindowTitle

      public String getWindowTitle()
      Returns the name of this tool.
      Overrides:
      getWindowTitle in class Tool
    • takeValueFromDrop

      public void takeValueFromDrop(Object anObj, RJAction anAction)
      Responds to a drag and drop.
    • addCrossTab

      public static void addCrossTab(RMEditor anEditor, String aKeyPath)
      Adds a crosstab to the given editor with the given list key.
    • addGroupingKey

      public void addGroupingKey(String aKey)
      Adds a grouping key to the crosstab.
    • addSortingKey

      public void addSortingKey(String aKey)
      Adds a sorting key to the crosstab.
    • moveGrouping

      public void moveGrouping(int sourceIndex, int destIndex)
      Moves a grouping from the first given index to the second given index.
    • moveSort

      public void moveSort(int sourceIndex, int destIndex)
      Moves a sort from the first given index to the second given index.
    • mousePressed

      public void mousePressed(RMShape aShape, MouseEvent anEvent)
      Event handler for crosstab editing.
      Overrides:
      mousePressed in class Tool
    • mouseDragged

      public void mouseDragged(RMShape aShape, MouseEvent anEvent)
      Event handler for crosstab editing.
      Overrides:
      mouseDragged in class Tool
    • processKeyEvent

      public void processKeyEvent(RMShape aShape, KeyEvent anEvent)
      Key event handler for crosstab editing.
      Overrides:
      processKeyEvent in class Tool