|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.modeldiff.GuiManager
This package private class encapsulates the interaction with the GUI.
Field Summary | |
private static CancellationMonitor |
cancellationMonitor_
|
private static CheckPoints |
checkPoints_
|
private static CompareSchemaListener |
compareSchemaListener_
|
private static Date |
date0_
|
private static Date |
date1_
|
private static boolean |
debugByAddingCheckPoints_
|
private static boolean |
isACancel_
|
private static boolean |
isACancelRequested_
|
private static boolean |
isAnError_
|
private static boolean |
testRequired_
|
private static long |
time0_
|
private static long |
time1_
|
private static long |
timeLast_
|
Constructor Summary | |
(package private) |
GuiManager()
|
Method Summary | |
(package private) boolean |
getIsACancel()
After a cancel was requested by selecting "Cancel", ask: Was the cancel verified? |
(package private) boolean |
getIsACancelRequested()
A cancel was requested if the user selected the "Cancel". |
(package private) boolean |
getIsAnError()
Did execution stop because of an error or a cancel. |
(package private) static void |
noCheckPointVerification()
|
(package private) void |
setCancellationMonitor(CancellationMonitor x)
Used to allow the user to cancel only once. |
(package private) void |
setIsACancel()
After a cancel was requested by selecting "Cancel", use this to set that cancel was verified. |
private void |
setIsAnError()
|
(package private) void |
setListener(CompareSchemaListener listener)
Allows execution to know minimal details about the user. |
(package private) void |
testGuiForACancel()
This method is placed liberally in the code to test for the user canceling. |
(package private) void |
updateGuiActivitySubject(String activity_name,
String activity_subject_type,
String activity_subject)
Used when an activity is a collection of activity_subjects, but the total number of activity_subjects IS NOT known. |
(package private) void |
updateGuiActivitySubject(String activity_name,
String activity_subject_type,
String activity_subject,
int activity_subject_progress_min,
int activity_subject_progress_current,
int activity_subject_progress_max)
Used when an activity is a collection of activity_subjects, and the total number of activity_subjects IS known. |
private void |
updateGuiAsCanceling()
|
(package private) static void |
updateGuiAsCompleted()
|
(package private) void |
updateGuiAtACheckPoint(int check_point_number,
String previous_name,
String next_name)
This method is ignored by non-GUI execution. |
(package private) static void |
updateGuiWithSchemaResults(SchemaResults x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static CancellationMonitor cancellationMonitor_
private static CompareSchemaListener compareSchemaListener_
private static CheckPoints checkPoints_
private static boolean isACancelRequested_
private static boolean isACancel_
private static boolean isAnError_
private static boolean testRequired_
private static boolean debugByAddingCheckPoints_
private static Date date0_
private static long time0_
private static Date date1_
private static long time1_
private static long timeLast_
Constructor Detail |
GuiManager()
Method Detail |
void setCancellationMonitor(CancellationMonitor x)
x
- Used to detect the GUI user canceling all execution.void setListener(CompareSchemaListener listener)
listener
- A contract for the user and this code to interact.static void noCheckPointVerification()
void updateGuiAtACheckPoint(int check_point_number, String previous_name, String next_name) throws CompareSchemaException, CancelException
check_point_number
- One of many defined in the class Checkpoints.previous_name
- Used to verify a check point was not skipped and display this activity as completed.next_name
- Used to display the next activity as begun.
CompareSchemaException
- If there is an error during execution.
CancelException
- If the user canceled during execution.void updateGuiActivitySubject(String activity_name, String activity_subject_type, String activity_subject, int activity_subject_progress_min, int activity_subject_progress_current, int activity_subject_progress_max)
activity_name
- An activity that is a collection of activity_subjects that have already been counted.activity_subject_type
- A less active filed, used to group identical activity_subjects types.activity_subject
- A more active field used to identify the specific activity_subject.activity_subject_progress_min
- Typically equals zero.activity_subject_progress_current
- Highlight the space between the min and this current value.activity_subject_progress_max
- Keep un-highlighted the space between the current and max value.void updateGuiActivitySubject(String activity_name, String activity_subject_type, String activity_subject)
activity_name
- An activity that is a collection of activity_subjects, but they have not been counted.activity_subject_type
- A less active filed, used to group identical activity_subjects types.activity_subject
- A more active field used to identify the specific activity_subject.static void updateGuiAsCompleted() throws CompareSchemaException
CompareSchemaException
static void updateGuiWithSchemaResults(SchemaResults x) throws CompareSchemaException
CompareSchemaException
void testGuiForACancel() throws CompareSchemaException, CancelException
CompareSchemaException
- There was an error during execution.
CancelException
- The user canceled during execution.private void updateGuiAsCanceling() throws CancelException
CancelException
boolean getIsACancelRequested()
boolean getIsACancel()
void setIsACancel()
boolean getIsAnError()
private void setIsAnError()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |