|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.List
|
+--gov.lanl.PidTrader.ObjectFinderList
A Class that supports the selection of one or more objects through a scrolling list. Given a title (string) and an object, these are inserted in the list so that the title is assocaited with the object, when the title is selected, the object is marked for return. The method GetObjects, then, returns the list of marked objects.
List,
Serialized Form

| Field Summary | |
protected java.util.Hashtable |
indexTable_
|
| 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 | |
ObjectFinderList()
The empty constructor. |
|
ObjectFinderList(int rows)
Creates a new scrolling list initialized with the specified number of visible lines and multiple selections disabled. |
|
ObjectFinderList(int rows,
boolean multipleMode)
Creates a new scrolling list initialized with the specified number of visible lines and multiple selections enabled or disabled, depending on the value of the boolean parameter. |
|
| Method Summary | |
void |
add(java.lang.String label,
java.lang.Object obj)
Add a label and associate it with an object. |
void |
addItem(java.lang.String label,
java.lang.Object obj)
Add a label and associate it with an object. |
void |
addObject(java.lang.String label,
int index,
java.lang.Object obj)
Add a label at a specific location and associate it with an object. |
void |
addObject(java.lang.String label,
java.lang.Object obj)
Add a label and associate it with an object. |
java.lang.Object |
getObject(int index)
Get the object associated with a label at a specific location |
java.lang.Object |
getObject(java.lang.String label)
Get the object associated with a given label |
java.lang.Object[] |
getObjects()
Get the list of objects associated with the ordered set of labels in the list. |
java.lang.Object[] |
getSelectedObjects()
Get the list of Objects associated with the list of items selected |
void |
remove(int position)
Remove the item from the list and the objects associated with it. |
void |
remove(java.lang.String item)
Remove the item from the list and the objects associated with it. |
void |
removeAll()
Remove all the items in the list and all the objects associated with them. |
void |
replaceObject(java.lang.String label,
int index,
java.lang.Object new_obj)
Replace a label at a specific location, remove the object associated with the previous lable and associate it with the new object. |
| Methods inherited from class java.awt.List |
add, add, addActionListener, addItem, addItem, addItemListener, addNotify, allowsMultipleSelections, clear, countItems, delItem, delItems, deselect, getAccessibleContext, getActionListeners, getItem, getItemCount, getItemListeners, getItems, getListeners, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, getRows, getSelectedIndex, getSelectedIndexes, getSelectedItem, getSelectedItems, getVisibleIndex, isIndexSelected, isMultipleMode, isSelected, makeVisible, minimumSize, minimumSize, paramString, preferredSize, preferredSize, processActionEvent, processEvent, processItemEvent, removeActionListener, removeItemListener, removeNotify, replaceItem, select, setMultipleMode, setMultipleSelections |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, 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, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable indexTable_
| Constructor Detail |
public ObjectFinderList()
public ObjectFinderList(int rows)
rows - the number of items to show.
public ObjectFinderList(int rows,
boolean multipleMode)
rows - the number of items to show.multipleMode - if true then multiple selections are allowed.| Method Detail |
public void add(java.lang.String label,
java.lang.Object obj)
label - the label that appears in the listobj - the object associated with the label
public void addItem(java.lang.String label,
java.lang.Object obj)
label - the label that appears in the listobj - the object associated with the label
public void addObject(java.lang.String label,
java.lang.Object obj)
label - the label that appears in the listobj - the object associated with the label
public void addObject(java.lang.String label,
int index,
java.lang.Object obj)
label - the label that appears in the listindex - the index of the position in the listobj - the object associated with the label
public void replaceObject(java.lang.String label,
int index,
java.lang.Object new_obj)
label - the label that appears in the listindex - the index of the position in the listnew_obj - the object associated with the labelpublic java.lang.Object getObject(int index)
index - the index of the position of the label in the list
public java.lang.Object getObject(java.lang.String label)
label - to be looked up
public java.lang.Object[] getObjects()
public void removeAll()
removeAll in class java.awt.Listpublic void remove(java.lang.String item)
remove in class java.awt.Listitem - the label of the item to removepublic void remove(int position)
remove in class java.awt.Listposition - the position, in the list, of the item to removepublic java.lang.Object[] getSelectedObjects()
getSelectedObjects in interface java.awt.ItemSelectablegetSelectedObjects in class java.awt.List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||