wt.clients.beans
Class WTList

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bysymantec.itools.awt.MultiList
                  extended bywt.clients.util.WTMultiList
                      extended bywt.clients.beans.WTList
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, ItemListener, ItemSelectable, MenuContainer, Serializable

public class WTList
extends WTMultiList
implements ItemListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class symantec.itools.awt.MultiList
 
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
private  ItemListener itemListener
           
private  WTObject[] myLastObj
           
private  WTObject[] myNewObj
           
private  WTSchema mySchema
           
private static String versionID
           
 
Fields inherited from class wt.clients.util.WTMultiList
 
Fields inherited from class symantec.itools.awt.MultiList
actionCommand, actionListener, allowResizingOfColumns, allowSorting, BORDER, cachedHeight, cachedLastSplitter, cachedWidth, cellAscent, cellDescent, cellFont, cellHeight, cells, CENTER, clickedInHeadings, CLICKTHRESHOLD, clickTime, colorBg, colorFg, colorHBg, colorHFg, columnAlignments, columnClicked, columnCompareCellsRoutines, columnSizes, defaultColumnAlignment, defaultColumnSorter, dragColumn, errors, focusIndicatedVisually, focusListener, forceColumnSizeRecalc, forceFullRedraw, forceRedraw, hasFocus, headingBg, headingFg, headingFont, headingHeight, headings, headingVisible, highlightedRows, horizontalScrollbar, hScrollbarLineIncrement, isDragging, isSun1_1, isSuppressRedraw, lastColumnClicked, LEFT, memoryClick, minColumnWidth, multiSelect, offscreenImage, offscreenImageGraphics, redrawWasSupressed, RESIZE_FUDGE_FACTOR, RIGHT, sbHPosition, sbHShow, sbVPosition, sbVShow, scrollbarHeight, selectedRow, splitters, topRow, verticalScrollbar, verticalScrollbarWidth, xDragLast
 
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
WTList()
           
 
Method Summary
 WTObject addDetail(WTObject an_object)
           
 void addItemListener(ItemListener l)
          Adds the specified item listener to receive item events from this list.
 void clearDetails()
           
 WTObject getDetail(int aIndex)
           
 int getDetailRow(WTObject an_object)
           
 WTObject getSelectedDetail()
           
 WTObject[] getSelectedDetails()
           
 boolean isDuplicateDetail(WTObject an_object)
           
 void itemStateChanged(ItemEvent e)
          This method is called when
static void main(String[] args)
           
 void processEvent(ItemEvent aEvent)
          Propagates the item event to current listeners.
 void removeItemListener(ItemListener l)
          Removes the specified item listener from this list.
 void setSchema(WTSchema aSchema)
          Set the schema to use.
 int totalDetails()
           
 void updateDetail(WTObject an_object)
           
private  void updateRow(int row, WTObject an_object)
          Replace a particular row with values from another modeled Windchill business object.
 
Methods inherited from class wt.clients.util.WTMultiList
addObject, addObjects, addPropertyChangeListener, addVetoableChangeListener, addWTCellImpl, drawRows, escapeColumnSeparator, getListItems, getNumberOfRows, getObject, getObjectRow, getRelativeColumnWidths, getSelectedObject, getSelectedObjects, getWTCell, redraw, redrawColumns, removePropertyChangeListener, removeVetoableChangeListener, setListItems, setRelativeColumnWidths, sort, totalObjects, updateObject
 
