|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.vc.CheckInTask
Class CheckInTask
is a generic task class which performs the
check-in of a checked out object. To perform a check-in of a checked out
object, this class only needs to be given a parent Applet
, which
provides context, a Frame
to parent dialogs launched in the
check-in task and the Workable
object to be checked in:
CheckInTask checkin_task = new CheckInTask( my_applet, my_frame ); checkin_task.setCheckinItem( check_in_item ); checkin_task.checkin();
Workable
Field Summary | |
private Cabinet[] |
allowedCabinets
|
private Folder |
checkInFolder
|
private Workable |
checkinItem
|
private ThreadGroup |
contextGroup
|
private static boolean |
DEBUG
Flag used to provide debugging messages. |
private boolean |
firstCheckIn
|
private Applet |
parentApplet
|
private Frame |
parentFrame
|
private static ResourceBundle |
resources
|
private static String |
RESOURCES
|
private static String |
versionID
|
Constructor Summary | |
CheckInTask(Applet parent_applet,
Frame parent_frame)
Construct a CheckInTask to handle the checkin of a Workable object. |
Method Summary | |
Workable |
checkin()
Performs the actual check-in of the item to be checked in. |
private void |
dispatchRefreshEvent(Object obj,
int action)
|
Cabinet[] |
getAllowedCabinets()
Returns an array of cabinets from which the user can choose the location in which to place the object being checked in on a first-time check-in. |
Folder |
getCheckInFolder()
Returns the folder in which the item being checked in currently is located. |
Workable |
getCheckinItem()
Returns the Workable item checked in by this task. |
private WTContext |
getContext()
|
Applet |
getParentApplet()
Returns the parent Applet which provides context to this task. |
Frame |
getParentFrame()
Returns the Frame which is used as the owner of dialogs
launched in this task. |
private void |
initResources()
|
void |
setAllowedCabinets(Cabinet[] cabinets)
Method which sets the cabinets into which a user can check an object. |
void |
setCheckInFolder(Folder folder)
Sets the Folder in which the given object is to be
checked in to. |
void |
setCheckinItem(Workable checkin_item)
Sets the Workable item to be checked in. |
private void |
setContext(boolean set)
|
void |
setParentApplet(Applet parent_applet)
Sets the parent Applet which provides context to this task. |
void |
setParentFrame(Frame parent_frame)
Sets the Frame to be used as the owner of dialogs launched in
this task. |
private void |
showMessageDialog(String message)
|
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
private static String RESOURCES
private static ResourceBundle resources
private static boolean DEBUG
private Applet parentApplet
private Frame parentFrame
private Workable checkinItem
private boolean firstCheckIn
private ThreadGroup contextGroup
private Folder checkInFolder
private Cabinet[] allowedCabinets
Constructor Detail |
public CheckInTask(Applet parent_applet, Frame parent_frame)
CheckInTask
to handle the checkin of a Workable object.
parent_applet
- The parent Applet
from which this task
gets its context.parent_frame
- The parent Frame
which is used to provide
a Frame
for launching dialogs. If no
frame is provided, the applet is used in launching
dialogs.Method Detail |
public void setParentApplet(Applet parent_applet)
Applet
which provides context to this task. The
parent Applet
is used to get the appropriate WTContext
object for this task.
parent_applet
- the Applet
to be used for contextgetParentApplet()
,
WTContext
public Applet getParentApplet()
Applet
which provides context to this task.
The parent Applet
is used to get the appropriate WTContext
object for this task.
Applet
used for providing contextsetParentApplet(java.applet.Applet)
,
WTContext
public void setParentFrame(Frame parent_frame)
Frame
to be used as the owner of dialogs launched in
this task. Since a Dialog
requires a Frame
to
be constructed, this task must be given a frame to use.
parent_frame
- the Frame
used for launching dialogs
from this taskgetParentFrame()
,
Dialog
public Frame getParentFrame()
Frame
which is used as the owner of dialogs
launched in this task. If the parent frame has not been explicitly
set (via setParentFrame
), this method will try to retrieve
a frame by traversing the parent hierarchy of the parent applet, if the
parent applet has been given.
Frame
used for launching dialogs from
this tasksetParentFrame(java.awt.Frame)
,
setParentApplet(java.applet.Applet)
public void setCheckinItem(Workable checkin_item) throws NotCheckedOutException, WTException
Workable
item to be checked in. This method does
not verify that the given Workable
corresponds to an
object that is currently checked out.
checkin_item
- the Workable
object to be checked in
NotCheckedOutException
WTException
getCheckinItem()
,
Workable
public Workable getCheckinItem()
Workable
item checked in by this task.
Workable
item checked in by this tasksetCheckinItem(wt.vc.wip.Workable)
,
Workable
public void setCheckInFolder(Folder folder)
Folder
in which the given object is to be
checked in to. Note that the check-in folder is used when an
object is first being put into the vault. This method sets the
folder in the vault in which the given item is to be added.
folder
- the Folder
in which the new item
is to be vaultedgetCheckInFolder()
,
Folder
public Folder getCheckInFolder() throws WTException
Folder
in which the original copy of
the item being checked in is located.
WTException
setCheckInFolder(wt.folder.Folder)
,
Folder
public Workable checkin()
CheckInDialog
to perform the actual
processing of the check-in task.
Workable
object which has been checked inCheckInDialog
,
Workable
private void initResources()
private WTContext getContext()
private void setContext(boolean set)
private void showMessageDialog(String message)
private void dispatchRefreshEvent(Object obj, int action)
public void setAllowedCabinets(Cabinet[] cabinets)
cabinets
- the array of cabinets from which the user can choose
the location in which to place the object on a first-time
check-inpublic Cabinet[] getAllowedCabinets()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |