All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.SearchResults

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

public class SearchResults
extends Panel
implements ActionListener, ItemListener
Class SearchResults represents a tree structure or a list that contains key elements of a database table(s) that allow subsequent selection for loading other databound classes such as grids, columns or charts.


Constructor Index

 o SearchResults()
 o SearchResults(User, boolean, Jagg, boolean, String, String[], String, String[], String[], String[], String, boolean, String)
Creates a Search Results panel.

Method Index

 o actionPerformed(ActionEvent)
 o addActionListener(ActionListener)
 o clearList()
Clear all the entries from the list or the tree
 o clearList(String)
Clear all the entries from the tree and set the root name
 o getAllowMultSel()
Set the multiple selection flag if this is a list and not a tree
 o getBackground()
Gets the background color.
 o getFont()
Gets the current font.
 o getForeground()
Gets the foreground color.
 o getListHandle()
Get the handle to the list component that is being used by this Result List.
 o getMinHeight()
Get mimimum height of this panel
 o getMinWidth()
Get mimimum width of this panel
 o getSelectedIndex()
Get the currently selected index for the list or the tree.
 o getSelectedKey()
Get the currently selected database key values for the list or the tree.
 o getTotalEntries()
Get the total entries currently displayed.
 o getTreeHandle()
Get the handle to the tree component that is being used by this Result List.
 o itemStateChanged(ItemEvent)
 o loadList()
Load the list or tree using the current settings.
 o removeActionListener(ActionListener)
 o resetSelections()
Reset the selections.
 o setAllowMultSel(boolean)
Set the multiple selection flag if this is a list and not a tree
 o setBackground(Color)
Sets the background color.
 o setFont(Font)
Sets the font for all subsequent text rendering operations.
 o setForeground(Color)
Sets the foreground color.
 o setFromWhereClause(String)
Set the new from/where clause
 o setListEvents(boolean)
Set the the flag to cause tree branch selections to trigger a list selected event.
 o setMinHeight(int)
Set mimimum height of this panel
 o setMinWidth(int)
Set mimimum width of this panel

Constructors

 o SearchResults
 public SearchResults()
 o SearchResults
 public SearchResults(User user,
                      boolean useTreeClass,
                      Jagg jaggSQL,
                      boolean pallowMultSel,
                      String pselectFields,
                      String psdisplayFields[],
                      String pfromWhereClause,
                      String psortChoiceText[],
                      String psortChoice[],
                      String pdisplayChoice[],
                      String pinitChoice,
                      boolean pdisplayCount,
                      String countText)
Creates a Search Results panel.

Parameters:
useTreeClass - specifies whether this is a tree structure or a list.
Jagg - a handle to an instance of Jagg. DSN and CSTR must already be intialized.
pallowMultSel - for lists specifies whether multiple selection is allowed
pselectFields - the database column names to retrieve to load the tree or list
psdisplayFields - the database column name to sort the entries by
fromWhereClause - the from/where clause to use when selecting rows from the table
psortChoiceText - the values for the sort choice pulldown
psortChoice - the actual column names for the sort choice pulldown
pdisplayChoice - the display choice values
pinitChoice - the initial choice for the sort choice pulldown
pdisplayCount - the display a result count flag
countText - the text for the row count

Methods

 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o getTotalEntries
 public int getTotalEntries()
Get the total entries currently displayed.

Returns:
the total entries currently displayed.
 o setBackground
 public void setBackground(Color plistBgColor)
Sets the background color.

Overrides:
setBackground in class Component
 o getBackground
 public Color getBackground()
Gets the background color.

Overrides:
getBackground in class Component
 o setForeground
 public void setForeground(Color plistFgColor)
Sets the foreground color.

Overrides:
setForeground in class Component
 o getForeground
 public Color getForeground()
Gets the foreground color.

Overrides:
getForeground in class Component
 o setFont
 public void setFont(Font thisFont)
Sets the font for all subsequent text rendering operations.

Overrides:
setFont in class Component
 o getFont
 public Font getFont()
Gets the current font.

Overrides:
getFont in class Component
 o setMinWidth
 public void setMinWidth(int width)
Set mimimum width of this panel

Parameters:
width - the new minimum width of this panel
Overrides:
setMinWidth in class Component
 o getMinWidth
 public int getMinWidth()
Get mimimum width of this panel

Returns:
width the new minimum width of this panel
Overrides:
getMinWidth in class Component
 o setMinHeight
 public void setMinHeight(int height)
Set mimimum height of this panel

Parameters:
height - the new minimum height of this panel
Overrides:
setMinHeight in class Component
 o getMinHeight
 public int getMinHeight()
Get mimimum height of this panel

Returns:
width the new minimum height of this panel
Overrides:
getMinHeight in class Component
 o clearList
 public void clearList()
Clear all the entries from the list or the tree

 o clearList
 public void clearList(String name)
Clear all the entries from the tree and set the root name

Parameters:
name - new root name for the tree
 o resetSelections
 public void resetSelections()
Reset the selections.

 o setFromWhereClause
 public void setFromWhereClause(String clause)
Set the new from/where clause

Parameters:
fromWhereClause - the new from/where clause for the loadList method.
 o setAllowMultSel
 public void setAllowMultSel(boolean pallowMultSel)
Set the multiple selection flag if this is a list and not a tree

Parameters:
pallowMultSel - the new value of the multiple selection flag.
 o getAllowMultSel
 public boolean getAllowMultSel()
Set the multiple selection flag if this is a list and not a tree

Parameters:
pallowMultSel - the new value of the multiple selection flag.
 o setListEvents
 public void setListEvents(boolean listEvents)
Set the the flag to cause tree branch selections to trigger a list selected event. By default this class will only kick an event if the lowest level of a tree branch is selected. Changing this flag allows upper branches to also kick an event.

Parameters:
listEvents - the new value of the list events flag.
 o loadList
 public void loadList()
Load the list or tree using the current settings.

 o getTreeHandle
 public Tree getTreeHandle()
Get the handle to the tree component that is being used by this Result List.

Returns:
the handle to the tree component that is being used by this Result List.
 o getListHandle
 public List getListHandle()
Get the handle to the list component that is being used by this Result List.

Returns:
the handle to the list component that is being used by this Result List.
 o getSelectedIndex
 public int getSelectedIndex()
Get the currently selected index for the list or the tree.

Returns:
the currently selected index for the list or the tree.
 o getSelectedKey
 public String[] getSelectedKey()
Get the currently selected database key values for the list or the tree.

Returns:
the currently selected key values for the list or the tree.
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index