Class KeysPanel


public class KeysPanel extends SwingOwner
This class shows the current set of keys relative to the current editor selection in a browser and lets users drag and drop them to the editor.
  • Constructor Details

    • KeysPanel

      public KeysPanel()
      Creates a new keys panel.
  • Method Details

    • getDragKey

      public static String getDragKey()
      Returns the current drag key.
    • setDragKey

      public static void setDragKey(String aKey)
      Sets the current drag key.
    • isSelectedToMany

      public static boolean isSelectedToMany()
      Returns whether selected key path is to-many.
    • dropDragKey

      public static void dropDragKey(RMShape aShape, DropTargetDropEvent anEvent)
      Drops a drag key.
    • initUI

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

      public void resetUI()
      Updates the UI from the current selection.
      Overrides:
      resetUI in class UIOwner<SwingEvent,JComponent>
    • respondUI

      public void respondUI(SwingEvent anEvent)
      Updates the current selection from the UI controls.
      Overrides:
      respondUI in class UIOwner<SwingEvent,JComponent>
    • getSelectedShape

      public RMShape getSelectedShape()
      Returns the current editor's selected shape.
    • getWindowTitle

      public String getWindowTitle()
      Returns the window title for this panel.