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 Detail

      • KeysPanel

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

      • getDragKey

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

        public static void setDragKey​(java.lang.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,
                                       java.awt.dnd.DropTargetDropEvent anEvent)
        Drops a drag key.
      • initUI

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

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

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

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

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