|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
wt.clients.vc.CheckInDialog
Class CheckInDialog
provides a dialog for checking in
checked out Workable
objects. This dialog has a
text area for capturing comments to be associated with the check-in.
If the Workable
object being checked in is also a
FormatContentHolder
, this dialog will allow the user to
choose to upload a new content file.
Example:
CheckInDialog checkin_dialog = new CheckInDialog( parent_frame, true ); checkin_dialog.setParentApplet( getParentApplet() ); checkin_dialog.setCheckInItem( checkinItem ); checkin_dialog.show();
CheckInTask
,
FormatContentHolder
,
Workable
,
Serialized FormNested Class Summary | |
(package private) class |
CheckInDialog.SymAction
|
(package private) class |
CheckInDialog.SymKey
|
(package private) class |
CheckInDialog.SymWindow
|
(package private) class |
CheckInDialog.WorkableHandle
|
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private Cabinet[] |
allowedCabinets
|
(package private) Button |
browseButton
|
(package private) Panel |
buttonPanel
|
static int |
CANCEL
Upload status indicator, indicates that user decided to cancel out of upload operation. |
(package private) Button |
cancelButton
|
(package private) Label |
checkedOutByLabel
|
(package private) Label |
checkedOutByValue
|
private Folder |
checkInFolder
|
private CheckInDialog.WorkableHandle |
checkInItemHandle
|
(package private) Label |
commentLabel
|
(package private) TextArea |
commentTextArea
|
private static String |
CONTENT_RESOURCES
|
private static ResourceBundle |
contentResources
|
private ThreadGroup |
contextGroup
|
(package private) Button |
continueButton
|
private boolean |
continueIfFileNotFound
|
private boolean |
continueIfFileUnchanged
|
private static boolean |
DEBUG
|
static int |
DO_UPLOAD
Target type indicator, indicates that upload should be attempted. |
private WTPreferences |
downloadPreferences
|
(package private) boolean |
fComponentsAdjusted
|
private boolean |
firstCheckIn
|
private static String |
HELP_TARGET
|
(package private) Button |
helpButton
|
private HelpContext |
helpContext
|
private HelpSystem |
helpSystem
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
(package private) HTTPUploadDownloadPanel |
hTTPUploadDownloadPanel1
|
(package private) Label |
locationLabel
|
(package private) TextField |
locationTextField
|
static int |
NO_UPLOAD
Upload status indicator, indicates that upload should be skipped. |
private Applet |
parentApplet
|
private static String |
PREF_KEY_FILECHANGED
|
private static String |
PREF_KEY_FILENOTFOUND
|
private static String |
PREF_KEY_FILEUNCHANGED
|
private static String |
PREF_KEY_WORKSPACEPATH
|
private static String |
PREF_NODE
|
private static int |
PREFERRED_BUTTON_WIDTH
|
private static ResourceBundle |
resources
|
private static String |
RESOURCES
|
private static boolean |
SHOW_CONTENTS
|
static int |
UNKNOWN
Upload status indicator, indicates that whether or not to upload is unknown. |
private boolean |
uploadIfFileChanged
|
private static String |
versionID
|
(package private) Label |
workableNameLabel
|
(package private) Label |
workableNameValue
|
private String |
workspacePath
|
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CheckInDialog(Frame parent,
boolean modal)
Constructor for CheckInDialog |
|
CheckInDialog(Frame parent,
String title,
boolean modal)
Constructor for CheckInDialog |
Method Summary | |
void |
addNotify()
|
(package private) void |
browseButton_ActionPerformed(ActionEvent event)
|
private void |
browseForFolder()
|
(package private) void |
cancelButton_Action(ActionEvent event)
|
(package private) void |
cancelButton_KeyPressed(KeyEvent event)
|
boolean |
checksumsMatch()
|
(package private) void |
continueButton_Action(ActionEvent event)
|
(package private) void |
continueButton_KeyPressed(KeyEvent event)
|
(package private) void |
Dialog1_WindowClosing(WindowEvent event)
|
private void |
dispatchRefresh(int action,
Object obj)
|
void |
dispose()
Override the dispose method to work around a bug in the JDK. |
private void |
enableActions(boolean enable)
|
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 object to be checked in by this
dialog. |
private WTContext |
getContext()
|
protected String |
getDisplayIdentity(Object obj)
|
private String |
getLocalizedMessage(String key,
Object[] params)
Deprecated. |
Applet |
getParentApplet()
Method getParentApplet returns the Applet
which is used to provide context to this dialog. |
Frame |
getParentFrame()
Returns the Frame which is parenting this dialog. |
private String |
getPreferenceValue(String key,
String defaultValue)
|
private PropertyDescriptor |
getReadPropertyDescriptor(String attribute)
|
String |
getTarget()
Return the target path or url. |
private String |
getType()
|
(package private) void |
helpButton_Action(ActionEvent event)
|
(package private) void |
helpButton_KeyPressed(KeyEvent event)
|
private void |
initButtonSizes()
Initializes the sizes of the buttons displayed on this panel. |
private void |
initializeHelp()
Initialize the help system used in displaying tooltips and online help. |
private void |
initPrimaryContentsPanel(boolean firstCheckIn)
|
private void |
initResources()
|
boolean |
isValidTarget()
|
boolean |
isValidTarget(String target)
|
private void |
localize()
|
(package private) void |
locationTextField_KeyTyped(KeyEvent event)
|
private void |
processCancelCommand()
|
private void |
processCheckIn()
|
private void |
processContinueCommand()
|
private void |
processFirstTimeCheckin()
Places the given Workable item in the vault to be
subjected to version control. |
private void |
processHelpCommand()
|
private boolean |
replacePrimaryContent()
|
private WTPreferences |
retrievePreferences(String node)
|
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 item)
Sets the Workable object to be checked in. |
void |
setCheckInItem(Workable item,
boolean first_time)
Sets the Workable object to be checked in and
specifies whether or not this is the first time the given object
is being placed under revision control. |
private void |
setContext(boolean context_on)
|
protected void |
setDisplayLocation()
|
protected void |
setItem(Workable workable)
|
void |
setParentApplet(Applet parent_applet)
Method setParentApplet sets the applet which is used to
provide context for this dialog. |
void |
setTarget(String target)
Set the target path or url. |
void |
show()
|
private void |
showMessageDialog(String message)
|
private int |
validateTarget()
If target is not valid, attempts to identify valid target through combinations of workspace, target filename, and persisted filename. |
Methods inherited from class java.awt.Dialog |
getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
public static final int UNKNOWN
public static final int CANCEL
public static final int NO_UPLOAD
public static final int DO_UPLOAD
private static String PREF_NODE
private static String PREF_KEY_FILENOTFOUND
private static String PREF_KEY_FILEUNCHANGED
private static String PREF_KEY_FILECHANGED
private static String PREF_KEY_WORKSPACEPATH
private WTPreferences downloadPreferences
private boolean continueIfFileNotFound
private boolean continueIfFileUnchanged
private boolean uploadIfFileChanged
private String workspacePath
boolean fComponentsAdjusted
Label workableNameLabel
Label workableNameValue
Label checkedOutByLabel
Label checkedOutByValue
HTTPUploadDownloadPanel hTTPUploadDownloadPanel1
Label locationLabel
TextField locationTextField
Button browseButton
Label commentLabel
TextArea commentTextArea
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel buttonPanel
Button continueButton
Button cancelButton
Button helpButton
private CheckInDialog.WorkableHandle checkInItemHandle
private Folder checkInFolder
private Applet parentApplet
private boolean firstCheckIn
private ThreadGroup contextGroup
private HelpSystem helpSystem
private HelpContext helpContext
private Cabinet[] allowedCabinets
private static final String HELP_TARGET
private static int PREFERRED_BUTTON_WIDTH
private static ResourceBundle resources
private static ResourceBundle contentResources
private static String RESOURCES
private static String CONTENT_RESOURCES
private static boolean DEBUG
private static boolean SHOW_CONTENTS
Constructor Detail |
public CheckInDialog(Frame parent, boolean modal)
CheckInDialog
parent
- the Frame
owner of this dialogmodal
- if true
, dialog blocks input to
the parent window when shownpublic CheckInDialog(Frame parent, String title, boolean modal)
CheckInDialog
parent
- the Frame
owner of this dialogtitle
- the String
to display as the
title of this dialogmodal
- if true
, dialog blocks input to
the parent window when shownMethod Detail |
private void initResources()
private void initializeHelp()
HelpContext
,
HelpSystem
private void localize()
public void addNotify()
public void show()
protected void setDisplayLocation()
public void dispose()
ContainerUtility
private WTContext getContext()
private void setContext(boolean context_on)
void Dialog1_WindowClosing(WindowEvent event)
void cancelButton_Action(ActionEvent event)
private void processCancelCommand()
public void setCheckInItem(Workable item) throws NotCheckedOutException, WTException
Workable
object to be checked in. When
the object to be checked in is set, this dialog is updated to
display the identity of the Workable
item.
item
- the Workable
object to be checked in
NotCheckedOutException
WTException
getCheckInItem()
protected void setItem(Workable workable)
public void setCheckInItem(Workable item, boolean first_time) throws NotCheckedOutException, WTException
Workable
object to be checked in and
specifies whether or not this is the first time the given object
is being placed under revision control. If this is the first
time the given Workable
is to be checked in, then
the fields to display and choose the location in which to place
the given Workable
is made visible.
item
- the Workable
item to be checked infirst_time
- a boolean
value specifying whether
or not this is the first time the given Workable
is being checked in; if true
, the given
Workable
is being checked in for the first
time, and support for choosing the check-in location is
made visible.
NotCheckedOutException
WTException
setCheckInItem(wt.vc.wip.Workable)
,
Workable
public Workable getCheckInItem()
Workable
object to be checked in by this
dialog.
Workable
object to be checked insetCheckInItem(wt.vc.wip.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 Applet getParentApplet()
getParentApplet
returns the Applet
which is used to provide context to this dialog.
Applet
which gives context to this
dialogsetParentApplet(java.applet.Applet)
public void setParentApplet(Applet parent_applet)
setParentApplet
sets the applet which is used to
provide context for this dialog.
getParentApplet()
void continueButton_Action(ActionEvent event)
private void processContinueCommand()
private void dispatchRefresh(int action, Object obj)
private void enableActions(boolean enable)
private boolean replacePrimaryContent()
private String getPreferenceValue(String key, String defaultValue)
private WTPreferences retrievePreferences(String node)
public boolean checksumsMatch()
public boolean isValidTarget()
public boolean isValidTarget(String target)
public String getTarget()
public void setTarget(String target)
target
- The target path, e.g. "E:\abcd\test.txt" or "E:\abcd\*.txt", or url.private int validateTarget()
private void showMessageDialog(String message)
private String getType()
private PropertyDescriptor getReadPropertyDescriptor(String attribute)
void helpButton_Action(ActionEvent event)
private void processHelpCommand()
void continueButton_KeyPressed(KeyEvent event)
void cancelButton_KeyPressed(KeyEvent event)
void helpButton_KeyPressed(KeyEvent event)
private void initButtonSizes()
localize
method, the
width of the buttons could be affected, potentially causing the widths
of the buttons to be different from one another.
void locationTextField_KeyTyped(KeyEvent event)
void browseButton_ActionPerformed(ActionEvent event)
private void browseForFolder()
private void processCheckIn() throws PropertyVetoException, WorkInProgressException, InterruptedException, WTException
PropertyVetoException
WorkInProgressException
InterruptedException
WTException
private void processFirstTimeCheckin() throws WTPropertyVetoException, VersionControlException, WTException
Workable
item in the vault to be
subjected to version control.
WTPropertyVetoException
VersionControlException
WTException
public Frame getParentFrame()
Frame
which is parenting this dialog.
If the immediate parent of this dialog is not a frame, and
the parent applet of this dialog has been set, then the
parent hierarchy of the parent applet is traversed until a
frame is found.
private String getLocalizedMessage(String key, Object[] params)
ResourceBundle
which corresponds to the given key. Replaced by wt.util.WTMessage
key
- the String
key of the message in the resource bundleparams
- if not null, this array is passed along with the resource bundle
string to MessageFormat
to create a formatted message
String
messageprotected String getDisplayIdentity(Object obj)
private void initPrimaryContentsPanel(boolean firstCheckIn)
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 |