|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
wt.clients.vc.VersionHistoryDialog
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.
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() );
}
}
import wt.clients.vc.VersionHistoryTask;
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
VersionHistoryTask
,
Serialized FormNested 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.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
private static boolean VERBOSE
Folder selectedFolder
Frame parentFrame
private SerialEnumeration versions
private Vector versionEntries
private static int VERSION_COLUMN
private static int STATE_COLUMN
private static int TEAM_COLUMN
private static int LASTMODIFIEDDATE_COLUMN
private static int CREATEDBY_COLUMN
private static int CREATEDATE_COLUMN
private static int DUMMY_COLUMN
private static int COLUMN_COUNT
private static int LOCATION_SHIFT
private Versioned reviseItem
Applet parentApplet
private ThreadGroup contextGroup
private static ResourceBundle resources
private static String RESOURCES
HelpSystem helpSystem
HelpContext helpContext
boolean fComponentsAdjusted
Panel versionHistoryPanel
Label versionHistoryLabel
Panel actionsPanel
Button viewButton
Button compareButton
symantec.itools.awt.shape.HorizontalLine horizontalLine1
WTMultiList versionMultiList
Panel buttonPanel
Button explorerButton
Button closeButton
Button helpButton
private Object lockStr
private boolean inDescendent
Constructor Detail |
public VersionHistoryDialog(Frame parent, boolean modal)
public VersionHistoryDialog(Frame parent, String title, boolean modal)
Method Detail |
private void initResources()
private void localize()
public void addNotify()
public void setVisible(boolean isVisible)
public void show()
setVisible(boolean isVisible)
private WTContext getContext()
void Dialog1_WindowClosing(WindowEvent event)
void viewButton_Action(ActionEvent event)
protected void viewObject()
protected CabinetBased getSelectedObject()
protected Versioned getSelectedVersion()
protected Versioned[] getSelectedVersions()
void closeButton_Action(ActionEvent event)
public Applet getParentApplet()
public void setParentApplet(Applet parent_applet)
void setParentFrame(Frame parent)
Frame getParentFrame()
public void setReviseItem(Versioned item)
public Versioned getReviseItem()
private void dispatchRefresh(int action, Object obj)
private void setButtonsEnabled(boolean value)
private void enableActions(boolean enable)
void helpButton_Action(ActionEvent event)
void initializeHelp()
private void initHelpSystem()
public HelpSystem getHelpSystem()
helpSystem
. If it's null,
it initializes it.
helpSystem
void versionMultiList_itemStateChanged(ItemEvent event)
void explorerButton_Action(ActionEvent event)
protected void exploreObject()
public String getHttpgwURLString() throws WTException, IOException
WTException
IOException
void compareButton_ActionPerformed(ActionEvent event)
private void setStaggered()
public Dimension getMinimumSize()
public Dimension getPreferredSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |