Class KeysBrowser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants
Direct Known Subclasses:
KeysBrowser

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()
      Creates a new keys browser.
  • Method Details

    • getDataSource

      public RMDataSource getDataSource()
      Returns the datasource.
    • setDataSource

      public void setDataSource(RMDataSource aDataSource)
      Sets the datasource.
    • getListKey

      public String getListKey()
      Returns the list key.
    • setListKey

      public void setListKey(String aKey)
      Sets the list key.
    • getShowAttributes

      public boolean getShowAttributes()
      Returns whether to show attribute keys.
    • setShowAttributes

      public void setShowAttributes(boolean aFlag)
      Sets whether to show attribute keys.
    • getShowRelations

      public boolean getShowRelations()
      Returns whether to show relation keys.
    • setShowRelations

      public void setShowRelations(boolean aFlag)
      Sets whether to show relation keys.
    • getShowAggregates

      public boolean getShowAggregates()
      Returns whether to show aggregate keys.
    • setShowAggregates

      public void setShowAggregates(boolean aFlag)
      Sets whether to show aggregate keys.
    • getDragKey

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

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

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

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

      public TableCellRenderer getTableCellRenderer()
      Returns the browser table cell renderer.
      Overrides:
      getTableCellRenderer in class RJBrowser
    • getBranchIcon

      public Icon getBranchIcon(Object anObj)
      Returns the icon to indicate branch nodes in a browser (right arrow by default).
      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.
    • createTable

      public JTable createTable()
      Creates a new JTable suitable for drag and drop.
      Overrides:
      createTable in class RJBrowser