Class BreadcrumbTreeAdapterSelector<T>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.pushingpixels.radiance.component.api.bcb.JBreadcrumbBar<T>
org.pushingpixels.radiance.component.api.bcb.core.BreadcrumbTreeAdapterSelector<T>
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class BreadcrumbTreeAdapterSelector<T> extends JBreadcrumbBar<T>
Breadcrumb bar that allows wrapping an existing JTree or a TreeModel.
See Also:
  • Constructor Details

    • BreadcrumbTreeAdapterSelector

      public BreadcrumbTreeAdapterSelector(TreeModel treeModel, BreadcrumbTreeAdapterSelector.TreeAdapter<T> treeAdapter, boolean isRootVisible, BreadcrumbBarPresentationModel presentationModel)
      Creates an adapter for the specified tree model.
      Parameters:
      treeModel - Tree model.
      treeAdapter - Tree adapter. Can not be null.
      isRootVisible - If true, the first selector shows the tree root node. If false, the first selector shows the tree root child nodes.
    • BreadcrumbTreeAdapterSelector

      public BreadcrumbTreeAdapterSelector(JTree tree, BreadcrumbTreeAdapterSelector.TreeAdapter<T> treeAdapter)
      Creates an adapter for the specified tree.
      Parameters:
      tree - Tree.
      treeAdapter - Tree adapter. Can not be null.
    • BreadcrumbTreeAdapterSelector

      public BreadcrumbTreeAdapterSelector(JTree tree)
      Creates an adapter for the specified tree. Assumes that the tree renderer extends a JLabel. Otherwise, the path selectors will have no captions and no icons.
      Parameters:
      tree - Tree.