wt.clients.beans
Class OrgChooserDialog

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

public class OrgChooserDialog
extends Dialog

See Also:
Serialized Form

Nested Class Summary
(package private)  class OrgChooserDialog.SymAction
           
(package private)  class OrgChooserDialog.SymKey
           
(package private)  class OrgChooserDialog.SymMouse
           
(package private)  class OrgChooserDialog.SymWindow
           
(package private)  class OrgChooserDialog.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
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
(package private)  Button clearButton
           
private  ThreadGroup contextGroup
           
(package private)  boolean fComponentsAdjusted
           
(package private)  Button findButton
           
(package private)  Button helpButton
           
(package private)  HelpContext helpContext
           
(package private)  HelpSystem helpSystem
           
(package private)  Label idLabel
           
(package private)  TextField idTextField
           
(package private) static int INIT_ORG_LIST
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
private  boolean ok
           
(package private)  Button okButton
           
(package private)  WTMultiList orgList
           
private  Frame parentFrame
           
private  Vector propertyChangeListeners
           
private static String RESOURCE_BUNDLE
           
(package private)  symantec.itools.awt.BorderPanel resultsPanel
           
(package private)  Panel searchButtonPanel
           
(package private)  symantec.itools.awt.BorderPanel searchPanel
           
 
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
OrgChooserDialog(Frame parent)
           
OrgChooserDialog(Frame parent, boolean modal)
           
OrgChooserDialog(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 findButton_ActionPerformed(ActionEvent event)
           
private  void firePropertyChangeEvent(String command, Object oldValue, Object newValue)
           
 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.
 WTOrganization getOrg(int index)
          Get the WTOrganization object at the specified index.
 int getOrgCount()
          Return the number of organizations in the organization list.
private  Frame getParentFrame()
          Returns the parent Frame to this Panel.
 WTOrganization getSelectedOrg()
          Return the currently selected organization.
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
(package private)  void idTextField_KeyTyped(KeyEvent event)
           
private  void initHelpSystem()
           
private  void initializeHelp()
           
private  void initOrgList()
          Spin off a thread to initialize the choice list.
 boolean isOK()
           
private  void localize()
           
(package private)  void nameTextField_KeyTyped(KeyEvent event)
           
(package private)  void okButton_ActionPerformed(ActionEvent event)
           
(package private)  void OrgChooserDialog_MouseExited(MouseEvent event)
           
(package private)  void OrgChooserDialog_WindowClosing(WindowEvent event)
           
private  void orgList_actionPerformed(ActionEvent event)
           
(package private)  void orgList_keyTyped(KeyEvent event)
           
private  void populateOrgList()
           
 void removeHelpListener(PropertyChangeListener pcl)
          Method removeHelpListener removes a listener which was being notified of PropertyChangeEvents in the help system.
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
 
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

private static final String RESOURCE_BUNDLE
See Also:
Constant Field Values

ok

private boolean ok

contextGroup

private ThreadGroup contextGroup

helpSystem

HelpSystem helpSystem

helpContext

HelpContext helpContext

propertyChangeListeners

private Vector propertyChangeListeners

INIT_ORG_LIST

static final int INIT_ORG_LIST
See Also:
Constant Field Values

parentFrame

private Frame parentFrame

fComponentsAdjusted

boolean fComponentsAdjusted

searchPanel

symantec.itools.awt.BorderPanel searchPanel

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

idLabel

Label idLabel

idTextField

TextField idTextField

searchButtonPanel

Panel searchButtonPanel

findButton

Button findButton

clearButton

Button clearButton

resultsPanel

symantec.itools.awt.BorderPanel resultsPanel

orgList

WTMultiList orgList

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton
Constructor Detail

OrgChooserDialog

public OrgChooserDialog(Frame parent)

OrgChooserDialog

public OrgChooserDialog(Frame parent,
                        boolean modal)

OrgChooserDialog

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

localize

private void localize()

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()

getOrg

public WTOrganization getOrg(int index)
Get the WTOrganization object at the specified index.

Supported API: false.

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

getSelectedOrg

public WTOrganization getSelectedOrg()
Return the currently selected organization.

Supported API: false.

Returns:
the selected WTOrganizaton

getOrgCount

public int getOrgCount()
Return the number of organizations in the organization list.

Supported API: false.

Returns:
the number of organizations in the organization list.

isOK

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

OrgChooserDialog_WindowClosing

void OrgChooserDialog_WindowClosing(WindowEvent event)

findButton_ActionPerformed

void findButton_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()

initOrgList

private void initOrgList()
Spin off a thread to initialize the choice list.


getParentFrame

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


populateOrgList

private void populateOrgList()

firePropertyChangeEvent

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

orgList_actionPerformed

private void orgList_actionPerformed(ActionEvent event)

OrgChooserDialog_MouseExited

void OrgChooserDialog_MouseExited(MouseEvent event)

nameTextField_KeyTyped

void nameTextField_KeyTyped(KeyEvent event)

idTextField_KeyTyped

void idTextField_KeyTyped(KeyEvent event)

orgList_keyTyped

void orgList_keyTyped(KeyEvent event)