wt.clients.prodmgmt
Class InstanceExplorer

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bywt.clients.prodmgmt.PartExplorer
              extended bywt.clients.prodmgmt.ConfigurationExplorer
                  extended bywt.clients.prodmgmt.InstanceExplorer
All Implemented Interfaces:
EventListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, WTExplorerListener

public class InstanceExplorer
extends ConfigurationExplorer

InstanceExplorer is a Explorer type Browser for displaying product instances. It uses a contained WTExplorer for most of its functionality.

Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.clients.prodmgmt.PartExplorer
PartExplorer.ExplorerRefreshListener, PartExplorer.RefreshThread, PartExplorer.WorkThread
 
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 static String COLUMN_ALIGNMENTS
           
private static String COLUMN_METHODS
           
private static String COLUMN_SIZES
           
(package private)  InstanceItem instance_item
           
private static String TOOLBAR_ICONS
           
 
Fields inherited from class wt.clients.prodmgmt.ConfigurationExplorer
configuration_item
 
Fields inherited from class wt.clients.prodmgmt.PartExplorer
ABOUT, ADD_BASELINE, ADDPART, ADDPARTAFTERCONFIGSPEC, ADDPARTMASTER, ALLOCATE, ANNOTATE_ASSEMBLY, ASSIGNPARTVERSION, ASSOCIATECONFIGURATION, CEXPLR, CHECKIN, CHECKOUT, CLEAR, CLEAR_ALL, configurationSpec, contextType, createPieWindowList, createPieWindowLock, cursorLock, DEALLOCATE, DEBUG, DEFINE_ALTERNATES, DEFINE_SUBSTITUTES, DELETE, DELETE_ANNOTATION_SET, DELETEPART, DISPLAY_BOM_COMPARE_REPORT, DISPLAY_WHERE_USED_REPORT, ENTERPRISESEARCH, HELP, HELP_RESOURCE, HIERARCHY_BOM, itemListener, LIFECYCLE_HISTORY, LOCALSEARCH, maxScreenX, maxScreenY, myExplorer, NEW, NEWCONFIGURATION, NEWPRODUCT, NEWPRODUCTINSTANCE, NEWSERIALNUMBEREDPART, NEWVIEWVERSION, occurrenceMode, OCCURRENCES_MODE, ONEOFFVERSION, OPEN, OPEN_ANNOTATION_SET, PARTS_LIST_BOM, PEXPLR, pieWindowList, PIEXPLR, POPULATE_BASELINE, POPULATEFROMPARTSTRUCTURE, PRODUCT_VIEW, REASSIGN_LIFECYCLE, REASSIGN_TEAMTEMPLATE, REFRESH, refreshListener, REFRESHPART, REVISE, SEARCH, SET_PART_ITEM, SET_STATE, SET_VIEW_PREFERENCE, SHOW_ORGID, SHOW_ROLE_PARTICIPANTS, SUBMIT, SYSCFIG, threadGroup, UNDOCHECKOUT, UPDATE, UPDATE_ROLE_PARTICIPANTS, usingDefaultConfigSpec, VIEW, VIEWESITARGETS, waitingOnCursor, WEXPLR, windowListLock
 
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
InstanceExplorer()
           
 
Method Summary
protected  void addInstance(WTProductInstance2 instance)
           
protected  void addPart(WTPart part, boolean use_config_spec)
           
protected  void addRefreshListener()
          Add a refresh listener.
protected  void allocate()
          Displays the allocate dialog for the currently selected object.
protected  void allocateInstance(Explorable item, Object selected_obj)
          Displays the allocate dialog for the currently selected product or product instance master
protected  void allocatePart(Explorable item, WTNode node, Object obj)
          Displays the allocate dialog for the currently selected part/part master.
protected  void associateConfiguration()
          Displays the associate configuration dialog for the currently selected object.
protected  void clear()
           
protected  void clearAll()
           
protected  void deleteSelectedObject()
           
 ConfigSpec getConfigurationSpec()
          Returns the configuration specification being used by this window to control which versions of parts are selected when the part structure is expanded.
protected  Class getInstanceClass()
          Get the class of the WTProductInstance2 class.
protected  String getInstanceClassName()
          Get the class name of the WTProductInstance2 class.
protected  void handleDeleteEvent(Object target)
          Handle a delete event received as a RefreshEvent.
 boolean isEmpty()
          Method which determines whether or not any business objects are currently displayed in the PIE window.
protected  void localize()
          Initialize the explorer: Retrieve the headings to display in the list, the column alignments, the column sizes and the toolbar buttons from a resource bundle.
 void processReviseCommand()
          Process the Revise command.
protected  void productViewSelectedObject()
          Bring up ProductView
protected  void replaceInstance(InstanceItem instance)
           
protected  void replaceOccurrence(InstanceItem instance, WTPart version, AllocatedUsageItem new_item)
           
protected  void replaceOccurrence(InstanceItem instance, WTPartMaster master, AllocatedUsageItem new_version_item)
           
