|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.vc.ReviseTask
Construct a
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
to handle the creeation of a new
version of a Versioned object. This code calls ReviseTaskLogic
to perform an availability check of the object for a new version and then
presents the user with a dialog, either ReviseDialog or
ReviseViewDialog dependent
on the value of the second parameter
in the call to revise(boolean withView). Below is an
example of using ReviseTask.
import wt.clients.vc.ReviseTask;
Supported API: false
Extendable: false
Field Summary | |
private Applet |
parentApplet
|
private Frame |
parentFrame
|
private static ResourceBundle |
resources
|
static String |
RESOURCES
|
private Versionable |
reviseItem
|
private static String |
versionID
|
Constructor Summary | |
ReviseTask(Applet parent_applet,
Frame parent_frame,
Versionable revise_item)
|
Method Summary | |
private boolean |
decideAction(Frame parent_frame,
String message)
|
private void |
dispatchRefreshEvent(Object obj,
int action)
|
private EPMBuildRule |
getBuildRule(WTPart part)
|
private WTContext |
getContext()
|
Applet |
getParentApplet()
Supported API: false |
Frame |
getParentFrame()
Supported API: false |
Versionable |
getReviseItem()
Supported API: false |
private Frame |
getTopLevelFrame()
|
private void |
initResources()
|
Versionable |
revise(boolean withView)
This call will present the user with a dialog to create a new version of the the current Versioned object. |
void |
setParentApplet(Applet parent_applet)
Supported API: false |
void |
setParentFrame(Frame parent_frame)
Supported API: false |
void |
setReviseItem(Versionable revise_item)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
public static String RESOURCES
private static ResourceBundle resources
private Applet parentApplet
private Frame parentFrame
private Versionable reviseItem
Constructor Detail |
public ReviseTask(Applet parent_applet, Frame parent_frame, Versionable revise_item)
Method Detail |
public void setParentApplet(Applet parent_applet)
public Applet getParentApplet()
public void setParentFrame(Frame parent_frame)
public Frame getParentFrame()
public void setReviseItem(Versionable revise_item)
public Versionable getReviseItem()
public Versionable revise(boolean withView)
private boolean decideAction(Frame parent_frame, String message)
private EPMBuildRule getBuildRule(WTPart part)
private void initResources()
private Frame getTopLevelFrame()
private WTContext getContext()
private void dispatchRefreshEvent(Object obj, int action)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |