wt.clients.part
Class WTProductInstance2TaskDelegate
java.lang.Object
wt.clients.util.TaskDelegate
wt.clients.part.WTProductInstance2TaskDelegate
- public class WTProductInstance2TaskDelegate
- extends TaskDelegate
Method Summary |
Applet |
getApplet()
Return the parent applet. |
void |
launchSaveAsTask()
Method launchSaveAsTask is invoked to launch the task to create
a particular business object from an existing one. |
void |
launchViewTask()
Method launchViewTask is invoked to launch the task to view
a particular business object. |
Methods inherited from class wt.clients.util.TaskDelegate |
confirmAction, deleteObject, displayPropertiesPage, getObject, getParentApplet, getParentFolder, getParentFrame, launchCreateTask, launchDeleteTask, launchUpdateTask, launchViewDistributionListTask, setObject, setObjectReference, setParentApplet, setParentFolder, setParentFrame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WTProductInstance2TaskDelegate
public WTProductInstance2TaskDelegate()
getApplet
public Applet getApplet()
- Return the parent applet.
- Returns:
- the parent applet
launchViewTask
public void launchViewTask()
throws ObjectNoLongerExistsException,
NotAuthorizedException,
TaskDelegateException,
WTException
- Description copied from class:
TaskDelegate
- Method
launchViewTask
is invoked to launch the task to view
a particular business object. Subclasses of this TaskDelegate
class should implement the view task to support viewing instances of the
business object they represent. The particular object to be viewed is
specified via setObject
. This method currently only contains
the code to refresh the object to be viewed.
- Overrides:
launchViewTask
in class TaskDelegate
- Throws:
ObjectNoLongerExistsException
- if the object no longer exists in the
database
NotAuthorizedException
- if the current user does not have
permission to view the object
TaskDelegateException
- if an error occurs launching a view
task
WTException
- if an error occurs preparing the object
for viewing- See Also:
TaskDelegate.setObject(java.lang.Object)
launchSaveAsTask
public void launchSaveAsTask()
throws TaskDelegateException
- Method
launchSaveAsTask
is invoked to launch the task to create
a particular business object from an existing one. Subclasses of this
TaskDelegate
class should implement the saveas task to support
creating instances of the business object they represent. Since this
TaskDelegate
class is intented to be subclassed, this method
provides no implementation. It method should be implemented to throw an
exception when invoked, but simply does nothing.
- Overrides:
launchSaveAsTask
in class TaskDelegate
- Throws:
TaskDelegateException
- if an error occurs launching a create task