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.
-
WhereClause()
-
-
WhereClause(String, boolean, String, String[], String[], Vector, Vector, int[], boolean[], String)
- Creates a Where Clause panel.
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
-
-
buildWhereClause()
-
-
getChooseFrom()
- Get the selected entry in the choose from pulldown.
-
getFromWhereClause()
- Get the current value of the from/where clause.
-
getHorizontalLayout()
- Get whether the panel is laid out in a horizontal fashion.
-
getMatchConstant()
- Get the text in the match constant text field.
-
getMatchUsing()
- Get the selected entry in the match using pulldown.
-
getUpperCaseEntry()
- Get whether entry is always uppercase.
-
removeActionListener(ActionListener)
-
-
setChooseFrom(String)
- Select the desired entry in the choose from pulldown.
-
setDataType(int, int)
- Set the data type of this element.
-
setDSNType(int)
- Set the data type of this element.
-
setHorizontalLayout(boolean)
- Set whether the panel is laid out in a horizontal fashion.
-
setMatchConstant(String)
- Set the text in the match constant text field.
-
setMatchUsing(String)
- Select the desired entry in the match using pulldown.
-
setUpperCaseEntry(boolean)
- Set entry to always be uppercase.
WhereClause
public WhereClause()
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.
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
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.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
buildWhereClause
public void buildWhereClause()
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.
setChooseFrom
public void setChooseFrom(String name)
- Select the desired entry in the choose from pulldown.
- Parameters:
- name - the entry to select.
getChooseFrom
public String getChooseFrom()
- Get the selected entry in the choose from pulldown.
- Returns:
- the entry that is selected.
setMatchUsing
public void setMatchUsing(String name)
- Select the desired entry in the match using pulldown.
- Parameters:
- name - the entry to select.
getMatchUsing
public String getMatchUsing()
- Get the selected entry in the match using pulldown.
- Returns:
- the entry that is selected.
setMatchConstant
public void setMatchConstant(String constant)
- Set the text in the match constant text field.
- Parameters:
- constant - the new value of the constant.
getMatchConstant
public String getMatchConstant()
- Get the text in the match constant text field.
- Returns:
- the text in the match constant text field.
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.
setUpperCaseEntry
public void setUpperCaseEntry(boolean uppercase)
- Set entry to always be uppercase.
- Parameters:
- uppercase - entry should be uppercase only.
getUpperCaseEntry
public boolean getUpperCaseEntry()
- Get whether entry is always uppercase.
- Returns:
- entry should be uppercase only.
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