|
|||||||||
| 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.LifeCycleInfoWTUnit
public class LifeCycleInfoWTUnit
Class LifeCycleInfo is a Panel which
supplies the functionality to assign a Project and Life Cycle template to
a LifeCycleManaged object. LifeCycleInfo
provides create, view and update modes.
The create and update modes provide components for obtaining a Life Cycle template and Project. Components used for obtaining a Life Cycle from the user include a Life Cycle label, choice box, and browse button for finding and selecting a Life Cycle template. Components used for obtaining a a Project from the user include a Project label, choice box, and browse button for finding and selecting a Project.
The view mode of LifeCycleInfo consists of a Life Cycle label, current
Life Cycle template name, Life Cycle state label, current Life Cycle
state value, Project label, and current Project value.
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 Life Cycle template and Project to a LifeCycleManaged object. |
static int |
UPDATE_MODE
Update Mode allows the user to assign a Life Cycle template and Project to a LifeCycleManaged object. |
static int |
VIEW_MODE
View Mode displays the name of the Project, Life Cycle template and Life Cycle state 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 | |
|---|---|
LifeCycleInfoWTUnit()
Creates a LifeCycleInfoWTUnit Panel. |
|
| 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 Life Cycle template and Project in the LifeCycleManaged |
void |
assign(wt.lifecycle.LifeCycleManaged an_object)
Save the currently selected Life Cycle and Project in the specified LifeCycleManaged |
int |
getMode()
Return the current mode. |
void |
removeHelpListener(PropertyChangeListener pcl)
Method removeHelpListener removes a listener which was being
notified of PropertyChangeEvents in the help system. |
void |
setClass(Class a_class)
Set the class used to obtain the list of Life Cycle choices. |
void |
setClassName(String a_class_name)
Set the class name used to obtain the list of Life Cycle choices. |
void |
setMode(int mode)
Set the mode to create, update or view. |
void |
setObject(wt.lifecycle.LifeCycleManaged an_object)
Set the LifeCycleManaged object. |
| Methods inherited from class java.awt.Panel |
|---|
addNotify, 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.
setMode(int),
Constant Field Valuespublic static final int VIEW_MODE
setMode(int),
Constant Field Valuespublic static final int UPDATE_MODE
LifeCycleManaged object.
setMode(int),
Constant Field Values| Constructor Detail |
|---|
public LifeCycleInfoWTUnit()
LifeCycleInfoWTUnit Panel. The default mode is
CREATE_MODE.
| Method Detail |
|---|
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 setClassName(String a_class_name)
a_class_name - A fully qualified class name.public void setClass(Class a_class)
a_class - The class of the objectpublic void setObject(wt.lifecycle.LifeCycleManaged an_object)
LifeCycleManaged object. The object is used to
initialize the Life Cycle and Project choice lists as well as the
attribute values displayed in view mode.
an_object - The LifeCycleManaged object.public int getMode()
CREATE_MODE,
VIEW_MODE,
UPDATE_MODEpublic void setMode(int mode)
mode - either create or viewCREATE_MODE,
VIEW_MODE,
UPDATE_MODEpublic void assign(wt.lifecycle.LifeCycleManaged an_object)
LifeCycleManaged object.
Supported API: true
- Parameters:
an_object - The object to update with the currently selected
Life Cycle template.
public void assign()
LifeCycleManaged object previously set by
setObject.
Supported API: true
- See Also:
setObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||