protected  void replaceOccurrence(InstanceItem instance, WTProductInstanceMaster prod_instance, InstanceMasterItem new_version_item)
           
protected  void replaceOccurrence(InstanceItem instance, WTProductMaster master, InstanceMasterItem new_version_item)
           
protected  void reviseSelectedObject()
           
protected  void search()
           
 void setOccurrenceMode(boolean occurrence_mode)
          Set the occurrence mode of the explorer.
 
Methods inherited from class wt.clients.prodmgmt.ConfigurationExplorer
addConfiguration, assignPartVersion, getConfigurationClass, getConfigurationClassName, getProductInstanceClass, getProductInstanceClassName, newProductInstance, populateFromStructure, processNewProductInstanceCommand, refreshPart, replaceConfiguration, replaceMasterWithVersion, replaceOccurrence, replaceVersionWithVersion, topLevelNodeSelected
 
Methods inherited from class wt.clients.prodmgmt.PartExplorer
about, addExplorerPart, addExplorerPart, addExplorerPartMaster, addItemListener, addPartMaster, annotateAssembly, assignViewSelectedObject, changeIdentity, checkInSelectedObject, checkOutObject, checkOutSelectedObject, configurationExploreSelectedObject, confirmAction, defineAlternates, defineSubstitutes, deleteAnnotationSet, deleteExplorerPart, deletePart, deletePart, displayBomCompareReport, displayCreatedConfiguration, displayCreatedInstance, displayCreatedObject, displayWhereUsedReport, editSelectedObject, enableToolbarButton, explorerEvent, exploreSelectedObject, findEnterpriseCommand, getApplet, getCheckOutObject, getConfigSpecItem, getContext, getContextType, getDisplayIdentity, getHelpContext, getHelpSystem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getMessagesRB, getParentFrame, getPartClass, getPartClassName, getPartMasterClass, getPartMasterClassName, getProductClass, getProductClassName, getProgressLocation, getPropertiesRB, getSelectedObject, getSelectedObjects, getSerialNumberedPartClass, getSerialNumberedPartClassName, getThreadGroup, getValue, getValueSet, getValueSet, handleCreateEvent, handleDeselectEvent, handleDoubleClickEvent, handleSelectEvent, help, initHelpSystem, initialize, initializeConfigurationSpec, initializeConfigurationSpec, initializeSearchURL, initResources, isDeleteAllowed, isOccurrenceMode, isUsingDefaultConfigSpec, isUsingView, main, maybeCloseMe, newConfiguration, newObject, newProductObject, newSerialNumberedPartObject, occurrencesMode, oneOffVersionSelectedObject, open, openAnnotationSet, openConfiguration, openInstance, processAboutCommand, processAddBaseline, processAllocateCommand, processAnnotateAssemblyCommand, processAssignPartVersionCommand, processAssignViewCommand, processAssociateConfigurationCommand, processBom, processBomCompareReportCommand, processCheckinCommand, processCheckoutCommand, processChkoutUndoCommand, processClearAllCommand, processClearCommand, processCommand, processDefineAlternatesCommand, processDefineSubstitutesCommand, processDeleteAnnotationSetCommand, processDeleteCommand, processEditCommand, processFindCommandChooser, processFindEnterpriseCommand, processHelpCommand, processItemEvent, processLaunchConfigurationExplorerCommand, processLaunchExplorerCommand, processLaunchProductExplorerCommand, processLaunchProductInstanceExplorerCommand, processNewCommand, processNewConfigSpec, processNewConfigurationCommand, processNewProductCommand, processNewSerialNumberedPartCommand, processOccurrencesModeCommand, processOneOffVersionCommand, processOpenAnnotationSetCommand, processOpenCommand, processPopulateFromStructureCommand, processProductViewCommand, processPublishCommand, processReassignLifecyleCommand, processReassignTeamTemplateCommand, processRefreshCommand, processRemoveBaseline, processRenameCommand, processRTPCommand, processSaveAsCommand, processSetConfigSpecCommand, processSetLifeCycleStateCommand, processSetViewPreferenceCommand, processShowIterationHistoryCommand, processShowLifecyleHistoryCommand, processShowRoleParticipantsCommand, processShowVersionHistoryCommand, processSubmitCommand, processUpdateRoleParticipantsCommand, processViewCommand, processViewESITargetsCommand, processWhereUsedReportCommand, productInstanceExploreSelectedObject, reassignLifeCycle, reassignTeamTemplate, refreshExplorerPart, refreshPart, refreshSelectedObject, removeItemListener, removeRefreshListener, retrieveWTPartConfigSpec, setApplet, setConfigSpecCommand, setConfigSpecCommand, setConfigSpecItem, setConfigurationSpec, setContext, setHelpContext, setLifeCycleState, setViewPreference, showExceptionDialog, showIterationHistory, showLifeCycleHistory, showMasterPropertyPage, showMessageDialog, showMessageDialog, showRoleParticipants, showVersionHistory, structureExploreSelectedObject, submitObject, TRACE, undoCheckoutSelectedObject, updateDetail, updateRoleParticipants, viewSelectedObject, viewSelectedObjectESITargets
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, 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, getAccessibleContext, 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, 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

