com.im.df/1 5.9.1

com.im.df.query.ui
Class AdvancedQueryUIBuilder

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by com.im.df.query.ui.AdvancedQueryUIBuilder
All Implemented Interfaces:
ComponentListener, EventListener

public class AdvancedQueryUIBuilder
extends ComponentAdapter

TODO P2 - this class and whole search should be moved out of DIF module. It's just used for building query and works on top of DFResultSet (both is in API). There is no reason why this class should work directly with any DIF impl.


Field Summary
static String CREATION_MODE
           
 
Constructor Summary
AdvancedQueryUIBuilder(DFDataTree dataTree)
          Creates a new instance of AdvancedQueryUIBuilder for a DataTree.
 
Method Summary
 void addChangeListener(ChangeListener l)
           
protected  DFTermExpression buildQuery()
           
 void clear()
          Clear the query values
static void clearReferences()
           
 void componentResized(ComponentEvent e)
           
 void fillQuery(DFTermExpression query)
          Defines any initial query whose terms should be displayed
 JComponent getComponent()
           
 TermErrors getErrors()
           
 DFTermExpression getQuery()
           
 void reloadQuery()
           
 void removeChangeListener(ChangeListener l)
           
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATION_MODE

public static final String CREATION_MODE
See Also:
Constant Field Values
Constructor Detail

AdvancedQueryUIBuilder

public AdvancedQueryUIBuilder(DFDataTree dataTree)
Creates a new instance of AdvancedQueryUIBuilder for a DataTree.

Parameters:
dataTree - To query
Method Detail

getErrors

public TermErrors getErrors()

getComponent

public JComponent getComponent()

clearReferences

public static void clearReferences()

clear

public void clear()
Clear the query values


reloadQuery

public void reloadQuery()

fillQuery

public void fillQuery(DFTermExpression query)
Defines any initial query whose terms should be displayed

Parameters:
query - The query will be used.

getQuery

public DFTermExpression getQuery()

buildQuery

protected DFTermExpression buildQuery()

addChangeListener

public void addChangeListener(ChangeListener l)

removeChangeListener

public void removeChangeListener(ChangeListener l)

componentResized

public void componentResized(ComponentEvent e)
Specified by:
componentResized in interface ComponentListener
Overrides:
componentResized in class ComponentAdapter

com.im.df/1 5.9.1