Module org.jpo
Package org.jpo.gui

Class QueriesJTreeController

java.lang.Object
org.jpo.gui.QueriesJTreeController

public class QueriesJTreeController extends Object
Controller for the searches JTree
  • Constructor Details

    • QueriesJTreeController

      public QueriesJTreeController(PictureCollection pictureCollection)
      Constructs a JTree for the queries
      Parameters:
      pictureCollection - The PictureCollection on which the tree will be working
  • Method Details

    • getJComponent

      public JComponent getJComponent()
      Returns a new view component with the JTree embedded in a JScrollpane
      Returns:
      the view
    • setSelectedNode

      public void setSelectedNode(DefaultMutableTreeNode node)
      Moves the highlighted row to the indicated one and expands the tree if necessary. Does not talk back to the collection controller as this should be called from the collection controller.
      Parameters:
      node - The node which should be highlighted