|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.vc.OneOffTask
Construct a
void oneOffVersionMenuItem_Action(java.awt.event.ActionEvent event) {
oneOffVersionObject();
}
protected void oneOffVersionObject() {
try {
setCursor( Cursor.getPredefinedCursor( Cursor.WAIT_CURSOR ) );
// You must supply the getVersionedObject() method.
OneOffVersioned versionedObject = getVersionedObject();
// You must supply the getParentApplet() method for the calling
// GUI component.
// You must supply the getFrame() method for the calling
// GUI component.
OneOffTask oneOffVersion_task =
new OneOffTask( getParentApplet(), getFrame(), versionedObject );
oneOffVersion_task.oneOffVersion();
} finally {
setCursor( Cursor.getDefaultCursor() );
}
}
OneOffTask
to handle the creation of a new
version of a OneOffVersioned object. This code calls OneOffTaskLogic
to perform an availability check of the object for a new version and then
presents the user with a dialog, OneOffDialog.
Below is an example of using OneOffTask.
import wt.clients.vc.OneOffTask;
Supported API: false
Extendable: false
Field Summary | |
private OneOffVersioned |
oneOffVersionItem
|
private Applet |
parentApplet
|
private Frame |
parentFrame
|
private static ResourceBundle |
resources
|
static String |
RESOURCES
|
Constructor Summary | |
OneOffTask(Applet parent_applet,
Frame parent_frame,
OneOffVersioned oneOffVersion_item)
|
Method Summary | |
private void |
dispatchRefreshEvent(Object obj,
int action)
|
private WTContext |
getContext()
|
OneOffVersioned |
getOneOffItem()
Supported API: false |
Applet |
getParentApplet()
Supported API: false |
Frame |
getParentFrame()
Supported API: false |
private Frame |
getTopLevelFrame()
|
private void |
initResources()
|
OneOffVersioned |
oneOffVersion()
This call will present the user with a dialog to create a new version of the the current OneOffVersioned object. |
void |
setOneOffItem(OneOffVersioned oneOffVersion_item)
Supported API: false |
void |
setParentApplet(Applet parent_applet)
Supported API: false |
void |
setParentFrame(Frame parent_frame)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String RESOURCES
private static ResourceBundle resources
private Applet parentApplet
private Frame parentFrame
private OneOffVersioned oneOffVersionItem
Constructor Detail |
public OneOffTask(Applet parent_applet, Frame parent_frame, OneOffVersioned oneOffVersion_item)
Method Detail |
public void setParentApplet(Applet parent_applet)
public Applet getParentApplet()
public void setParentFrame(Frame parent_frame)
public Frame getParentFrame()
public void setOneOffItem(OneOffVersioned oneOffVersion_item)
public OneOffVersioned getOneOffItem()
public OneOffVersioned oneOffVersion()
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 |