wt.clients.gui
Class ContainerChooserDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.gui.ContainerChooserDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class ContainerChooserDialog
extends Dialog

See Also:
Serialized Form

Nested Class Summary
static class ContainerChooserDialog.Server
          Inner class that acts a lightweight service which executes methods on the server to reduce unnecessary client to server traffic and data transfer.
(package private)  class ContainerChooserDialog.SymAction
           
(package private)  class ContainerChooserDialog.SymKey
           
(package private)  class ContainerChooserDialog.SymMouse
           
(package private)  class ContainerChooserDialog.SymWindow
           
(package private)  class ContainerChooserDialog.WorkThread
          The work thread is used to place long operations in a separate WTThread so the AWT thread isn't tied up.
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
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
protected  Vector bothVector
           
(package private)  Panel buttonPanel
           
static int CANCEL
           
(package private)  Button cancelButton
           
(package private)  Button clearButton
           
protected  int command
           
(package private)  WTMultiList containerItemsList
           
protected  Object containerListLock
           
private  ThreadGroup contextGroup
           
(package private)  boolean fComponentsAdjusted
           
protected static String HELP_KEY
           
(package private)  Button helpButton
           
protected  HelpContext helpContext
           
protected  HelpSystem helpSystem
           
protected  IconCache iconCache
           
protected static int INDEX_COL
           
(package private) static int INIT_CONT_LIST
           
protected static int INITIALIZE_CONTEXTS
           
protected static int INITIALIZE_IMAGES
           
protected static int ITEM_SELECTED
           
protected static String LIBRARY_ICON
           
protected  Image libraryImage
           
protected  Vector libraryVector
           
protected static int NAME_COL
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
private  boolean ok
           
static int OK
           
(package private)  Button okButton
           
private  Frame parentFrame
           
protected  Image productImage
           
protected  Vector productVector
           
protected  Image projectImage
           
protected  Vector projectVector
           
private  Vector propertyChangeListeners
           
static String RESOURCE_BUNDLE
           
(package private)  symantec.itools.awt.BorderPanel resultsPanel
           
(package private)  Button searchButton
           
(package private)  Panel searchButtonPanel
           
(package private)  Choice searchOnChoice
           
(package private)  Label searchOnLabel
           
(package private)  symantec.itools.awt.BorderPanel searchPanel
           
private static String SERVER_CLASS
           
protected static int SHOW_HELP
           
protected  boolean showLibraries
           
private  boolean showOrg
           
private  ThreadGroup threadGroup
           
private  boolean useProjects
           
protected static boolean VERBOSE
           
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ContainerChooserDialog(Frame parent)
           
ContainerChooserDialog(Frame parent, boolean modal)
           
ContainerChooserDialog(Frame parent, boolean modal, String projects)
           
ContainerChooserDialog(Frame parent, String projects)
           
ContainerChooserDialog(Frame parent, String title, boolean modal)
           
 
Method Summary
 void addHelpListener(PropertyChangeListener pcl)
          Method addHelpListener adds the given listener to be notified of PropertyChangeEvents in the help system.
 void addNotify()
           
(package private)  void cancelButton_ActionPerformed(ActionEvent event)
           
(package private)  void clearButton_ActionPerformed(ActionEvent event)
           
(package private)  void ContainerChooserDialog_MouseExited(MouseEvent event)
           
(package private)  void ContainerChooserDialog_WindowClosing(WindowEvent event)
           
private  void containerItemsList_actionPerformed(ActionEvent event)
           
(package private)  void containerItemsList_keyTyped(KeyEvent event)
           
private  void firePropertyChangeEvent(String command, Object oldValue, Object newValue)
           
 WTContainer getContainer(int index)
          Get the WTContainer object at the specified index.
private  Vector getContainers(String name)
           
protected  WTContext getContext()
           
 HelpContext getHelpContext()
          This is the public getter for the HelpContext being used for the online help.
 HelpSystem getHelpSystem()
          This is the public getter for the HelpSystem being used for the online help.
