wt.clients.beans
Class ClassExplorer

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bywt.clients.beans.ClassExplorer
All Implemented Interfaces:
EventListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, WTExplorerListener

public class ClassExplorer
extends Container
implements WTExplorerListener, ItemSelectable

ClassExplorer is a Explorer type Browser for displaying the Windchill class hierarchy. It uses a contained WTExplorer for most of its functionality. The ClassExplorer is used as part of a PropertyEditor for the wt.clients.beans.AttributesForm bean.

Supported API: true

Extendable: false

See Also:
WTExplorer, AttributesForm, Serialized Form

Nested Class Summary
(package private)  class ClassExplorer.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
(package private) static int ABOUT
           
(package private) static int ADDPART
           
(package private) static int ADDPARTMASTER
           
private  Applet applet
           
(package private) static int CHECKIN
           
(package private) static int CHECKOUT
           
(package private) static int CLEAR
           
(package private) static int DELETE
           
(package private) static int DELETEPART
           
(package private) static int ENTERPRISESEARCH
           
(package private)  boolean expert
           
protected static String EXPERT
           
protected static String EXPLORE
           
(package private) static int HELP
           
protected static String HELP_RESOURCE
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
(package private)  boolean hidden
           
(package private)  ItemListener itemListener
           
(package private) static int LOCALSEARCH
           
protected  WTExplorer myExplorer
           
(package private) static int NEW
           
(package private) static int NEWVIEWVERSION
           
(package private) static int PEXPLR
           
(package private) static int REFRESH
           
(package private) static int REFRESHPART
           
private static ResourceBundle resource
           
private static String RESOURCE
           
(package private) static int REVISE
           
(package private) static int SEARCH
           
private  URL searchURL
           
protected  ClassInfo selectedClassInfo
           
(package private) static int SET_PART_ITEM
           
private  boolean showExpert
           
private  boolean showHidden
           
(package private) static int SYSCFIG
           
protected  ThreadGroup threadGroup
           
(package private) static int UNDOCHECKOUT
           
(package private) static int UPDATE
           
(package private) static int VIEW
           
(package private) static int WEXPLR
           
 
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
ClassExplorer()
          Construct a default ClassExplorer object.
 
Method Summary
 WTNode addClass(String name)
           
 void addItemListener(ItemListener l)
           
protected  void addRefreshListener()
          Add a refresh listener.
 void explorerEvent(WTExplorerEvent e)
          Handle events from the WTExplorer.
protected  void exploreSelectedObject()
           
 Applet getApplet()
          Get the parent applet for this component.
 WTContext getContext()
          Get the current WTContext
 HelpContext getHelpContext()
          Get the help context for this component.
 HelpSystem getHelpSystem()
           
protected  ResourceBundle getLabelsRB()
           
protected  String getLocalizedMessage(String key, Object[] params)
          Get the Localized message from the resource bundle.
protected  String getLocalizedValue(String key)
           
protected  ResourceBundle getMessagesRB()
           
protected  Frame getParentFrame()
          Get the parent frame of this Part Explorer component.
protected  ResourceBundle getPropertiesRB()
           
 Object[] getSelectedListObjects()
           
protected  Object getSelectedObject()
           
 Object[] getSelectedObjects()
           
 Object getSelectedTreeObject()
           
 ThreadGroup getThreadGroup()
           
protected  String getValue(ResourceBundle rb, String key)
           
protected  String[] getValueSet(ResourceBundle rb, String key)
           
protected  void handleDeselectEvent(WTExplorerEvent e)
           
protected  void handleDoubleClickEvent(WTExplorerEvent e)
          Handle double-click events from the WTExplorer.
protected  void handleExposeEvent(WTExplorerEvent e)
           
protected  void handleSelectEvent(WTExplorerEvent e)
           
protected  void initHelpSystem()
           
protected  void initialize()
          Initialize the product explorer.
protected  void initResources()
          Initialize string resources for this component.
 boolean isShowExpert()
           
 boolean isShowHidden()
           
static void main(String[] args)
           
protected  void processCommand(WTExplorerEvent e)
           
 void processExpertCommand()
           
 void processHiddenCommand()
           
protected  void processItemEvent(ItemEvent e)
           
 void processLaunchExplorerCommand()
          Process the launch Windchill Explorer command.
protected  void refreshSelectedObject()
           
 void removeItemListener(ItemListener l)
           
 void selectListObject(Object obj, boolean flag)
           
 void setApplet(Applet applet)
          Set the parent applet for this component.
 void setHelpContext(HelpContext helpcontext)
          Set the help context for this component.
 void setSelectedListObject(Object obj, boolean flag)
           
 void setSelectedSchema(Schema schema)
           
 void setShowExpert(boolean flag)
           
 void setShowHidden(boolean flag)
           
protected  void showMessageDialog(String message, boolean modal)
          Display a Message Dialog
 
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

EXPERT

protected static final String EXPERT
See Also:
Constant Field Values

EXPLORE

protected static final String EXPLORE
See Also:
Constant Field Values

selectedClassInfo

protected ClassInfo selectedClassInfo

myExplorer

protected WTExplorer myExplorer

threadGroup

protected ThreadGroup threadGroup

helpContext

private HelpContext helpContext

helpSystem

private HelpSystem helpSystem

applet

private Applet applet

searchURL

private URL searchURL

resource

private static ResourceBundle resource

RESOURCE

private static String RESOURCE

HELP_RESOURCE

protected static String HELP_RESOURCE

itemListener

transient ItemListener itemListener

showHidden

private boolean showHidden

showExpert

private boolean showExpert

hidden

boolean hidden

expert

boolean expert

SET_PART_ITEM

static final int SET_PART_ITEM
See Also:
Constant Field Values

SEARCH

static final int SEARCH
See Also:
Constant Field Values

NEW

static final int NEW
See Also:
Constant Field Values

UPDATE

static final int UPDATE
See Also:
Constant Field Values

VIEW

static final int VIEW
See Also:
Constant Field Values

DELETE

static final int DELETE
See Also:
Constant Field Values

CHECKOUT

static final int CHECKOUT
See Also:
Constant Field Values

CHECKIN

static final int CHECKIN
See Also:
Constant Field Values

UNDOCHECKOUT

static final int UNDOCHECKOUT
See Also:
Constant Field Values

REVISE

static final int REVISE
See Also:
Constant Field Values

SYSCFIG

static final int SYSCFIG
See Also:
Constant Field Values

REFRESH

static final int REFRESH
See Also:
Constant Field Values

CLEAR

static final int CLEAR
See Also:
Constant Field Values

LOCALSEARCH

static final int LOCALSEARCH
See Also:
Constant Field Values

ENTERPRISESEARCH

static final int ENTERPRISESEARCH
See Also:
Constant Field Values

WEXPLR

static final int WEXPLR
See Also:
Constant Field Values

NEWVIEWVERSION

static final int NEWVIEWVERSION
See Also:
Constant Field Values

ABOUT

static final int ABOUT
See Also:
Constant Field Values

HELP

static final int HELP
See Also:
Constant Field Values

PEXPLR

static final int PEXPLR
See Also:
Constant Field Values

ADDPART

static final int ADDPART
See Also:
Constant Field Values

ADDPARTMASTER

static final int ADDPARTMASTER
See Also:
Constant Field Values

DELETEPART

static final int DELETEPART
See Also:
Constant Field Values

REFRESHPART

static final int REFRESHPART
See Also:
Constant Field Values
Constructor Detail

ClassExplorer

public ClassExplorer()
Construct a default ClassExplorer object. This initializes the explorer toolbar, the column headings in the listview, the methods to invoke for each column, column sizes in the listview, and the column alignments.

Method Detail

initialize

protected void initialize()
Initialize the product explorer. Retrieve the current configuration specification for the user. Display the view qualification from the config spec in the explorer toolbar space.


getSelectedTreeObject

public Object getSelectedTreeObject()

setSelectedSchema

