public class

ConceptNameSelectionPanel

extends JPanel
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ vars.query.ui.ConceptNameSelectionPanel

Class Overview

This ui panel allows a user to select a concept name of interest and extends it to it's various relations. Use as:

 ConceptNameSelectionPanel p = new ConceptNameSelectionPanel();
 // The user would normally select an item in the combo box here.
 Collection names = p.getConcepts(); // returns a collection of string concept-names
 

Summary

[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
ConceptNameSelectionPanel(QueryPersistenceService queryDAO, KnowledgebaseDAOFactory knowledgebaseDAOFactory)
Public Methods
Collection<String> getSelectedConceptNamesAsStrings()
This returns a collection of concept-name objects that correspond to the parameters selected.
void setSelectedConceptName(String conceptName)
Protected Methods
JCheckBox getCChildren()
JCheckBox getCDescendant()
JCheckBox getCParent()
JCheckBox getCSiblings()
JComboBox getCbConceptName()
[Expand]
Inherited Methods
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible

Public Constructors

public ConceptNameSelectionPanel (QueryPersistenceService queryDAO, KnowledgebaseDAOFactory knowledgebaseDAOFactory)

Public Methods

public Collection<String> getSelectedConceptNamesAsStrings ()

This returns a collection of concept-name objects that correspond to the parameters selected. It looks up this information from the database.

Returns
  • A collection of String Objects that correspond to all the concept-names that should be searched for in the query

public void setSelectedConceptName (String conceptName)

Protected Methods

protected JCheckBox getCChildren ()

protected JCheckBox getCDescendant ()

protected JCheckBox getCParent ()

protected JCheckBox getCSiblings ()

protected JComboBox getCbConceptName ()