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.
-
SearchResults()
-
-
SearchResults(User, boolean, Jagg, boolean, String, String[], String, String[], String[], String[], String, boolean, String)
- Creates a Search Results panel.
-
actionPerformed(ActionEvent)
-
-
addActionListener(ActionListener)
-
-
clearList()
- Clear all the entries from the list or the tree
-
clearList(String)
- Clear all the entries from the tree and set the root name
-
getAllowMultSel()
- Set the multiple selection flag if this is a list and not a tree
-
getBackground()
- Gets the background color.
-
getFont()
- Gets the current font.
-
getForeground()
- Gets the foreground color.
-
getListHandle()
- Get the handle to the list component that is being used by this Result List.
-
getMinHeight()
- Get mimimum height of this panel
-
getMinWidth()
- Get mimimum width of this panel
-
getSelectedIndex()
- Get the currently selected index for the list or the tree.
-
getSelectedKey()
- Get the currently selected database key values for the list or the tree.
-
getTotalEntries()
- Get the total entries currently displayed.
-
getTreeHandle()
- Get the handle to the tree component that is being used by this Result List.
-
itemStateChanged(ItemEvent)
-
-
loadList()
- Load the list or tree using the current settings.
-
removeActionListener(ActionListener)
-
-
resetSelections()
- Reset the selections.
-
setAllowMultSel(boolean)
- Set the multiple selection flag if this is a list and not a tree
-
setBackground(Color)
-
Sets the background color.
-
setFont(Font)
- Sets the font for all subsequent text rendering operations.
-
setForeground(Color)
-
Sets the foreground color.
-
setFromWhereClause(String)
- Set the new from/where clause
-
setListEvents(boolean)
- Set the the flag to cause tree branch selections to trigger a list selected
event.
-
setMinHeight(int)
- Set mimimum height of this panel
-
setMinWidth(int)
- Set mimimum width of this panel
SearchResults
public SearchResults()
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
addActionListener
public void addActionListener(ActionListener al)
removeActionListener
public void removeActionListener(ActionListener al)
getTotalEntries
public int getTotalEntries()
- Get the total entries currently displayed.
- Returns:
- the total entries currently displayed.
setBackground
public void setBackground(Color plistBgColor)
- Sets the background color.
- Overrides:
- setBackground in class Component
getBackground
public Color getBackground()
- Gets the background color.
- Overrides:
- getBackground in class Component
setForeground
public void setForeground(Color plistFgColor)
- Sets the foreground color.
- Overrides:
- setForeground in class Component
getForeground
public Color getForeground()
- Gets the foreground color.
- Overrides:
- getForeground in class Component
setFont
public void setFont(Font thisFont)
- Sets the font for all subsequent text rendering operations.
- Overrides:
- setFont in class Component
getFont
public Font getFont()
- Gets the current font.
- Overrides:
- getFont in class Component
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
getMinWidth
public int getMinWidth()
- Get mimimum width of this panel
- Returns:
- width the new minimum width of this panel
- Overrides:
- getMinWidth in class Component
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
getMinHeight
public int getMinHeight()
- Get mimimum height of this panel
- Returns:
- width the new minimum height of this panel
- Overrides:
- getMinHeight in class Component
clearList
public void clearList()
- Clear all the entries from the list or the tree
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
resetSelections
public void resetSelections()
- Reset the selections.
setFromWhereClause
public void setFromWhereClause(String clause)
- Set the new from/where clause
- Parameters:
- fromWhereClause - the new from/where clause for the loadList method.
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.
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.
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.
loadList
public void loadList()
- Load the list or tree using the current settings.
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.
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.
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.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
itemStateChanged
public void itemStateChanged(ItemEvent e)
All Packages Class Hierarchy This Package Previous Next Index