|
|||||||||||
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.Frame
wt.clients.project.ProjectDefinitionFrame
This frame constitutes the "Create Project," "Update Project," and "View Project" windows which the user invokes through Life Cycle Administration. Both the Windchill Explorer and wt.clients.project.ProjectAdminApplet invoke this frame.
Nested Class Summary | |
(package private) class |
ProjectDefinitionFrame.SymAction
Inner class extension of java.awt.event.ActionListener class to handle AWT action event handling. |
(package private) class |
ProjectDefinitionFrame.SymKey
Inner class extension of java.awt.event.KeyAdapter class to handle AWT keyboard event handling. |
(package private) class |
ProjectDefinitionFrame.SymWindow
Inner class extension of java.awt.event.WindowAdapter to handle window closing. |
(package private) class |
ProjectDefinitionFrame.WorkThread
The work thread for this Frame. |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
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 | |
(package private) Applet |
applet
|
(package private) static int |
BROWSE_FOLDER
|
(package private) Button |
buttonCancel
|
(package private) Button |
buttonHelp
|
(package private) Button |
buttonLocation
|
(package private) Button |
buttonOK
|
(package private) Button |
buttonSave
|
(package private) static int |
CANCEL_CPROJECT
|
(package private) WTContainerRef |
context
|
(package private) static int |
COPY_FROM
|
(package private) Button |
copyFrom
|
protected boolean |
createMode
|
(package private) CProject |
currentCProject
|
(package private) Checkbox |
enabled
|
(package private) boolean |
fComponentsAdjusted
Used for addNotify check. |
(package private) NFHelpContext |
helpContextMain
|
(package private) NFHelpContext |
helpContextRole
|
private static String |
HELPRBNAME
|
private HelpSystem |
helpSystem
|
private static String |
HELPSYSTEM_HELP_FRAME
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
(package private) Label |
labelDescriptionLeft
|
(package private) Label |
labelLocation
|
(package private) Label |
labelProjectName
|
(package private) static int |
LAUNCH_HELP
|
(package private) static int |
OK_CPROJECT
|
private String |
origFolder
|
private boolean |
origFolderVarSet
|
(package private) Panel |
panelButtons
|
(package private) Panel |
panelCenter
|
(package private) Panel |
panelProjectDetail
|
(package private) RolePanel |
panelRolePanel
|
(package private) Panel |
panelSouth
|
private ResourceBundle |
rb
|
private ResourceBundle |
rbHelp
|
private static String |
RBNAME
|
(package private) static int |
SAVE_CPROJECT
|
private Project |
startingProject
|
(package private) symantec.itools.awt.StatusBar |
statusBar
|
private TeamTemplateReference |
teamTemplateReference
|
(package private) TextField |
textDescription
|
(package private) TextField |
textLocation
|
(package private) TextField |
textProject
|
protected boolean |
updateMode
|
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
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 | |
ProjectDefinitionFrame()
Class constructor. |
|
ProjectDefinitionFrame(CProject currentCProject)
Class constructor taking a CProject. |
|
ProjectDefinitionFrame(CProject currentCProject,
TeamTemplateReference teamTempRef)
Class constructor taking a CProject and TeamTemplateReference. |
Method Summary | |
private void |
addMappingsToTeamTemplate(Role role,
Enumeration princEnum,
Enumeration actorEnum)
Add all the roles mappings to the team template |
void |
addNotify()
Override of java.awt.Frame.addNotify method. |
protected void |
browseFolder()
Sets the folder this Project will live in. |
(package private) void |
buttonCancel_Action(ActionEvent event)
Action performed when Cancel button is invoked. |
(package private) void |
buttonCancel_KeyPress(KeyEvent event)
Invoke Cancel action if Enter key is pressed when focus is on that button. |
(package private) void |
buttonHelp_ActionPerformed(ActionEvent event)
Action performed when Help button is invoked. |
(package private) void |
buttonHelp_KeyPress(KeyEvent event)
Invoke Help action if Enter key is pressed when focus is on that button. |
(package private) void |
buttonLocation_Action(ActionEvent event)
Action performed when Browse button is invoked. |
(package private) void |
buttonLocation_KeyPress(KeyEvent event)
Invoke Browse action if Enter key is pressed when focus is on that button. |
(package private) void |
buttonOK_Action(ActionEvent event)
Action performed when Ok button is invoked. |
(package private) void |
buttonOK_KeyPress(KeyEvent event)
Invoke Ok action if Enter key is pressed when focus is on Ok button. |
(package private) void |
buttonSave_Action(ActionEvent event)
Action performed when Save button is invoked. |
(package private) void |
buttonSave_KeyPress(KeyEvent event)
Invoke Save action if Enter key is pressed when focus is on that button. |
private void |
cancelCProject()
Destroy the frame without saving the project. |
(package private) void |
copyFrom_Action(ActionEvent event)
|
(package private) void |
copyFrom_KeyPress(KeyEvent event)
Invoke copyFrom action if Enter key is pressed when focus is on that button. |
protected void |
copyFrom()
Searches for a Project object to copy from |
private boolean |
descriptionValidate(String a_Description)
|
private Cabinet[] |
findCabinets(AccessPermission permission)
|
(package private) void |
Frame1_WindowClosing(WindowEvent event)
Gracefully close the frame. |
Applet |
getApplet()
Returns the Applet which owns this frame. |
Locale |
getLocale()
|
private void |
initializeContext()
|
(package private) void |
initializeHelp()
Initilize contextual help for this frame |
private void |
launchHelp()
Launch the help screen in a seperate browser window. |
private void |
localize()
Localize the Applet AWT components using the wt.clients.project.ProjectRB resource bundle. |
private boolean |
locationValidate(String location)
|
private boolean |
nameValidate(String a_Name)
|
(package private) boolean |
obtainProperties()
Obtain the project properties from the AWT components and set the properties on the current CProject |
private boolean |
okCProject()
Save the current project to the database and destroy the Frame. |
void |
populateProjectDetail()
Populate the AWT components with project properties from the current CProject |
void |
propertyChange(PropertyChangeEvent event)
Update the status area with online help. |
private void |
removeMappingsToTeamTemplate(Role role,
Enumeration princEnum,
Enumeration actorEnum)
Remove the mappings to the team template |
private void |
saveCProject()
Save the current project to the database. |
private boolean |
saveTeamTemplate()
SaveRolePrincipalMappings |
void |
setApplet(Applet applet)
Set the Applet which owns this frame. |
void |
setCurrentCProject(CProject currentCProjectObject)
Set the current CProject for this frame. |
void |
setUpdateMode(boolean updateModeValue)
Sets the update mode for the frame. |
void |
show()
Override of java.awt.Frame.show method to make the frame visible. |
private boolean |
templateInContext(TeamTemplate template)
|
private void |
throwException(String bundle,
String key)
|
Methods inherited from class java.awt.Frame |
finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
static final int SAVE_CPROJECT
static final int OK_CPROJECT
static final int CANCEL_CPROJECT
static final int LAUNCH_HELP
static final int BROWSE_FOLDER
static final int COPY_FROM
private HelpSystem helpSystem
NFHelpContext helpContextMain
NFHelpContext helpContextRole
private static String RBNAME
private ResourceBundle rb
private static String HELPRBNAME
private ResourceBundle rbHelp
private static String HELPSYSTEM_HELP_FRAME
private String origFolder
private boolean origFolderVarSet
Applet applet
private Project startingProject
private TeamTemplateReference teamTemplateReference
WTContainerRef context
boolean fComponentsAdjusted
Panel panelProjectDetail
Label labelProjectName
TextField textProject
Button copyFrom
Checkbox enabled
Label labelLocation
Button buttonLocation
TextField textLocation
Label labelDescriptionLeft
TextField textDescription
Panel panelCenter
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel panelSouth
Panel panelButtons
Button buttonOK
Button buttonSave
Button buttonCancel
Button buttonHelp
symantec.itools.awt.StatusBar statusBar
protected boolean updateMode
protected boolean createMode
RolePanel panelRolePanel
CProject currentCProject
Constructor Detail |
public ProjectDefinitionFrame()
public ProjectDefinitionFrame(CProject currentCProject)
currentCProject
- A CProject object.public ProjectDefinitionFrame(CProject currentCProject, TeamTemplateReference teamTempRef)
currentCProject
- A CProject object.teamTempRef
- A reference to the TeamTemplate being updated.Method Detail |
private void localize()
public void show()
public void addNotify()
private void saveCProject()
private boolean saveTeamTemplate() throws WTException
WTException
private void addMappingsToTeamTemplate(Role role, Enumeration princEnum, Enumeration actorEnum)
private void removeMappingsToTeamTemplate(Role role, Enumeration princEnum, Enumeration actorEnum)
private boolean okCProject()
protected void browseFolder() throws WTException
WTException
protected void copyFrom() throws WTException
WTException
private Cabinet[] findCabinets(AccessPermission permission) throws WTException
WTException
boolean obtainProperties() throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void cancelCProject()
private void launchHelp()
public void setUpdateMode(boolean updateModeValue)
updateModeValue
- true if updateable, false otherwise.public void populateProjectDetail()
public void setCurrentCProject(CProject currentCProjectObject)
currentCProjectObject
- A CProject object.public void setApplet(Applet applet)
applet
- An Applet object.public Applet getApplet()
void initializeHelp()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
void Frame1_WindowClosing(WindowEvent event)
void buttonCancel_Action(ActionEvent event)
event
- An AWT event related to invoking the Cancel button.void buttonOK_Action(ActionEvent event)
event
- An AWT event related to invoking the Ok button.void buttonSave_Action(ActionEvent event)
event
- An AWT event related to invoking the Save button.void buttonHelp_ActionPerformed(ActionEvent event)
event
- An AWT event related to invoking the Help button.void buttonLocation_Action(ActionEvent event)
event
- An AWT event related to invoking the Browse button.void buttonOK_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void buttonSave_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void buttonCancel_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void buttonHelp_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void buttonLocation_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void copyFrom_KeyPress(KeyEvent event)
event
- An AWT keyEvent.void copyFrom_Action(ActionEvent event)
public Locale getLocale()
private boolean templateInContext(TeamTemplate template)
private boolean locationValidate(String location) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private boolean nameValidate(String a_Name)
private boolean descriptionValidate(String a_Description)
private void throwException(String bundle, String key)
private void initializeContext() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |