All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.WhereClause

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.Container
                   |
                   +----com.bulletproof.gui.Panel
                           |
                           +----com.bulletproof.gui.WhereClause

public class WhereClause
extends Panel
implements ActionListener
Class WhereClause represents a class for creating a where clause to be used for selecting rows from a database to be loaded into other databound classes such as grids, columns or charts.


Constructor Index

 o WhereClause()
 o WhereClause(String, boolean, String, String[], String[], Vector, Vector, int[], boolean[], String)
Creates a Where Clause panel.

Method Index

 o actionPerformed(ActionEvent)
 o addActionListener(ActionListener)
 o buildWhereClause()
 o getChooseFrom()
Get the selected entry in the choose from pulldown.
 o getFromWhereClause()
Get the current value of the from/where clause.
 o getHorizontalLayout()
Get whether the panel is laid out in a horizontal fashion.
 o getMatchConstant()
Get the text in the match constant text field.
 o getMatchUsing()
Get the selected entry in the match using pulldown.
 o getUpperCaseEntry()
Get whether entry is always uppercase.
 o removeActionListener(ActionListener)
 o setChooseFrom(String)
Select the desired entry in the choose from pulldown.
 o setDataType(int, int)
Set the data type of this element.
 o setDSNType(int)
Set the data type of this element.
 o setHorizontalLayout(boolean)
Set whether the panel is laid out in a horizontal fashion.
 o setMatchConstant(String)
Set the text in the match constant text field.
 o setMatchUsing(String)
Select the desired entry in the match using pulldown.
 o setUpperCaseEntry(boolean)
Set entry to always be uppercase.

Constructors

 o WhereClause
 public WhereClause()
 o WhereClause
 public WhereClause(String whereClauseName,
                    boolean smallConfig,
                    String pinitChoice,
                    String pchooseFrom[],
                    String pactualchooseFrom[],
                    Vector pmatchUsing,
                    Vector pactualmatchUsing,
                    int constantLength[],
                    boolean constantIsString[],
                    String fromWhereClause)
Creates a Where Clause panel.

Parameters:
whereClauseName - the name of this where clause component.
smallConfig - select whether layout is in a box or a row.
pinitChoice - the intial choice for the column name pulldown.
pchooseFrom - the display values to place in the column name pulldown.
pactualchooseFrom - the actual SQL values that correspond to the column name pulldown values.
pmatchUsing - the match using values for the entries in the pulldown.
pactualmatchUsing - the corresponding actual SQL values for the match using values.
constantLength - the required length if the column requires a constant entered.
constantIsString - the constant is a String value.
fromWhereClause - the initial from/where clause.

Methods

 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o setHorizontalLayout
 public void setHorizontalLayout(boolean layout)
Set whether the panel is laid out in a horizontal fashion.

Parameters:
layout - whether the panel is laid out in a horizontal fashion.
 o getHorizontalLayout
 public boolean getHorizontalLayout()
Get whether the panel is laid out in a horizontal fashion.

Returns:
whether the panel is laid out in a horizontal fashion.
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o buildWhereClause
 public void buildWhereClause()
 o setDSNType
 public void setDSNType(int type)
Set the data type of this element.

Parameters:
element - the number of this element.
type - the type of this element.
 o setChooseFrom
 public void setChooseFrom(String name)
Select the desired entry in the choose from pulldown.

Parameters:
name - the entry to select.
 o getChooseFrom
 public String getChooseFrom()
Get the selected entry in the choose from pulldown.

Returns:
the entry that is selected.
 o setMatchUsing
 public void setMatchUsing(String name)
Select the desired entry in the match using pulldown.

Parameters:
name - the entry to select.
 o getMatchUsing
 public String getMatchUsing()
Get the selected entry in the match using pulldown.

Returns:
the entry that is selected.
 o setMatchConstant
 public void setMatchConstant(String constant)
Set the text in the match constant text field.

Parameters:
constant - the new value of the constant.
 o getMatchConstant
 public String getMatchConstant()
Get the text in the match constant text field.

Returns:
the text in the match constant text field.
 o setDataType
 public void setDataType(int element,
                         int type)
Set the data type of this element.

Parameters:
element - the number of this element.
type - the type of this element.
 o setUpperCaseEntry
 public void setUpperCaseEntry(boolean uppercase)
Set entry to always be uppercase.

Parameters:
uppercase - entry should be uppercase only.
 o getUpperCaseEntry
 public boolean getUpperCaseEntry()
Get whether entry is always uppercase.

Returns:
entry should be uppercase only.
 o getFromWhereClause
 public String getFromWhereClause()
Get the current value of the from/where clause.

Returns:
the current value of the from/where clause.

All Packages  Class Hierarchy  This Package  Previous  Next  Index