Class KeysBrowser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class KeysBrowser extends RJBrowser
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.
See Also:
  • Constructor Details

    • KeysBrowser

      public KeysBrowser()
  • Method Details

    • getEntity

      public Entity getEntity()
      Returns the entity.
    • setEntity

      public void setEntity(Entity anEntity)
      Sets the entity.
    • getDragKey

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

      @Nonnull public String getKeyPath()
      Returns the current key path selected by the browser.
    • isSelectedToMany

      public boolean isSelectedToMany()
      Returns whether selected item is to-many.
    • createTableCellRenderer

      protected TableCellRenderer createTableCellRenderer()
      Override to use node font.
      Overrides:
      createTableCellRenderer in class RJBrowser
    • getBranchIcon

      public Icon getBranchIcon(Object anObj)
      Override to return DoubleArrowIcon for Node.IsToMany.
      Overrides:
      getBranchIcon in class RJBrowser
    • getDoubleArrowIcon

      public Icon getDoubleArrowIcon()
      Returns the icon of a double right arrow to indicate branch nodes of a "to-many" relationship in a browser.
    • createColumnTable

      public JTable createColumnTable()
      Override to add DragSource to column.
      Overrides:
      createColumnTable in class RJBrowser