Class RJBrowser

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

public class RJBrowser extends JScrollPane
This component displays a hierarchy of data like a JTree, however, it does it with a number of distinct JTables layed out horizontally.
See Also:
  • Constructor Details

    • RJBrowser

      public RJBrowser()
      Creates a new browser.
  • Method Details

    • getModel

      public RJBrowser.BrowserModel getModel()
      Returns the current browser model.
    • setModel

      public void setModel(RJBrowser.BrowserModel aModel)
      Reconfigures browser for given model.
    • getPath

      public String getPath()
      Returns the path constructed by appending the selected row in each column by a dot.
    • getPath

      public String getPath(String aSeparator)
      Returns the path constructed by appending the selected row in each column by a dot.
    • getSelectedItem

      @Nullable public Object getSelectedItem()
      Returns the selected item.
    • isSelectedLeaf

      public boolean isSelectedLeaf()
      Returns whether selected item is leaf.
    • getColumnCount

      public int getColumnCount()
      Returns the number of columns currently in the browser.
    • setColumnCount

      protected void setColumnCount(int aValue)
      Sets the number of columns.
    • getColumnCountPreferred

      public int getColumnCountPreferred()
      Returns the number of desired columns, based on the currently selected column.
    • getColumn

      public JTable getColumn(int anIndex)
      Returns the specific column table at the given index.
    • reloadColumns

      public void reloadColumns(int aStartIndex)
      Reloads columns from given index.
    • createColumn

      protected JScrollPane createColumn()
      Creates a new browser column.
    • createColumnTable

      protected JTable createColumnTable()
      Creates a new browser column table.
    • getVisibleColumnCount

      public int getVisibleColumnCount()
      Returns the number of visible columns in the browser.
    • setVisibleColumnCount

      public void setVisibleColumnCount(int aValue)
      Sets the number of visible columns in the browser.
    • getSelectedColumnIndex

      public int getSelectedColumnIndex()
      Returns the selected column index.
    • setSelectedColumnIndex

      protected void setSelectedColumnIndex(int anIndex)
      Sets the selected column index.
    • getTableCellRenderer

      public TableCellRenderer getTableCellRenderer()
      Returns the browser table cell renderer.
    • createTableCellRenderer

      protected TableCellRenderer createTableCellRenderer()
      Returns the browser table cell renderer.
    • setTableCellRenderer

      public void setTableCellRenderer(TableCellRenderer aTableCellRenderer)
      Sets the browser table cell renderer.
    • getBranchIcon

      public Icon getBranchIcon(Object anObj)
      Returns the icon to indicate branch nodes in a browser (right arrow by default).
    • setBranchIcon

      public void setBranchIcon(Icon anIcon)
      Sets the default icon to indicate branch nodes in a browser.
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Overrides setBounds to reset model.
      Overrides:
      setBounds in class Component