wt.clients.vc
Class VersionHistoryDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.vc.VersionHistoryDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

Deprecated. this dialog has been replaced by an HTML page for displaying version history. See wt.enterprise.VersionHistoryProcessor

public class VersionHistoryDialog
extends Dialog

This class defines a dialog which displays a table of the versions of a Versioned object. For the versions presented, the user has the option of selecting one to view. If there is more than one version, the user has the option to launch an "object compare page" that will show a select set of differences that exists between the objects selected.

To use this dialog in your own code, you must import the VersionHistoryTask class. Below is some example code which could be used to call the dialog, in this case, from a pull down menu item.

 import wt.clients.vc.VersionHistoryTask;
 

void versionHistoryMenuItem_Action(java.awt.event.ActionEvent event) { showVersionHistory(); }

protected void showVersionHistory() { try { setCursor( Cursor.getPredefinedCursor( Cursor.WAIT_CURSOR ) ); // You must supply the getVersionedObject() method. Versioned versionedObject = getVersionedObject(); // You must supply the getParentApplet() method for the calling // GUI component. // You must supply the getFrame() method for the calling // GUI component. VersionHistoryTask version_history_task = new VersionHistoryTask(getParentApplet(), getFrame(), versionedObject); version_history_task.versionHistory(); } finally { setCursor( Cursor.getDefaultCursor() ); } }



This code was generated using Visual Cafe. To modify the code, only use code syntax that matches what Visual Cafe can generate, or Visual Cafe may be unable to back parse your Java file into its visual environment.

Supported API: false

Extendable: false

See Also:
VersionHistoryTask, Serialized Form

Nested Class Summary
(package private)  class VersionHistoryDialog.SymAction
          Deprecated.  
(package private)  class VersionHistoryDialog.SymItem
          Deprecated.  
(package private)  class VersionHistoryDialog.SymWindow
          Deprecated.  
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
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)  Panel actionsPanel
          Deprecated.  
(package private)  Panel buttonPanel
          Deprecated.  
(package private)  Button closeButton
          Deprecated.  
private static int COLUMN_COUNT
          Deprecated.  
(package private)  Button compareButton
          Deprecated.  
private  ThreadGroup contextGroup
          Deprecated.  
private static int CREATEDATE_COLUMN
          Deprecated.  
private static int CREATEDBY_COLUMN
          Deprecated.  
private static int DUMMY_COLUMN
          Deprecated.  
(package private)  Button explorerButton
          Deprecated.  
(package private)  boolean fComponentsAdjusted
          Deprecated.  
(package private)  Button helpButton
          Deprecated.  
(package private)  HelpContext helpContext
          Deprecated.  
(package private)  HelpSystem helpSystem
          Deprecated.  
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
          Deprecated.  
private  boolean inDescendent
          Deprecated.  
private static int LASTMODIFIEDDATE_COLUMN
          Deprecated.  
private static int LOCATION_SHIFT
          Deprecated.  
private  Object lockStr
          Deprecated.  
(package private)  Applet parentApplet
          Deprecated.  
(package private)  Frame parentFrame
          Deprecated.  
private static ResourceBundle resources
          Deprecated.  
private static String RESOURCES
          Deprecated.  
private  Versioned reviseItem
          Deprecated.  
(package private)  Folder selectedFolder
          Deprecated.  
private static int STATE_COLUMN
          Deprecated.  
private static int TEAM_COLUMN
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
private static int VERSION_COLUMN
          Deprecated.  
private  Vector versionEntries
          Deprecated.  
(package private)  Label versionHistoryLabel
          Deprecated.  
(package private)  Panel versionHistoryPanel
          Deprecated.  
private static String versionID
          Deprecated.  
(package private)  WTMultiList versionMultiList
          Deprecated.  
private  SerialEnumeration versions
          Deprecated.  
(package private)  Button viewButton
          Deprecated.  
 
Fields inherited from class java.awt.Dialog
 
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
VersionHistoryDialog(Frame parent, boolean modal)
          Deprecated. This constructor instantiates and initializes the components.
VersionHistoryDialog(Frame parent, String title, boolean modal)
          Deprecated. This constructor instantiates and initializes the components and also sets the title of the Dialog

Supported API: false
 
Method Summary
 void addNotify()
          Deprecated. Supported API: false
(package private)  void closeButton_Action(ActionEvent event)
          Deprecated.  
(package private)  void compareButton_ActionPerformed(ActionEvent event)
          Deprecated.  
(package private)  void Dialog1_WindowClosing(WindowEvent event)
          Deprecated.  
private  void dispatchRefresh(int action, Object obj)
          Deprecated.  
private  void enableActions(boolean enable)
          Deprecated.  
protected  void exploreObject()
          Deprecated.  
(package private)  void explorerButton_Action(ActionEvent event)
          Deprecated.  
private  WTContext getContext()
          Deprecated.  
 HelpSystem getHelpSystem()
          Deprecated. Gets the current helpSystem.
 String getHttpgwURLString()
          Deprecated. Supported API: false
 Dimension getMinimumSize()
          Deprecated.  
 Applet getParentApplet()
          Deprecated. Supported API: false
(package private)  Frame getParentFrame()
          Deprecated.  
 Dimension getPreferredSize()
          Deprecated.  
 Versioned getReviseItem()
          Deprecated. Supported API: false
protected  CabinetBased getSelectedObject()
          Deprecated.  
protected  Versioned getSelectedVersion()
          Deprecated.  
protected  Versioned[] getSelectedVersions()
          Deprecated.  
(package private)  void helpButton_Action(ActionEvent event)
          Deprecated.  
private  void initHelpSystem()
          Deprecated.  
(package private)  void initializeHelp()
          Deprecated.  
private  void initResources()
          Deprecated.  
private  void localize()
          Deprecated.  
private  void setButtonsEnabled(boolean value)
          Deprecated.  
 void setParentApplet(Applet parent_applet)
          Deprecated. Supported API: false
(package private)  void setParentFrame(Frame parent)
          Deprecated.  
 void setReviseItem(Versioned item)
          Deprecated. Supported API: false
private  void setStaggered()
          Deprecated. A very simple method that simply gets the parent Frame and staggers the Dialog's position relative to the parent Frame so that the parent Frame is not obscured by the VersionHistoryDialog.
 void setVisible(boolean isVisible)
          Deprecated.  
 void show()
          Deprecated. The user should call the setVisible(boolean isVisible)
(package private)  void versionMultiList_itemStateChanged(ItemEvent event)
          Deprecated.  
(package private)  void viewButton_Action(ActionEvent event)
          Deprecated.  
protected  void viewObject()
          Deprecated.  
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, 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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, 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, 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, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
Deprecated. 
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Deprecated. 

selectedFolder

Folder selectedFolder
Deprecated. 

parentFrame

Frame parentFrame
Deprecated. 

versions

private SerialEnumeration versions
Deprecated. 

versionEntries

private Vector versionEntries
Deprecated. 

VERSION_COLUMN

private static int VERSION_COLUMN
Deprecated. 

STATE_COLUMN

private static int STATE_COLUMN
Deprecated. 

TEAM_COLUMN

private static int TEAM_COLUMN
Deprecated. 

LASTMODIFIEDDATE_COLUMN

private static int LASTMODIFIEDDATE_COLUMN
Deprecated. 

CREATEDBY_COLUMN

private static int CREATEDBY_COLUMN
Deprecated. 

CREATEDATE_COLUMN

private static int CREATEDATE_COLUMN
Deprecated. 

DUMMY_COLUMN

private static int DUMMY_COLUMN
Deprecated. 

COLUMN_COUNT

private static int COLUMN_COUNT
Deprecated. 

LOCATION_SHIFT

private static int LOCATION_SHIFT
Deprecated. 

reviseItem

private Versioned reviseItem
Deprecated. 

parentApplet

Applet parentApplet
Deprecated. 

contextGroup

private ThreadGroup contextGroup
Deprecated. 

resources

private static ResourceBundle resources
Deprecated. 

RESOURCES

private static String RESOURCES
Deprecated. 

helpSystem

HelpSystem helpSystem
Deprecated. 

helpContext

HelpContext helpContext
Deprecated. 

fComponentsAdjusted

boolean fComponentsAdjusted
Deprecated. 

versionHistoryPanel

Panel versionHistoryPanel
Deprecated. 

versionHistoryLabel

Label versionHistoryLabel
Deprecated. 

actionsPanel

Panel actionsPanel
Deprecated. 

viewButton

Button viewButton
Deprecated. 

compareButton

Button compareButton
Deprecated. 

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1
Deprecated. 

versionMultiList

WTMultiList versionMultiList
Deprecated. 

buttonPanel

Panel buttonPanel
Deprecated. 

explorerButton

Button explorerButton
Deprecated. 

closeButton

Button closeButton
Deprecated. 

helpButton

Button helpButton
Deprecated. 

lockStr

private Object lockStr
Deprecated. 

inDescendent

private boolean inDescendent
Deprecated. 
Constructor Detail

VersionHistoryDialog

public VersionHistoryDialog(Frame parent,
                            boolean modal)
Deprecated. 
This constructor instantiates and initializes the components.

Supported API: false


VersionHistoryDialog

public VersionHistoryDialog(Frame parent,
                            String title,
                            boolean modal)
Deprecated. 
This constructor instantiates and initializes the components and also sets the title of the Dialog

Supported API: false

Method Detail

initResources

private void initResources()
Deprecated. 

localize

private void localize()
Deprecated. 

addNotify

public void addNotify()
Deprecated. 
Supported API: false


setVisible

public void setVisible(boolean isVisible)
Deprecated. 

show

public void show()
Deprecated. The user should call the setVisible(boolean isVisible)

Supported API: false


getContext

private WTContext getContext()
Deprecated. 

Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)
Deprecated. 

viewButton_Action

void viewButton_Action(ActionEvent event)
Deprecated. 

viewObject

protected void viewObject()
Deprecated. 

getSelectedObject

protected CabinetBased getSelectedObject()
Deprecated. 

getSelectedVersion

protected Versioned getSelectedVersion()
Deprecated. 

getSelectedVersions

protected Versioned[] getSelectedVersions()
Deprecated. 

closeButton_Action

void closeButton_Action(ActionEvent event)
Deprecated. 

getParentApplet

public Applet getParentApplet()
Deprecated. 
Supported API: false


setParentApplet

public void setParentApplet(Applet parent_applet)
Deprecated. 
Supported API: false


setParentFrame

void setParentFrame(Frame parent)
Deprecated. 

getParentFrame

Frame getParentFrame()
Deprecated. 

setReviseItem

public void setReviseItem(Versioned item)
Deprecated. 
Supported API: false


getReviseItem

public Versioned getReviseItem()
Deprecated. 
Supported API: false


dispatchRefresh

private void dispatchRefresh(int action,
                             Object obj)
Deprecated. 

setButtonsEnabled

private void setButtonsEnabled(boolean value)
Deprecated. 

enableActions

private void enableActions(boolean enable)
Deprecated. 

helpButton_Action

void helpButton_Action(ActionEvent event)
Deprecated. 

