Package com.ribs.plus

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.

Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.

See Also:
  • Constructor Details

    • RJBrowser

      public RJBrowser()
      Creates a new browser.
    • RJBrowser

      public RJBrowser(BrowserModel model)
      Creates a new browser with the given BrowserModel.
    • RJBrowser

      public RJBrowser(BrowserModel aModel, Class tableClass)
      Creates a new browser with the given browser model and table class.
  • Method Details

    • getModel

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

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

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

      public boolean isSelectedLeaf()
      Returns whether selected item is leaf.
    • 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.
    • getColumnCount

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

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

      public JTable getColumnLast()
      Returns the last column table in the browser.
    • getVisibleColumnCount

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

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

      public Class getTableClass()
      Returns the table class.
    • setTableClass

      public void setTableClass(Class aClass)
      Sets the table class.
    • getTableCellRenderer

      public TableCellRenderer getTableCellRenderer()
      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.
    • getSelectionListener

      public ListSelectionListener getSelectionListener(int anIndex)
      Returns the list selection listener at the given index.
    • addListSelectionListener

      public void addListSelectionListener(ListSelectionListener aListener)
      Adds a list selection listener.
    • removeListSelectionListener

      public void removeListSelectionListener(ListSelectionListener aListener)
      Removes a list selection listener.
    • addMouseListener

      public void addMouseListener(MouseListener aListener)
      Adds a mouse listener.
      Overrides:
      addMouseListener in class Component
    • removeMouseListener

      public void removeMouseListener(MouseListener aListener)
      Removes a mouse listener.
      Overrides:
      removeMouseListener in class Component
    • setDidDrag

      public void setDidDrag(boolean aFlag)
      Sets the did drag flag, so that a mouse drag that ends in drag and drop isn't confused for a selection.
    • createTable

      public JTable createTable()
      Creates a new browser column table.
    • setBounds

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