wt.clients.beans.query
Class WTMultiChooser

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bysymantec.itools.awt.BorderPanel
                  extended bywt.clients.beans.query.WTPanel
                      extended bywt.clients.beans.query.WTMultiChooser
All Implemented Interfaces:
Accessible, symantec.itools.awt.AlignStyle, symantec.itools.awt.BevelStyle, ContainerListener, EventListener, ImageObserver, MenuContainer, Serializable

public class WTMultiChooser
extends WTPanel

WTMultiChooser is similar to WTChooser, except that it allows querying against one of multiple classes in a drop-down list.

Supported API: false

Extendable: false

See Also:
ChooserOptions, WTChooser, Serialized Form

Nested Class Summary
(package private)  class WTMultiChooser.QueryListener
           
(package private)  class WTMultiChooser.SymItem
           
 
Nested classes inherited from class symantec.itools.awt.BorderPanel
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  Choice classChoice
           
private  String[] classLabels
           
private  String classList
           
private  SchemeDB db
           
private  JDialog myDialog
           
private static String OPTIONS_RESOURCE
           
(package private)  Label searchOnLabel
           
private static String versionID
           
(package private)  WTQuery wTQuery1
           
 
Fields inherited from class wt.clients.beans.query.WTPanel
BOTH, CENTER, EAST, EQUATOR, FLAT, HORIZONTAL, LEFT, LINE, LOWER, NONE, NORTH, RAISE, RIGHT, SOUTH, VERTICAL, WEST
 
Fields inherited from class symantec.itools.awt.BorderPanel
bevelDarkerColor, bevelLighterColor, borderColor, cachedBackground, errors, internalInsets, ixPad, iyPadBottom, iyPadTop, label, labelAlignment, labelColor, labelipadx, labelpadx, padbottom, padleft, padright, padtop, panel, style
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface symantec.itools.awt.AlignStyle
ALIGN_CENTERED, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from interface symantec.itools.awt.BevelStyle
BEVEL_LINE, BEVEL_LOWERED, BEVEL_NONE, BEVEL_RAISED
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WTMultiChooser()
          Default no-arg constructor.
WTMultiChooser(String a_class_list, String a_title)
          Constructor specifying fully qualified class names and title.
WTMultiChooser(String a_class_list, String a_title, Component a_parent)
          Constructor specifying fully qualified class names, title and parent component.
WTMultiChooser(String a_class_list, String a_title, Component a_parent, String a_search_filter)
          Constructor specifying fully qualified class names, title, parent component and search filter.
WTMultiChooser(String a_class_list, String a_title, Component a_parent, String a_search_filter, boolean show_iba)
          Constructor specifying fully qualified class names, title, parent component and search filter.
WTMultiChooser(String a_class_list, String a_title, String a_search_filter)
          Constructor specifying fully qualified class names, title and search filter.
 
Method Summary
 void addListener(WTQueryListener a_listener)
          Method addListener adds the given listener to be notified of WTQueryEvents.
(package private)  void classChoice_ItemStateChanged(ItemEvent event)
           
private  String display(String key, Object[] params)
          Returns the localized string to be displayed to the user given a key.
protected  void localize()
          Sets the localized text of display fields.
 void removeListener(WTQueryListener a_listener)
          Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system.
 void setClassList(String a_class_list)
          Set the class names to be used.
 void setIbaTabVisible(boolean mode)
          If this isn't used to set the IBA tab to not visible then the tab is visible on WTParts.
 void setMultipleMode(boolean mode)
           
 void setSize(int width, int height)
           
private  void setup(String a_title, Component a_parent, String a_search_filter, boolean show_iba)
           
 void setVisible(boolean a_value)
          This will either show or hide the WTMultiChooser panel.
 
Methods inherited from class wt.clients.beans.query.WTPanel
add, add, add, add, getPad, PAD, setPad
 
Methods inherited from class symantec.itools.awt.BorderPanel
addBevelStyleListener, addBevelStyleListener, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addVetoableChangeListener, calculateHilightColors, componentAdded, componentRemoved, countComponents, draw, drawBorder, drawLabel, getAlignStyle, getBevelStyle, getBorderColor, getComponent, getComponentCount, getComponents, getInternalInsets, getIPadBottom, getIPadSides, getIPadTop, getLabel, getLabelColor, getLabelTopMargin, getLabelWidthMargin, getLayout, getMinimumSize, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPreferredSize, insets, isValidBevelStyle, layout, minimumSize, paint, preferredSize, remove, remove, removeAll, removeBevelStyleListener, removeBevelStyleListener, removeContainerListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, reshape, setAlignStyle, setBackground, setBevelStyle, setBorderColor, setBorderColor, setBounds, setInternalInsets, setIPadBottom, setIPadSides, setIPadTop, setLabel, setLabelColor, setLayout, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, sizepanel, update
 
Methods inherited from class java.awt.Panel
getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getListeners, getMaximumSize, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

classList

private String classList

classLabels

private String[] classLabels

db

private SchemeDB db

myDialog

private JDialog myDialog

searchOnLabel

Label searchOnLabel

classChoice

Choice classChoice

wTQuery1

WTQuery wTQuery1

OPTIONS_RESOURCE