Methods inherited from class symantec.itools.awt.MultiList
addActionListener, addCell, addCell, addCellImpl, addImageCell, addNotify, addTextCell, adjustHeadings, calcHeadings, calculateHeadingHeight, calcVerticalScrollbarPosition, changeSelection, clear, createColumns, deselectAll, deselectRow, draw3DBox, drawColumnHeading, drawHeading, getCellBg, getCellFg, getCellFont, getCellImage, getCellText, getColumnAlignment, getColumnAlignments, getColumnSize, getColumnSizes, getColumnSizesFromSplitters, getColumnSorter, getDefaultColumnAlignment, getDefaultColumnSorter, getHeading, getHeadingBg, getHeadingFg, getHeadingFont, getHeadings, getMinColumnWidth, getNumberOfCols, getNumVisibleRows, getSelectedRow, getSelectedRows, intArrayToStringArray, internalCreateColumns, isAllowResizingOfColumns, isAllowSorting, isFocusIndicatedVisually, isFocusTraversable, isHeadingVisible, isMultipleMode, minimumSize, paint, paintSelection, preferredSize, rangeCheckAlignment, rangeCheckColumn, removeActionListener, removeNotify, removeRow, removeSelectionBorder, repaintFocus, resizeHeadings, selectAll, selectRow, setAllowResizingOfColumns, setAllowSorting, setCellBg, setCellColors, setCellFg, setCellFont, setColumnAlignment, setColumnAlignments, setColumns, setColumnSizes, setColumnSorter, setDefaultColumnAlignment, setDefaultColumnSorter, setFocusIndicatedVisually, setHeading, setHeading, setHeadingBg, setHeadingColors, setHeadingFg, setHeadingFont, setHeadings, setHeadingVisible, setLayout, setMinColumnWidth, setMultipleMode, setNumberOfCols, setSelectedRow, setSupressRedraw, sourceActionEvent, sourceItemEvent, tokenizeStringArrayIfNeeded, triggerRedraw, update
 
Methods inherited from class java.awt.Panel
getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, 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, 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, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, 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

versionID

private static final String versionID
See Also:
Constant Field Values

mySchema

private WTSchema mySchema

myNewObj

private WTObject[] myNewObj

myLastObj

private WTObject[] myLastObj

itemListener

private ItemListener itemListener
Constructor Detail

WTList

public WTList()
Method Detail

addItemListener

public void addItemListener(ItemListener l)
Description copied from class: WTMultiList
Adds the specified item listener to receive item events from this list.

Supported API: true

Specified by:
addItemListener in interface ItemSelectable
Overrides:
addItemListener in class WTMultiList
Parameters:
l - the item listener.

removeItemListener

public void removeItemListener(ItemListener l)
Description copied from class: WTMultiList
Removes the specified item listener from this list.

Supported API: true

Specified by:
removeItemListener in interface ItemSelectable
Overrides:
removeItemListener in class WTMultiList
Parameters:
l - the item listener.

processEvent

public void processEvent(ItemEvent aEvent)
Description copied from class: WTMultiList
Propagates the item event to current listeners.

Supported API: false


setSchema

public void setSchema(WTSchema aSchema)
Description copied from class: WTMultiList
Set the schema to use. The schema describes the Class and attributes that define the columns in the WTMultiList.

Supported API: false

Overrides:
setSchema in class WTMultiList
See Also:
#wt.clients.beans.query.WTSchema

totalDetails

public int totalDetails()

getDetailRow

public int getDetailRow(WTObject an_object)

getDetail

public WTObject getDetail(int aIndex)

getSelectedDetail

public WTObject getSelectedDetail()

getSelectedDetails

public WTObject[] getSelectedDetails()

clearDetails

public void clearDetails()

isDuplicateDetail

public boolean isDuplicateDetail(WTObject an_object)

addDetail

public WTObject addDetail(WTObject an_object)

updateRow

private void updateRow(int row,
                       WTObject an_object)
Description copied from class: WTMultiList
Replace a particular row with values from another modeled Windchill business object.

Supported API: false


updateDetail

public void updateDetail(WTObject an_object)

itemStateChanged

public void itemStateChanged(ItemEvent e)
This method is called when

Specified by:
itemStateChanged in interface ItemListener
Overrides:
itemStateChanged in class WTMultiList

main

public static void main(String[] args)