wt.clients.gui
Class ChooserApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended bywt.clients.gui.ChooserApplet
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class ChooserApplet
extends Applet

This class extends Applet and allows a user to search for an object and then either update or view that object. It contains the WtChooser which actually does the search. This is simply a wrapper class which passes the class to be searched on to the WtChooser and knows how to handle the Close and OK events received from the WtChooser.

Supported API: false.

Extendable: false.

See Also:
Serialized Form

Nested Class Summary
(package private)  class ChooserApplet.ChooserListener
          Internal class that implements WTQueryListener and listens for WTQueryEvent.
 
Nested classes inherited from class java.applet.Applet
Applet.AccessibleApplet
 
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
 WTChooser chooser
           
 WTContext context
           
(package private) static String currentClass
          Public variable to hold the String that represents the class to be searched on.
(package private) static String currentTask
          Public variable to hold the String representing the task to be performed after the user completes the search (i.e.
private static Object initSync
           
private static String LABELS_RESOURCE
           
private static ResourceBundle labelsResource
           
static String UPDATE
           
static String VIEW
           
 
Fields inherited from class java.applet.Applet
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ChooserApplet()
           
 
Method Summary
 void destroy()
          Destroys the WTContext and the Applet

Supported API: false.
private static String display(String key)
          Returns the localized string to be displayed to the user given a key.
(package private)  Frame getTopLevelParent(Component component)
          This method will find the top level parent of the given Component, and if it is a Frame, it will return it.
 void init()
          Initialize ChooserApplet.
private static void initResources()
          Initializes resource bundles used by this class.
(package private)  WTChooser initWTChooser()
          Create a new instance of WTChooser to search on the currentClass.
 void start()
          Starts the WTContext and the Applet

Supported API: false.
 void stop()
          Stops the WTContext and the Applet

Supported API: false.
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, 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, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, 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

UPDATE

public static String UPDATE

VIEW

public static String VIEW

currentTask

static String currentTask
Public variable to hold the String representing the task to be performed after the user completes the search (i.e. UPDATE, or VIEW)


currentClass

static String currentClass
Public variable to hold the String that represents the class to be searched on. (i.e. WTChangeRequest)


context

public WTContext context

chooser

public WTChooser chooser

initSync

private static Object initSync

labelsResource

private static ResourceBundle labelsResource

LABELS_RESOURCE

private static String LABELS_RESOURCE
Constructor Detail

ChooserApplet

public ChooserApplet()
Method Detail

init

public void init()
Initialize ChooserApplet. It creates a new instance of WTChooser and passes the name of the class to be searched on.

Supported API: false.


initWTChooser

WTChooser initWTChooser()
Create a new instance of WTChooser to search on the currentClass.


getTopLevelParent

Frame getTopLevelParent(Component component)
This method will find the top level parent of the given Component, and if it is a Frame, it will return it. This is used by MessageDialog to provide important information to the user about exceptions, etc.

Parameters:
component - A Component whos top level Frame is desired.
Returns:
c The top level Frame of the given Component

start

public void start()
Starts the WTContext and the Applet

Supported API: false.


stop

public void stop()
Stops the WTContext and the Applet

Supported API: false.


destroy

public void destroy()
Destroys the WTContext and the Applet

Supported API: false.


display

private static String display(String key)
Returns the localized string to be displayed to the user given a key.

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

initResources

private static void initResources()
Initializes resource bundles used by this class.