COLUMN_ALIGNMENTS

private static String COLUMN_ALIGNMENTS

COLUMN_SIZES

private static String COLUMN_SIZES

COLUMN_METHODS

private static String COLUMN_METHODS

TOOLBAR_ICONS

private static String TOOLBAR_ICONS

instance_item

InstanceItem instance_item
Constructor Detail

InstanceExplorer

public InstanceExplorer()
Method Detail

localize

protected void localize()
Description copied from class: PartExplorer
Initialize the explorer: Retrieve the headings to display in the list, the column alignments, the column sizes and the toolbar buttons from a resource bundle.

Overrides:
localize in class ConfigurationExplorer

addInstance

protected void addInstance(WTProductInstance2 instance)

setOccurrenceMode

public void setOccurrenceMode(boolean occurrence_mode)
Set the occurrence mode of the explorer.

Overrides:
setOccurrenceMode in class ConfigurationExplorer

search

protected void search()
Overrides:
search in class ConfigurationExplorer

getInstanceClassName

protected String getInstanceClassName()
Get the class name of the WTProductInstance2 class.

Returns:
the class name of the WTProductInstance2 class

getInstanceClass

protected Class getInstanceClass()
Get the class of the WTProductInstance2 class.

Returns:
the class name of the WTProductInstance2

addPart

protected void addPart(WTPart part,
                       boolean use_config_spec)
Overrides:
addPart in class ConfigurationExplorer

getConfigurationSpec

public ConfigSpec getConfigurationSpec()
Returns the configuration specification being used by this window to control which versions of parts are selected when the part structure is expanded.

Overrides:
getConfigurationSpec in class ConfigurationExplorer
Returns:
the ConfigSpec being used by this window

processReviseCommand

public void processReviseCommand()
Process the Revise command.

Overrides:
processReviseCommand in class PartExplorer

reviseSelectedObject

protected void reviseSelectedObject()
Overrides:
reviseSelectedObject in class PartExplorer

deleteSelectedObject

protected void deleteSelectedObject()
Overrides:
deleteSelectedObject in class ConfigurationExplorer

associateConfiguration

protected void associateConfiguration()
Displays the associate configuration dialog for the currently selected object.

Overrides:
associateConfiguration in class PartExplorer

addRefreshListener

protected void addRefreshListener()
Description copied from class: PartExplorer
Add a refresh listener. The new RefreshListener will listen for client-side updates, deleted, and creations of WTPart Objects. Newly created parts are added to the explorer. Updated parts are updated in the explorer if they are present in the tree view. Deleted parts are deleted if they are present in the tree view.

Overrides:
addRefreshListener in class ConfigurationExplorer

handleDeleteEvent

protected void handleDeleteEvent(Object target)
Handle a delete event received as a RefreshEvent.

Overrides:
handleDeleteEvent in class ConfigurationExplorer

allocate

protected void allocate()
Description copied from class: PartExplorer
Displays the allocate dialog for the currently selected object.

Overrides:
allocate in class PartExplorer

allocatePart

protected void allocatePart(Explorable item,
                            WTNode node,
                            Object obj)
Displays the allocate dialog for the currently selected part/part master.


allocateInstance

protected void allocateInstance(Explorable item,
                                Object selected_obj)
Displays the allocate dialog for the currently selected product or product instance master


replaceOccurrence

protected void replaceOccurrence(InstanceItem instance,
                                 WTPart version,
                                 AllocatedUsageItem new_item)

replaceOccurrence

protected void replaceOccurrence(InstanceItem instance,
                                 WTPartMaster master,
                                 AllocatedUsageItem new_version_item)

replaceOccurrence

protected void replaceOccurrence(InstanceItem instance,
                                 WTProductInstanceMaster prod_instance,
                                 InstanceMasterItem new_version_item)

replaceOccurrence

protected void replaceOccurrence(InstanceItem instance,
                                 WTProductMaster master,
                                 InstanceMasterItem new_version_item)

replaceInstance

protected void replaceInstance(InstanceItem instance)

productViewSelectedObject

protected void productViewSelectedObject()
Bring up ProductView

Overrides:
productViewSelectedObject in class ConfigurationExplorer

clear

protected void clear()
Overrides:
clear in class ConfigurationExplorer

clearAll

protected void clearAll()
Overrides:
clearAll in class ConfigurationExplorer

isEmpty

public boolean isEmpty()
Method which determines whether or not any business objects are currently displayed in the PIE window. This method returns true if no business objects (e.g. parts, products, configurations or product instances) are showing in the PIE window.

Overrides:
isEmpty in class PartExplorer
Returns:
true if no objects are showing in the tree view of the PIE window.