|
|||||||||||
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.ReviseDialog
This class defines a dialog, which when filled in with user input and
submitted, will create a new version of a Versioned
object.
To use
this dialog in your own code, you must import the
void reviseMenuItem_Action(java.awt.event.ActionEvent event) {
reviseObject(false);
}
protected void reviseObject(boolean withView) {
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.
ReviseTask revise_task =
new ReviseTask( getParentApplet(), getFrame(), versionedObject );
revise_task.revise(withView);
} finally {
setCursor( Cursor.getDefaultCursor() );
}
}
ReviseTask
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.ReviseTask;
Supported API: false
Extendable: false
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.
ReviseTask
,
Serialized FormNested Class Summary | |
(package private) class |
ReviseDialog.SymAction
|
(package private) class |
ReviseDialog.SymKey
|
(package private) class |
ReviseDialog.SymWindow
|
class |
ReviseDialog.WorkThread
The work thread for this Panel. |
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) Button |
browseButton
|
(package private) Panel |
buttonPanel
|
(package private) Button |
cancelButton
|
private ThreadGroup |
contextGroup
|
private boolean |
epmRevise
|
(package private) boolean |
fComponentsAdjusted
|
(package private) Button |
helpButton
|
(package private) HelpContext |
helpContext
|
(package private) HelpSystem |
helpSystem
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
private boolean |
inDescendent
|
(package private) LifeCycleInfo |
lifeCycleInfo
|
(package private) Label |
locationLabel
|
(package private) TextField |
locationTextField
|
private Object |
lockStr
|
(package private) Button |
okButton
|
(package private) Applet |
parentApplet
|
(package private) Frame |
parentFrame
|
private static ResourceBundle |
resources
|
private static String |
RESOURCES
|
protected static int |
REVISE
|
private boolean |
reviseFolderEntry
|
private Versionable |
reviseItem
|
(package private) Panel |
revisePanel
|
(package private) Folder |
selectedFolder
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
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 | |
ReviseDialog(Frame parent,
boolean modal)
This constructor instantiates and initializes the components. |
|
ReviseDialog(Frame parent,
boolean modal,
boolean epm_revise)
This constructor instantiates and initializes the components and flags epm_revise_with_parts. |
|
ReviseDialog(Frame parent,
String title,
boolean modal)
This constructor instantiates and initializes the components and also sets the title of the Dialog Supported API: false |
Method Summary | |
void |
addNotify()
Supported API: false |
(package private) void |
browseButton_Action(ActionEvent event)
|
(package private) void |
cancelButton_Action(ActionEvent event)
|
(package private) void |
cancelButton_KeyPressed(KeyEvent event)
|
(package private) void |
cancelRevise()
|
private void |
dispatchRefresh(int action,
Object obj)
|
void |
dispose()
Override the dispose method to work around a bug in the JDK. |
private void |
enableActions(boolean enable)
|
private WTContext |
getContext()
|
HelpSystem |
getHelpSystem()
Gets the current helpSystem . |
Applet |
getParentApplet()
Supported API: false |
(package private) Frame |
getParentFrame()
|
Versionable |
getReviseItem()
Supported API: false |
(package private) Folder |
getSelectedFolder()
|
(package private) void |
helpButton_Action(ActionEvent event)
|
(package private) void |
helpButton_KeyPressed(KeyEvent event)
|
private void |
initHelpSystem()
|
(package private) void |
initializeHelp()
|
private void |
initResources()
|
(package private) void |
launchFindPathDialog()
|
private void |
localize()
|
(package private) void |
okButton_Action(ActionEvent event)
|
(package private) void |
okButton_KeyPressed(KeyEvent event)
|
protected void |
processCancelAction()
|
protected void |
processHelpAction()
|
protected void |
processOkAction()
|
(package private) void |
ReviseDialog_WindowClosing(WindowEvent event)
|
(package private) void |
reviseObject()
|
(package private) Versionable |
reviseObjectAux(Versionable reviseItem)
|
void |
setParentApplet(Applet parent_applet)
Supported API: false |
(package private) void |
setParentFrame(Frame parent)
|
void |
setReviseItem(Versionable item)
Supported API: false |
(package private) void |
setSelectedFolder(Folder folder)
|
void |
setVisible(boolean isVisible)
|
void |
show()
Deprecated. The user should call the setVisible(boolean isVisible) |
Methods inherited from class java.awt.Dialog |
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 Versionable reviseItem
Applet parentApplet
private ThreadGroup contextGroup
private static ResourceBundle resources
private static String RESOURCES
HelpSystem helpSystem
HelpContext helpContext
private boolean reviseFolderEntry
private boolean epmRevise
protected static final int REVISE
boolean fComponentsAdjusted
Panel revisePanel
Label locationLabel
TextField locationTextField
Button browseButton
LifeCycleInfo lifeCycleInfo
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel buttonPanel
Button okButton
Button cancelButton
Button helpButton
private Object lockStr
private boolean inDescendent
Constructor Detail |
public ReviseDialog(Frame parent, boolean modal)
public ReviseDialog(Frame parent, String title, boolean modal)
public ReviseDialog(Frame parent, boolean modal, boolean epm_revise)
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()
public void dispose()
ContainerUtility
void ReviseDialog_WindowClosing(WindowEvent event)
void browseButton_Action(ActionEvent event)
void cancelButton_Action(ActionEvent event)
protected void processCancelAction()
public Applet getParentApplet()
public void setParentApplet(Applet parent_applet)
void setParentFrame(Frame parent)
Frame getParentFrame()
void setSelectedFolder(Folder folder)
Folder getSelectedFolder()
public void setReviseItem(Versionable item)
public Versionable getReviseItem()
void launchFindPathDialog()
void okButton_Action(ActionEvent event)
protected void processOkAction()
void reviseObject()
void cancelRevise()
Versionable reviseObjectAux(Versionable reviseItem)
private void dispatchRefresh(int action, Object obj)
private void enableActions(boolean enable)
void helpButton_Action(ActionEvent event)
protected void processHelpAction()
void initializeHelp()
private void initHelpSystem()
public HelpSystem getHelpSystem()
helpSystem
. If it's null,
it initializes it.
helpSystem
void okButton_KeyPressed(KeyEvent event)
void cancelButton_KeyPressed(KeyEvent event)
void helpButton_KeyPressed(KeyEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |