|
|||||||||
| 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.Panel
wt.clients.beans.lifecycle.ProjectPanel
public class ProjectPanel
Class ProjectPanel is a Panel which
supplies the functionality to assign a project to
LifeCycleManaged objects. ProjectPanel
provides both create and view modes.
The create mode is comprised of an optional Project label, choicebox, and browse button for finding and selecting a Project.
The view mode displays the Project value associated with a
LifeCycleManaged object.
Supported API: true
Extendable: true
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
CREATE_MODE
Create Mode allows the user to assign a Project to a LifeCycleManaged object, a Project label is displayed
to the left of the choice box. |
static int |
NO_LABEL_CREATE_MODE
No Label Create Mode allows the user to assign a Project to a LifeCycleManaged object. |
static int |
NO_LABEL_UPDATE_MODE
No Label Update Mode displays the project associated with a LifeCycleManaged object.When using this mode the Project label is omitted from the display. |
static int |
NO_LABEL_VIEW_MODE
No Label View Mode displays the project associated with a LifeCycleManaged object. |
static int |
UPDATE_MODE
No Label Update Mode allows the user to assign a Project to a LifeCycleManaged object. |
static int |
VIEW_MODE
View Mode displays the name of the Project associated with a LifeCycleManaged object. |
| 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 | |
|---|---|
ProjectPanel()
Creates a ProjectPanel. |
|
ProjectPanel(WTContainerRef aContext)
Creates a ProjectPanel. |
|
| Method Summary | |
|---|---|
void |
addHelpListener(PropertyChangeListener pcl)
Method addHelpListener adds the given listener to be notified
of PropertyChangeEvents in the help system. |
void |
assign()
Save the currently selected project in the LifeCycleManaged |
void |
assign(wt.lifecycle.LifeCycleManaged an_object)
Save the currently selected project in the object. |
void |
clear()
Reset the project drop down list to the blank choice. |
int |
getMode()
Return the current mode. |
wt.team.TeamTemplateReference |
getSelectedTeamTemplate()
Get the currently selected team template reference. |
void |
removeHelpListener(PropertyChangeListener pcl)
Method removeHelpListener removes a listener which was being
notified of PropertyChangeEvents in the help system. |
void |
setDefaultChoice(String teamTemplateString)
Manually override initial project selected in the drop down list. |
void |
setMode(int mode)
Set the mode to either create or view. |
void |
setObject(wt.lifecycle.LifeCycleManaged an_object)
This method will set the object to be used when initializing the project choice list and project display value. |
| Methods inherited from class java.awt.Panel |
|---|
getAccessibleContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CREATE_MODE
LifeCycleManaged object, a Project label is displayed
to the left of the choice box.
setMode(int),
getMode(),
Constant Field Valuespublic static final int VIEW_MODE
setMode(int),
getMode(),
Constant Field Valuespublic static final int NO_LABEL_CREATE_MODE
LifeCycleManaged object. When using this mode the Project
label is omitted from the display.
setMode(int),
getMode(),
Constant Field Valuespublic static final int NO_LABEL_VIEW_MODE
setMode(int),
getMode(),
Constant Field Valuespublic static final int UPDATE_MODE
LifeCycleManaged object. When using this mode the Project
label is omitted from the display.
setMode(int),
getMode(),
Constant Field Valuespublic static final int NO_LABEL_UPDATE_MODE
setMode(int),
getMode(),
Constant Field Values| Constructor Detail |
|---|
public ProjectPanel()
ProjectPanel. The default mode is
CREATE_MODE.
public ProjectPanel(WTContainerRef aContext)
ProjectPanel. The default mode is
CREATE_MODE.
aContext - the container to use for searching team templates.| Method Detail |
|---|
public void clear()
public int getMode()
CREATE_MODE,
VIEW_MODE,
NO_LABEL_CREATE_MODE,
UPDATE_MODE,
NO_LABEL_UPDATE_MODEpublic void setMode(int mode)
mode - either create or viewCREATE_MODE,
VIEW_MODE,
NO_LABEL_CREATE_MODE,
UPDATE_MODE,
NO_LABEL_UPDATE_MODEpublic wt.team.TeamTemplateReference getSelectedTeamTemplate()
public void setObject(wt.lifecycle.LifeCycleManaged an_object)
an_object - The LifeCycleManaged object to obtain and set
the project to/from.public void assign(wt.lifecycle.LifeCycleManaged an_object)
an_object - The LifeCycleManaged object to set the current
project value into.public void assign()
LifeCycleManaged object previously set by setObject.
Supported API: true
- See Also:
setObject(wt.lifecycle.LifeCycleManaged)
public void addHelpListener(PropertyChangeListener pcl)
addHelpListener adds the given listener to be notified
of PropertyChangeEvents in the help system. Tool description
PropertyChangeEvents are generated when the user mouses over
the buttons and list of ContentItems in this panel. The
given listener will be notified of those events.
pcl - The PropertyChangeListener to be notified of
PropertyChangeEvents generated by the help system.removeHelpListener(java.beans.PropertyChangeListener),
HelpSystem,
HelpContext,
PropertyChangeListenerpublic void removeHelpListener(PropertyChangeListener pcl)
removeHelpListener removes a listener which was being
notified of PropertyChangeEvents in the help system. If
the given listener is not currently a listener, no changes are made.
pcl - the PropertyChangeListener to be removed as a
listener of events generated by the help system of this panel.addHelpListener(java.beans.PropertyChangeListener),
PropertyChangeListenerpublic void setDefaultChoice(String teamTemplateString)
lctString - a string representing the life cycle template to be the default
choice
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||