initializeHelp

void initializeHelp()
Deprecated. 

initHelpSystem

private void initHelpSystem()
Deprecated. 

getHelpSystem

public HelpSystem getHelpSystem()
Deprecated. 
Gets the current helpSystem. If it's null, it initializes it.

Supported API: false

Returns:
helpSystem

versionMultiList_itemStateChanged

void versionMultiList_itemStateChanged(ItemEvent event)
Deprecated. 

explorerButton_Action

void explorerButton_Action(ActionEvent event)
Deprecated. 

exploreObject

protected void exploreObject()
Deprecated. 

getHttpgwURLString

public String getHttpgwURLString()
                          throws WTException,
                                 IOException
Deprecated. 
Supported API: false

Throws:
WTException
IOException

compareButton_ActionPerformed

void compareButton_ActionPerformed(ActionEvent event)
Deprecated. 

setStaggered

private void setStaggered()
Deprecated. 
A very simple method that simply gets the parent Frame and staggers the Dialog's position relative to the parent Frame so that the parent Frame is not obscured by the VersionHistoryDialog. There is also a check to see that the dialog does not appear off the screen

Returns:
void

getMinimumSize

public Dimension getMinimumSize()
Deprecated. 

getPreferredSize

public Dimension getPreferredSize()
Deprecated.