wt.clients.beans
Class RapidFind

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

public class RapidFind
extends Panel

See Also:
Serialized Form

Nested Class Summary
(package private)  class RapidFind.SymAction
           
(package private)  class RapidFind.SymItem
           
(package private)  class RapidFind.SymKey
           
(package private)  class RapidFind.SymMouse
           
(package private)  class RapidFind.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.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)  Button browseButton
           
private  boolean cancelInProgress
           
private  boolean cardLayoutInitialized
           
(package private)  Label choiceLabel
           
(package private)  Choice classChoice
           
private  SchemeDB db
           
private static String EMPTY_STRING
           
(package private)  WTImagePanel imagePanel
           
(package private)  Label label1
           
private static ResourceBundle messagesResource
          The ResourceBundle containing localized error messages for this RapidFind
private  boolean multiSelect
           
protected  RapidFind.WorkThread myPR
           
(package private)  TextField numberField
           
private static String OPTIONS_RESOURCE
           
private static ListResourceBundle optionsResources
           
protected static int PROCESS_BROWSE
           
protected static int PROCESS_RETRIEVE
           
private  RapidFindListener rapidFindListener
           
private static String RESOURCE
          Defined constant used for referencing the ResourceBundle class for this WTContentHolder
(package private)  Button retrieveButton
           
protected  WTObject selectedObject
           
protected  WTObject[] selectedObjects
           
private  WTScheme selectedScheme
           
(package private)  Button stopButton
           
private  ThreadGroup theThreadGroup
           
protected  boolean verbose
           
(package private)  Checkbox versionCheckbox
           
(package private)  TextField versionField
           
private static String versionID
           
(package private)  Label versionLabel
           
 
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
RapidFind()
           
 
Method Summary
 void addRapidFindListener(RapidFindListener l)
           
(package private)  void browseButton_ActionPerformed(ActionEvent event)
           
(package private)  void classChoice_ItemStateChanged(ItemEvent event)
           
 Dimension getPreferredSize()
           
 WTObject getSelectedItem()
          Return the currently selected object.
 WTObject[] getSelectedItems()
          Return the currently selected array of objects.
private  void initChoiceList()
          Initialize the choice list.
private  ResourceBundle initResources()
          initResources gets the ResourceBundle used for providing localized error-messages and feedback.
 boolean isCancelInProgress()
           
 boolean isMultipleMode()
           
private  void localize()
          Localize the labels.
static void main(String[] args)
           
(package private)  void numberField_KeyPressed(KeyEvent event)
           
(package private)  void numberField_MousePressed(MouseEvent event)
           
private  void processBrowse()
           
private  void processRetrieve()
           
private  void reset()
          Reset to initial values.
(package private)  void retrieveButton_ActionPerformed(ActionEvent event)
           
protected  void setCancelInProgress(boolean state)
           
 void setEnabled(boolean b)
           
private  void setImage(WTObject an_object)
          Set the image associated with the object in the image panel.
 void setLayout(LayoutManager mgr)
           
 void setMultipleMode(boolean multi_select)
          Set the multiple select mode.
private  void setNumber(WTObject an_object)
           
private  void setVersion(WTObject an_object)
           
(package private)  void stopButton_ActionPerformed(ActionEvent event)
           
(package private)  void versionField_KeyPressed(KeyEvent event)
           
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
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, 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, 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, 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, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, 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

versionID

private static final String versionID
See Also:
Constant Field Values

messagesResource

private static ResourceBundle messagesResource
The ResourceBundle containing localized error messages for this RapidFind


RESOURCE

private static final String RESOURCE
Defined constant used for referencing the ResourceBundle class for this WTContentHolder

See Also:
Constant Field Values

PROCESS_BROWSE

protected static final int PROCESS_BROWSE
See Also:
Constant Field Values

PROCESS_RETRIEVE

protected static final int PROCESS_RETRIEVE
See Also:
Constant Field Values

EMPTY_STRING

private static final String EMPTY_STRING
See Also:
Constant Field Values

optionsResources

private static ListResourceBundle optionsResources

OPTIONS_RESOURCE

private static String OPTIONS_RESOURCE

theThreadGroup

private ThreadGroup theThreadGroup

selectedObject

protected WTObject selectedObject

selectedObjects

protected WTObject[] selectedObjects

cardLayoutInitialized

private boolean cardLayoutInitialized

multiSelect

private boolean multiSelect

db

private SchemeDB db

rapidFindListener

private RapidFindListener rapidFindListener

verbose

protected boolean verbose

cancelInProgress

private boolean cancelInProgress

myPR

protected RapidFind.WorkThread myPR

selectedScheme

private WTScheme selectedScheme

choiceLabel

Label choiceLabel

classChoice

Choice classChoice

browseButton

Button browseButton

label1

Label label1

numberField

TextField numberField

imagePanel

WTImagePanel imagePanel

stopButton

Button stopButton

versionLabel

Label versionLabel

versionField

TextField versionField

versionCheckbox

Checkbox versionCheckbox

retrieveButton

Button retrieveButton
Constructor Detail

RapidFind

public RapidFind()
Method Detail

setLayout

public void setLayout(LayoutManager mgr)

setEnabled

public void setEnabled(boolean b)

getPreferredSize

public Dimension getPreferredSize()

addRapidFindListener

public void addRapidFindListener(RapidFindListener l)

localize

private void localize()
Localize the labels.


initChoiceList

private void initChoiceList()
Initialize the choice list.


getSelectedItem

public WTObject getSelectedItem()
Return the currently selected object.

Returns:
the currently selected object, may be null.

getSelectedItems

public WTObject[] getSelectedItems()
Return the currently selected array of objects. Use this method to obtain a list of objects when using RapidFind in multi-select mode.

Returns:
the currently selected objects, may be null.

initResources

private ResourceBundle initResources()
initResources gets the ResourceBundle used for providing localized error-messages and feedback.

See Also:
ResourceBundle

reset

private void reset()
Reset to initial values.


classChoice_ItemStateChanged

void classChoice_ItemStateChanged(ItemEvent event)

browseButton_ActionPerformed

void browseButton_ActionPerformed(ActionEvent event)

stopButton_ActionPerformed

void stopButton_ActionPerformed(ActionEvent event)

retrieveButton_ActionPerformed

void retrieveButton_ActionPerformed(ActionEvent event)

setImage

private void setImage(WTObject an_object)
Set the image associated with the object in the image panel. If there is more than one object selected use the image that represents the class of the selected objects.


setMultipleMode

public void setMultipleMode(boolean multi_select)
Set the multiple select mode. If the mode is true then more than one item can be selected during a browse or retrieve.


isMultipleMode

public boolean isMultipleMode()

processBrowse

private void processBrowse()

processRetrieve

private void processRetrieve()

setNumber

private void setNumber(WTObject an_object)

setVersion

private void setVersion(WTObject an_object)

numberField_MousePressed

void numberField_MousePressed(MouseEvent event)

numberField_KeyPressed

void numberField_KeyPressed(KeyEvent event)

isCancelInProgress

public boolean isCancelInProgress()

setCancelInProgress

protected void setCancelInProgress(boolean state)

main

public static void main(String[] args)

versionField_KeyPressed

void versionField_KeyPressed(KeyEvent event)