private  Frame getParentFrame()
          Returns the parent Frame to this Panel.
 WTContainer getSelectedContainer()
          Return the currently selected organization.
 boolean getUseProjects()
          This method is to get whether to show projects or not

Supported API: false
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
private  void initHelpSystem()
           
protected  void initializeContainers()
           
private  void initializeHelp()
           
protected  void initImages()
           
 boolean isOK()
           
private  void localize()
           
(package private)  void nameTextField_KeyTyped(KeyEvent event)
           
(package private)  void okButton_ActionPerformed(ActionEvent event)
           
private  void populateContainerList()
           
protected  void populateListWithAll()
           
protected  void populateListWithBoth()
           
protected  void populateListWithLibraries()
           
protected  void populateListWithProducts()
           
protected  void populateListWithProjects()
           
 void removeHelpListener(PropertyChangeListener pcl)
          Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system.
(package private)  void searchButton_ActionPerformed(ActionEvent event)
           
 void setLibrary()
           
 void setProduct()
           
 void setProject()
           
 void setUseProjects(boolean projects)
          This method is to set projects on

Supported API: false
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
 boolean showOrg()
           
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_BUNDLE

public static final String RESOURCE_BUNDLE
See Also:
Constant Field Values

ok

private boolean ok

contextGroup

private ThreadGroup contextGroup

propertyChangeListeners

private Vector propertyChangeListeners

INIT_CONT_LIST

static final int INIT_CONT_LIST
See Also:
Constant Field Values

parentFrame

private Frame parentFrame

threadGroup

private ThreadGroup threadGroup

libraryImage

protected Image libraryImage

productImage

protected Image productImage

projectImage

protected Image projectImage

iconCache

protected IconCache iconCache

containerListLock

protected Object containerListLock

helpSystem

protected HelpSystem helpSystem

helpContext

protected HelpContext helpContext

command

protected int command

showLibraries

protected boolean showLibraries

bothVector

protected Vector bothVector

libraryVector

protected Vector libraryVector

productVector

protected Vector productVector

projectVector

protected Vector projectVector

VERBOSE

protected static boolean VERBOSE

NAME_COL

protected static final int NAME_COL
See Also:
Constant Field Values

INDEX_COL

protected static final int INDEX_COL
See Also:
Constant Field Values

INITIALIZE_IMAGES

protected static final int INITIALIZE_IMAGES
See Also:
Constant Field Values

INITIALIZE_CONTEXTS

protected static final int INITIALIZE_CONTEXTS
See Also:
Constant Field Values

ITEM_SELECTED

protected static final int ITEM_SELECTED
See Also:
Constant Field Values

SHOW_HELP

protected static final int SHOW_HELP
See Also:
Constant Field Values

LIBRARY_ICON

protected static final String LIBRARY_ICON
See Also:
Constant Field Values

HELP_KEY

protected static final String HELP_KEY
See Also:
Constant Field Values

OK

public static final int OK
See Also:
Constant Field Values

CANCEL

public static final int CANCEL
See Also:
Constant Field Values

showOrg

private boolean showOrg

SERVER_CLASS

private static final String SERVER_CLASS

useProjects

private boolean useProjects

fComponentsAdjusted

boolean fComponentsAdjusted

searchOnLabel

Label searchOnLabel

searchOnChoice

Choice searchOnChoice

searchPanel

symantec.itools.awt.BorderPanel searchPanel

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

searchButtonPanel

Panel searchButtonPanel

searchButton

Button searchButton

clearButton

Button clearButton

resultsPanel

symantec.itools.awt.BorderPanel resultsPanel

containerItemsList

WTMultiList containerItemsList

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton
Constructor Detail

ContainerChooserDialog

public ContainerChooserDialog(Frame parent,
                              String projects)

ContainerChooserDialog

public ContainerChooserDialog(Frame parent)

ContainerChooserDialog

public ContainerChooserDialog(Frame parent,
                              boolean modal)

ContainerChooserDialog

public ContainerChooserDialog(Frame parent,
                              boolean modal,
                              String projects)