private static String OPTIONS_RESOURCE
Constructor Detail

WTMultiChooser

public WTMultiChooser()
Default no-arg constructor. If you use this constructor it is necessary to call the setClassList method with fully qualified class names that have associated definitions in the ChooserOptions object.

Supported API: false


WTMultiChooser

public WTMultiChooser(String a_class_list,
                      String a_title)
Constructor specifying fully qualified class names and title.

Supported API: false

Parameters:
a_class_list - A list of fully qualified class names. There must be associated definitions for these class names in the ChooserOptions object.
a_title - The title displayed above the tab panel.

WTMultiChooser

public WTMultiChooser(String a_class_list,
                      String a_title,
                      String a_search_filter)
Constructor specifying fully qualified class names, title and search filter.

Supported API: false

Parameters:
a_class_list - A list of fully qualified class names. There must be associated definitions for these class names in the ChooserOptions object.
a_title - The title displayed above the tab panel.
a_search_filter - A search filter type to pass to the method server when processing the query command. See wt.query.SearchTask for search filter string constants.
See Also:
SearchTask

WTMultiChooser

public WTMultiChooser(String a_class_list,
                      String a_title,
                      Component a_parent)
Constructor specifying fully qualified class names, title and parent component. This will create a dialog window to contain WTMultiChooser. The parent component must either be a java.awt.frame or have one in it's hierarchy for the dialog to associate itself with.

Supported API: false

Parameters:
a_class_list - A list of fully qualified class names. There must be associated definitions for these class names in the ChooserOptions object.
a_title - The title displayed above the tab panel.
a_parent - The parent for the dialog window.

WTMultiChooser

public WTMultiChooser(String a_class_list,
                      String a_title,
                      Component a_parent,
                      String a_search_filter)
Constructor specifying fully qualified class names, title, parent component and search filter. This will create a dialog window to contain WTMultiChooser. The parent component must either be a java.awt.frame or have one in it's hierarchy for the dialog to associate itself with.

Supported API: false

Parameters:
a_class_list - A list of fully qualified class names. There must be associated definitions for these class names in the ChooserOptions object.
a_title - The title displayed above the tab panel.
a_parent - The parent for the dialog window.
a_search_filter - A search filter type to pass to the method server when processing the query command. See wt.query.SearchTask for search filter string constants.
See Also:
SearchTask

WTMultiChooser

public WTMultiChooser(String a_class_list,
                      String a_title,
                      Component a_parent,
                      String a_search_filter,
                      boolean show_iba)
Constructor specifying fully qualified class names, title, parent component and search filter. This will create a dialog window to contain WTMultiChooser. The parent component must either be a java.awt.frame or have one in it's hierarchy for the dialog to associate itself with.

Supported API: false

Parameters:
a_class_list - A list of fully qualified class names. There must be associated definitions for these class names in the ChooserOptions object.
a_title - The title displayed above the tab panel.
a_parent - The parent for the dialog window.
a_search_filter - A search filter type to pass to the method server when processing the query command. See wt.query.SearchTask for search filter string constants.
See Also:
SearchTask
Method Detail

setup

private void setup(String a_title,
                   Component a_parent,
                   String a_search_filter,
                   boolean show_iba)

setVisible

public void setVisible(boolean a_value)
This will either show or hide the WTMultiChooser panel.

Supported API: false

Parameters:
a_value - Set to true to show or false to hide.

setClassList

public void setClassList(String a_class_list)
Set the class names to be used. The class names must have associated definitions in the ChoserOptions class. This method is required if the no-arg constructor is used.

Supported API: false

Parameters:
a_class_list - A space-separated list of fully qualified class names. There must be an associated definition for these class names in the ChooserOptions object.
See Also:
ChooserOptions

localize

protected void localize()
Sets the localized text of display fields.

Supported API: false.


classChoice_ItemStateChanged

void classChoice_ItemStateChanged(ItemEvent event)

addListener

public void addListener(WTQueryListener a_listener)
Method addListener adds the given listener to be notified of WTQueryEvents. A WTQueryEvent is fired when a button is clicked, a status message is ready or the selection has been changed in the results viewing area.

Supported API: false.

Parameters:
a_listener - The WTQueryListener to be notified of WTQueryEvents.
See Also:
removeListener(wt.clients.beans.query.WTQueryListener), WTQueryListener, WTQueryEvent

removeListener

public void removeListener(WTQueryListener a_listener)
Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system. If the given listener is not currently a listener, no changes are made.

Supported API: false.

Parameters:
a_listener - the WTQueryistener to be removed as a listener of events generated by the help system of this panel.
See Also:
addListener(wt.clients.beans.query.WTQueryListener), WTQueryListener

display

private String display(String key,
                       Object[] params)
Returns the localized string to be displayed to the user given a key.

Parameters:
key - The string that represents the key in the BeansQueryRB.
Returns:
A string to be displayed to the user.

setMultipleMode

public void setMultipleMode(boolean mode)
                     throws PropertyVetoException
Throws:
PropertyVetoException

setIbaTabVisible

public void setIbaTabVisible(boolean mode)
If this isn't used to set the IBA tab to not visible then the tab is visible on WTParts.


setSize

public void setSize(int width,
                    int height)