prefuse.data.query
Class ListQueryBinding

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

public class ListQueryBinding
extends DynamicQueryBinding

DynamicQueryBinding supporting queries based on a list of included data values.

Author:
jeffrey heer

Field Summary
 
Fields inherited from class prefuse.data.query.DynamicQueryBinding
m_field, m_query, m_tuples
 
Constructor Summary
ListQueryBinding(TupleSet ts, java.lang.String field)
          Create a new ListQueryBinding over the given set and data field.
ListQueryBinding(TupleSet ts, java.lang.String field, boolean includeAllOption)
          Create a new ListQueryBinding over the given set and data field.
 
Method Summary
 JToggleGroup createCheckboxGroup()
          Creates a new group of check boxes for interacting with the query.
 javax.swing.JComboBox createComboBox()
          Create a new drop-down combo box for interacting with the query.
 javax.swing.JComponent createComponent()
          Creates a new group of check boxes for interacting with the query.
 javax.swing.JList createList()
          Create a new interactive list for interacting with the query.
 JToggleGroup createRadioGroup()
          Creates a new group of radio buttons for interacting with the query.
 ListModel getListModel()
          Returns a list model for creating custom dynamic query widgets.
 
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

ListQueryBinding

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

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

ListQueryBinding

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

Parameters:
ts - the TupleSet to query
field - the data field (Table column) to query
includeAllOption - indicates if the dynamic queries should include an "All" option for including all data values
Method Detail

getListModel

public ListModel getListModel()
Returns a list model for creating custom dynamic query widgets. This list model acts both as a data model and a selection model, and so must be registered as both with any custom widgets.

Returns:
the dynamic query list model

createComponent

public javax.swing.JComponent createComponent()
Creates a new group of check boxes for interacting with the query.

Specified by:
createComponent in class DynamicQueryBinding
Returns:
a JToggleGroup of check boxes bound to this dynamic query.
See Also:
DynamicQueryBinding.createComponent()

createList

public javax.swing.JList createList()
Create a new interactive list for interacting with the query.

Returns:
a JList bound to this dynamic query.

createComboBox

public javax.swing.JComboBox createComboBox()
Create a new drop-down combo box for interacting with the query.

Returns:
a JComboBox bound to this dynamic query.

createCheckboxGroup

public JToggleGroup createCheckboxGroup()
Creates a new group of check boxes for interacting with the query.

Returns:
a JToggleGroup of check boxes bound to this dynamic query.

createRadioGroup

public JToggleGroup createRadioGroup()
Creates a new group of radio buttons for interacting with the query.

Returns:
a JToggleGroup of radio buttons bound to this dynamic query.


Copyright © 2007 Regents of the University of California