ContainerChooserDialog

public ContainerChooserDialog(Frame parent,
                              String title,
                              boolean modal)
Method Detail

addNotify

public void addNotify()

setVisible

public void setVisible(boolean b)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component; otherwise, hide the component.
See Also:
Component.isVisible()

setLibrary

public void setLibrary()

setProduct

public void setProduct()

setProject

public void setProject()

getContainer

public WTContainer getContainer(int index)
Get the WTContainer object at the specified index.

Supported API: false.

Parameters:
index - The index to obtain the WTContainer.
Returns:
the WTUser

getSelectedContainer

public WTContainer getSelectedContainer()
Return the currently selected organization.

Supported API: false.

Returns:
the selected WTOrganizaton

isOK

public boolean isOK()
Returns:
true if the user hit the ok button otherwise false.

ContainerChooserDialog_WindowClosing

void ContainerChooserDialog_WindowClosing(WindowEvent event)

searchButton_ActionPerformed

void searchButton_ActionPerformed(ActionEvent event)

clearButton_ActionPerformed

void clearButton_ActionPerformed(ActionEvent event)

okButton_ActionPerformed

void okButton_ActionPerformed(ActionEvent event)

cancelButton_ActionPerformed

void cancelButton_ActionPerformed(ActionEvent event)

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

getHelpSystem

public HelpSystem getHelpSystem()
This is the public getter for the HelpSystem being used for the online help.

Supported API: true.

Returns:
The HelpSystem for the bean
See Also:
HelpSystem

getHelpContext

public HelpContext getHelpContext()
This is the public getter for the HelpContext being used for the online help.

Supported API: true.

Returns:
The HelpContext for the bean.
See Also:
HelpContext

addHelpListener

public void addHelpListener(PropertyChangeListener pcl)
Method addHelpListener adds the given listener to be notified of PropertyChangeEvents in the help system. Tool description PropertyChangeEvents are generated when the user mouses over the buttons and list of ContentItems in this panel. The given listener will be notified of those events.

Supported API: true.

Parameters:
pcl - The PropertyChangeListener to be notified of PropertyChangeEvents generated by the help system.
See Also:
removeHelpListener(java.beans.PropertyChangeListener), HelpSystem, HelpContext, PropertyChangeListener

removeHelpListener

public void removeHelpListener(PropertyChangeListener pcl)
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: true.

Parameters:
pcl - the PropertyChangeListener to be removed as a listener of events generated by the help system of this panel.
See Also:
addHelpListener(java.beans.PropertyChangeListener), PropertyChangeListener

initializeHelp

private void initializeHelp()

initHelpSystem

private void initHelpSystem()

localize

private void localize()

getParentFrame

private Frame getParentFrame()
Returns the parent Frame to this Panel.


populateContainerList

private void populateContainerList()

populateListWithProducts

protected void populateListWithProducts()

populateListWithLibraries

protected void populateListWithLibraries()

populateListWithProjects

protected void populateListWithProjects()

populateListWithBoth

protected void populateListWithBoth()

populateListWithAll

protected void populateListWithAll()

initializeContainers

protected void initializeContainers()

initImages

protected void initImages()

getContext

protected WTContext getContext()

firePropertyChangeEvent

private void firePropertyChangeEvent(String command,
                                     Object oldValue,
                                     Object newValue)

containerItemsList_actionPerformed

private void containerItemsList_actionPerformed(ActionEvent event)

ContainerChooserDialog_MouseExited

void ContainerChooserDialog_MouseExited(MouseEvent event)

nameTextField_KeyTyped

void nameTextField_KeyTyped(KeyEvent event)

containerItemsList_keyTyped

void containerItemsList_keyTyped(KeyEvent event)

showOrg

public boolean showOrg()

getContainers

private Vector getContainers(String name)
                      throws WTException
Throws:
WTException

setUseProjects

public void setUseProjects(boolean projects)
This method is to set projects on

Supported API: false


getUseProjects

public boolean getUseProjects()
This method is to get whether to show projects or not

Supported API: false