edu.cs.ai.kreator.ui.gui.dialogs.controller
Class QueryConstructionDialogController

java.lang.Object
  extended by edu.cs.ai.kreator.ui.gui.dialogs.controller.QueryConstructionDialogController

public class QueryConstructionDialogController
extends java.lang.Object

This is a controller class for the QueryConstructionDialog. Some general stuff like switching knowledge bases, (un)select evidence files, activate/deactivate single evidences of the evidence files, add / remove custom evidences are and save custom evidences into the project as a SampleCollection is handled by this class. For the query or custom evidence construction / preview functionality see QueryPreviewGuideController or EvidencePreviewGuideController

Author:
Tim Janus
See Also:
QueryConstructionDialog, QueryPreviewGuideController, EvidencePreviewGuideController

Constructor Summary
QueryConstructionDialogController(QueryConstructionDialog dialog, KnowledgebaseFile kbFile)
          Ctor
 
Method Summary
 javax.swing.Icon getPreviewIcon()
           
 Query getQuery()
          Returns the actual designed query.
 boolean isDeletabeNodeSelected()
          Checks if a deleteable node in the evidence tree is select
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryConstructionDialogController

public QueryConstructionDialogController(QueryConstructionDialog dialog,
                                         KnowledgebaseFile kbFile)
Ctor

Parameters:
dialog - Reference to the controlled dialog
Method Detail

getQuery

public Query getQuery()
Returns the actual designed query.

Returns:
reference to designed query if query is valid otherwise null.

getPreviewIcon

public javax.swing.Icon getPreviewIcon()
Returns:
The icon that should be used for the quick preview in the current state.

isDeletabeNodeSelected

public boolean isDeletabeNodeSelected()
Checks if a deleteable node in the evidence tree is select

Returns:
true if a node is select which can be deleted otherwise false.