Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gov.lanl.PidTrader
Class TestGUI  view TestGUI download TestGUI.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended bygov.lanl.PidTrader.TestGUI
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, CallbackObjectFinderListCallback, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class TestGUI
extends java.awt.Frame
implements java.awt.event.ActionListener, CallbackObjectFinderListCallback

Implements a sketch GUI to the Trader Service (mediated by a PIDTrader object) and is use to acguire and display a list of PIDS offers from the Trader and to select one of those offers for display by the campanion PID Search Frame. The PIDTrader object is used to get a list of Person Identifacation Service (PIDS) offers from a list of a Traders (supplied as IOR files on the command line). Searching of PIDS by name is supported on both the Domain Name and the Component Name (Local Name). This searching can be for an exact or a partial (substring) match. Searching for PIDS that support given traits is also supported.

Version:
1.0 27 Aug 1998

Nested Class Summary
private  class TestGUI.TraderAndInterface
           
private  class TestGUI.TraderAndOffer
           
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean clean
           
private  java.awt.TextField domainConstraintText
           
private  java.awt.Checkbox domainExactCheckbox
           
private  TestGUITraitsFrame frame
           
private  java.awt.TextField generalConstraintText
           
private  boolean ignoreRequest_
           
private  java.awt.TextField localConstraintText
           
private  java.awt.Checkbox localExactCheckbox
           
private  java.awt.Cursor oldCursor_
           
private  org.omg.CORBA.ORB orb_
           
private  PIDSearchFrame propertySearchDisplay
           
private static java.lang.String QUIT_BUTTON
           
private  java.awt.Button quitButton
           
private static java.lang.String REFRESH_BUTTON
           
private  java.awt.Button refreshButton
           
private  CallbackObjectFinderList table
           
private  java.util.Vector TraderAndInterfaceVector_
           
private static java.lang.String TRAITS_BUTTON
           
private static java.lang.String[] traitsArray
           
private  java.awt.Button traitsButton
           
private  boolean[] traitsFlagArray
           
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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
TestGUI(java.lang.String[] args)
          The initiaization method.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
private  void addTraitsConstraints()
           
(package private)  void cleanUp()
           
private  void doCandidatesAction()
           
private  boolean getLookupFromIORFile(java.lang.String s)
           
private  boolean getLookupFromIORFiles(java.lang.String[] args)
           
private  java.lang.String getName(org.omg.CosTrading.Offer o)
           
private  boolean getORB(java.lang.String[] args)
           
private  void initialize()
           
static void main(java.lang.String[] args)
          The invocation method.
private  void printAllProperties(org.omg.CosTrading.Offer o)
           
private  void refreshOfferList()
           
 void selectedByList(java.lang.Object target)
          Called from the CallbackObjectFinderList object (which displays the list of PIDS found from the Trador(s).
(package private)  void setAll(boolean enable)
           
private  void testGetCandidates(org.omg.PersonIdService.IdentificationComponent id)
           
private static void usage()
           
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
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, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, 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, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, 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, 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, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

traitsArray

private static java.lang.String[] traitsArray

orb_

private org.omg.CORBA.ORB orb_

TraderAndInterfaceVector_

private java.util.Vector TraderAndInterfaceVector_

propertySearchDisplay

private PIDSearchFrame propertySearchDisplay

table

private CallbackObjectFinderList table

quitButton

private java.awt.Button quitButton

QUIT_BUTTON

private static final java.lang.String QUIT_BUTTON
See Also:
Constant Field Values

refreshButton

private java.awt.Button refreshButton

REFRESH_BUTTON

private static final java.lang.String REFRESH_BUTTON
See Also:
Constant Field Values

traitsButton

private java.awt.Button traitsButton

TRAITS_BUTTON

private static final java.lang.String TRAITS_BUTTON
See Also:
Constant Field Values

localConstraintText

private java.awt.TextField localConstraintText

domainConstraintText

private java.awt.TextField domainConstraintText

generalConstraintText

private java.awt.TextField generalConstraintText

localExactCheckbox

private java.awt.Checkbox localExactCheckbox

domainExactCheckbox

private java.awt.Checkbox domainExactCheckbox

ignoreRequest_

private boolean ignoreRequest_

traitsFlagArray

private boolean[] traitsFlagArray

frame

private TestGUITraitsFrame frame

oldCursor_

private java.awt.Cursor oldCursor_

clean

private boolean clean
Constructor Detail

TestGUI

public TestGUI(java.lang.String[] args)
        throws java.lang.Exception
The initiaization method. Obtains of ORB, sets up a list of traders does an initial query on the traders for all the PIDS and display that initial list of PIDS. The user can then supply constraints on the search (and refresh the list of available PIDS) or select a PID offer for display.

Method Detail

main

public static void main(java.lang.String[] args)
The invocation method.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

selectedByList

public void selectedByList(java.lang.Object target)
Called from the CallbackObjectFinderList object (which displays the list of PIDS found from the Trador(s). The object returned is the object that corresponds to the selected label and is a Trader Offer object. This is then passed to the related PIDSearchFrame object for display and possible search.

Specified by:
selectedByList in interface CallbackObjectFinderListCallback

initialize

private void initialize()

printAllProperties

private void printAllProperties(org.omg.CosTrading.Offer o)

doCandidatesAction

private void doCandidatesAction()

addTraitsConstraints

private void addTraitsConstraints()

refreshOfferList

private void refreshOfferList()

getName

private java.lang.String getName(org.omg.CosTrading.Offer o)

getORB

private boolean getORB(java.lang.String[] args)

getLookupFromIORFiles

private boolean getLookupFromIORFiles(java.lang.String[] args)

getLookupFromIORFile

private boolean getLookupFromIORFile(java.lang.String s)

testGetCandidates

private void testGetCandidates(org.omg.PersonIdService.IdentificationComponent id)

setAll

void setAll(boolean enable)

cleanUp

void cleanUp()

usage

private static void usage()