infovis.panel.dqinter
Class DynamicQueryFactory

java.lang.Object
  extended by infovis.utils.BasicFactory
      extended by infovis.panel.dqinter.DynamicQueryFactory

public class DynamicQueryFactory
extends BasicFactory

Creates a Dynamic Query from a Column.

Version:
$Revision: 1.6 $
Author:
Jean-Daniel Fekete

Nested Class Summary
static interface DynamicQueryFactory.Creator
          Creator interface for building a Dynamic Query from a column type.
 
Field Summary
static String QUERY_TYPE_DEFAULT
           
static String QUERY_TYPE_RADIO
           
static String QUERY_TYPE_SEARCH
           
static String QUERY_TYPE_SLIDER
           
static String QUERY_TYPE_TOGGLE
           
 
Constructor Summary
DynamicQueryFactory()
          Constructor for DynamicQueryFactory.
 
Method Summary
 void add(DynamicQueryFactory.Creator c)
          Adds a default creator for a specific kind of column.
 DynamicQuery create(Column c)
          Creates a dynamic query of default type from a column.
 DynamicQuery create(Column c, String type)
          Creates a dynamic query from a column.
static DynamicQuery createDQ(Column c)
           
static DynamicQuery createDQ(Column c, String type)
           
static DynamicQueryFactory getInstance()
           
static void setInstance(DynamicQueryFactory inst)
           
 
Methods inherited from class infovis.utils.BasicFactory
loadProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_TYPE_DEFAULT

public static final String QUERY_TYPE_DEFAULT
See Also:
Constant Field Values

QUERY_TYPE_SLIDER

public static final String QUERY_TYPE_SLIDER
See Also:
Constant Field Values

QUERY_TYPE_TOGGLE

public static final String QUERY_TYPE_TOGGLE
See Also:
Constant Field Values

QUERY_TYPE_RADIO

public static final String QUERY_TYPE_RADIO
See Also:
Constant Field Values

QUERY_TYPE_SEARCH

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

DynamicQueryFactory

public DynamicQueryFactory()
Constructor for DynamicQueryFactory.

Method Detail

getInstance

public static DynamicQueryFactory getInstance()

setInstance

public static void setInstance(DynamicQueryFactory inst)

createDQ

public static DynamicQuery createDQ(Column c,
                                    String type)

createDQ

public static DynamicQuery createDQ(Column c)

create

public DynamicQuery create(Column c,
                           String type)
Creates a dynamic query from a column.

Parameters:
c - The column
type - the default type of DynamicQuery.
Returns:
A Dynamic query or null.

create

public DynamicQuery create(Column c)
Creates a dynamic query of default type from a column.

Parameters:
c - The column
Returns:
A Dynamic query or null.

add

public void add(DynamicQueryFactory.Creator c)
Adds a default creator for a specific kind of column.

Parameters:
c - The creator


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.