public void setSelectedSchema(Schema schema)

setSelectedListObject

public void setSelectedListObject(Object obj,
                                  boolean flag)

selectListObject

public void selectListObject(Object obj,
                             boolean flag)

getSelectedListObjects

public Object[] getSelectedListObjects()

getSelectedObjects

public Object[] getSelectedObjects()
Specified by:
getSelectedObjects in interface ItemSelectable

addItemListener

public void addItemListener(ItemListener l)
Specified by:
addItemListener in interface ItemSelectable

removeItemListener

public void removeItemListener(ItemListener l)
Specified by:
removeItemListener in interface ItemSelectable

processItemEvent

protected void processItemEvent(ItemEvent e)

explorerEvent

public void explorerEvent(WTExplorerEvent e)
Handle events from the WTExplorer.

Specified by:
explorerEvent in interface WTExplorerListener
Parameters:
e - the WTExplorerEvent

processCommand

protected void processCommand(WTExplorerEvent e)

handleExposeEvent

protected void handleExposeEvent(WTExplorerEvent e)

handleSelectEvent

protected void handleSelectEvent(WTExplorerEvent e)

handleDeselectEvent

protected void handleDeselectEvent(WTExplorerEvent e)

handleDoubleClickEvent

protected void handleDoubleClickEvent(WTExplorerEvent e)
Handle double-click events from the WTExplorer. The "view" task for the selected object will be launched.

Parameters:
e - the WTExplorerEvent

processHiddenCommand

public void processHiddenCommand()

processExpertCommand

public void processExpertCommand()

refreshSelectedObject

protected void refreshSelectedObject()

processLaunchExplorerCommand

public void processLaunchExplorerCommand()
Process the launch Windchill Explorer command. If a part is currently selected, that part will be displayed in the new Windchill Explorer.


exploreSelectedObject

protected void exploreSelectedObject()

getSelectedObject

protected Object getSelectedObject()

getParentFrame

protected Frame getParentFrame()
Get the parent frame of this Part Explorer component.

Returns:
the parent frame of this component.

setHelpContext

public void setHelpContext(HelpContext helpcontext)
Set the help context for this component.


getHelpContext

public HelpContext getHelpContext()
Get the help context for this component.

Returns:
the HelpContext for this component.

getApplet

public Applet getApplet()
Get the parent applet for this component.

Returns:
the Applet for this component.

setApplet

public void setApplet(Applet applet)
Set the parent applet for this component.

Parameters:
applet - the Applet for this component.

setShowHidden

public void setShowHidden(boolean flag)

isShowHidden

public boolean isShowHidden()

setShowExpert

public void setShowExpert(boolean flag)

isShowExpert

public boolean isShowExpert()

addRefreshListener

protected void addRefreshListener()
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.


getValue

protected String getValue(ResourceBundle rb,
                          String key)

getValueSet

protected String[] getValueSet(ResourceBundle rb,
                               String key)

getPropertiesRB

protected ResourceBundle getPropertiesRB()

getMessagesRB

protected ResourceBundle getMessagesRB()

getLabelsRB

protected ResourceBundle getLabelsRB()

initResources

protected void initResources()
Initialize string resources for this component.


getContext

public WTContext getContext()
Get the current WTContext

Returns:
the WTContext

getThreadGroup

public ThreadGroup getThreadGroup()

showMessageDialog

protected void showMessageDialog(String message,
                                 boolean modal)
Display a Message Dialog

Parameters:
message - the message to display
modal - the modality of the dialog used to display the message

initHelpSystem

protected void initHelpSystem()

getHelpSystem

public HelpSystem getHelpSystem()

getLocalizedMessage

protected String getLocalizedMessage(String key,
                                     Object[] params)
Get the Localized message from the resource bundle.

Parameters:
key - the key into the resource bundle
params - array of parameters used to format the message
Returns:
a formatted localized message from the resource bundle

getLocalizedValue

protected String getLocalizedValue(String key)

addClass

public WTNode addClass(String name)

main

public static void main(String[] args)