|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.TaskDelegate
wt.clients.part.WTPartMasterTaskDelegate
wt.clients.part.WTProductMasterTaskDelegate
Class WTProductTaskDelegate
provides support for launching
the tasks to create, update and view WTProducts
.
This class should not be directly instantiated or manipulated. Instead,
obtain a wt.clients.util.TaskDelegate from the wt.clients.util.TaskDelegateFactory
for a specific object or class, and invoke methods on that obtained TaskDelegate.
Supported API: true
Extendable: true
TaskDelegate
,
TaskDelegateFactory
,
wt.part.WTPProductMaster
Field Summary |
Fields inherited from class wt.clients.util.TaskDelegate |
ACTION_KEY, OBJ_PROPS_ACTION, object, objReference, OID_KEY, parentApplet, parentFolder, parentFrame, URL_TEMPLATE_ACTION, URLPROCESSOR_CLASS |
Constructor Summary | |
WTProductMasterTaskDelegate()
Create the task delegate. |
Method Summary | |
private static WTProduct |
getProduct(String number)
GetProduct is just used by Main for test purposes. |
void |
launchDefineAlternatesTask()
Launch the task to define alternate products of a given
WTProductMaster . |
void |
launchViewTask()
Launch the task to view a given WTProductMaster . |
static void |
main(String[] args)
A main method that demonstrates how to use this class and allows testing |
Methods inherited from class wt.clients.part.WTPartMasterTaskDelegate |
getApplet, getFrame, getObject, getVersionForMaster, launchCreateTask, launchDeleteTask, launchUpdateTask |
Methods inherited from class wt.clients.util.TaskDelegate |
confirmAction, deleteObject, displayPropertiesPage, getParentApplet, getParentFolder, getParentFrame, launchSaveAsTask, launchViewDistributionListTask, setObject, setObjectReference, setParentApplet, setParentFolder, setParentFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WTProductMasterTaskDelegate()
Method Detail |
public void launchViewTask() throws TaskDelegateException, ObjectNoLongerExistsException, NotAuthorizedException, WTException
WTProductMaster
.
This method will display the HTML properties page for the master
which is the context of this task delegate.
launchViewTask
in class WTPartMasterTaskDelegate
TaskDelegateException
- if no object has been given to update or
the given object is not a WTProduct
NotAuthorizedException
- if the current user does not have permission to
modify nor view the given WTProduct
ObjectNoLongerExistsException
- the given WTProduct no longer exists in the
database
WTException
- if an error occurs preparing the given WTProduct
for modificationWTProduct
,
WTProductMaster
public void launchDefineAlternatesTask() throws TaskDelegateException, WTException
WTProductMaster
. This method will display the HTML Define
Alternates form for the master that is the context for this task
delegate.
launchDefineAlternatesTask
in class WTPartMasterTaskDelegate
TaskDelegateException
WTException
public static void main(String[] args)
private static WTProduct getProduct(String number) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |