prefuse.data.query
Class SearchQueryBinding

java.lang.Object
  extended by prefuse.data.query.DynamicQueryBinding
      extended by prefuse.data.query.SearchQueryBinding

public class SearchQueryBinding
extends DynamicQueryBinding

DynamicQueryBinding supporting text search over data values. Implementations of the SearchTupleSet class from the prefuse.data.search package can be used to control the type of search index used.

Author:
jeffrey heer
See Also:
SearchTupleSet

Field Summary
 
Fields inherited from class prefuse.data.query.DynamicQueryBinding
m_field, m_query, m_tuples
 
Constructor Summary
SearchQueryBinding(TupleSet ts, java.lang.String field)
          Create a new SearchQueryBinding over the given set and data field.
SearchQueryBinding(TupleSet ts, java.lang.String field, SearchTupleSet set)
          Create a new SearchQueryBinding over the given set and data field, using the specified SearchTupleSet instance.
 
Method Summary
 javax.swing.JComponent createComponent()
          Create a new search text panel for searching over the data.
 JSearchPanel createSearchPanel()
          Create a new search text panel for searching over the data.
 JSearchPanel createSearchPanel(boolean monitorKeystrokes)
          Create a new search text panel for searching over the data.
 SearchTupleSet getSearchSet()
          Return the SearchTupleSet used for conducting searches.
 
Methods inherited from class prefuse.data.query.DynamicQueryBinding
getPredicate, setPredicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchQueryBinding

public SearchQueryBinding(TupleSet ts,
                          java.lang.String field)
Create a new SearchQueryBinding over the given set and data field.

Parameters:
ts - the TupleSet to query
field - the data field (Table column) to query

SearchQueryBinding

public SearchQueryBinding(TupleSet ts,
                          java.lang.String field,
                          SearchTupleSet set)
Create a new SearchQueryBinding over the given set and data field, using the specified SearchTupleSet instance. Use this constructor to choose the type of search engine used, and to potentially reuse the same search set over multiple dynamic query bindings.

Parameters:
ts - the TupleSet to query
field - the data field (Table column) to query
set - the SearchTupleSet to use.
Method Detail

getSearchSet

public SearchTupleSet getSearchSet()
Return the SearchTupleSet used for conducting searches.

Returns:
the SearchTupleSet used by this dynamic query binding.

createComponent

public javax.swing.JComponent createComponent()
Create a new search text panel for searching over the data.

Specified by:
createComponent in class DynamicQueryBinding
Returns:
a JSearchPanel bound to this dynamic query.
See Also:
DynamicQueryBinding.createComponent()

createSearchPanel

public JSearchPanel createSearchPanel()
Create a new search text panel for searching over the data.

Returns:
a JSearchPanel bound to this dynamic query.

createSearchPanel

public JSearchPanel createSearchPanel(boolean monitorKeystrokes)
Create a new search text panel for searching over the data.

Parameters:
monitorKeystrokes - if true, each keystroke will cause the search to be re-run (this is the default for prefix searches); if false, searches will only re-run when the enter key is typed (this is the default for the other search engine types).
Returns:
a JSearchPanel bound to this dynamic query.


Copyright © 2007 Regents of the University of California