|
|||||||||||
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
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 | |
(package private) class |
ProjectPanel.SymAction
This class listens for ActionEvents of the
screen Components and calls
the appropriate method for the action. |
(package private) class |
ProjectPanel.WorkThread
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
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 LifeCycleManaged |
anObject
|
(package private) Button |
browseButton
|
private boolean |
cardLayoutInitialized
|
private static WTContainerRef |
context
|
private String |
CREATE_CARD
|
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. |
(package private) Choice |
createChoice
|
(package private) Label |
createLabel
|
(package private) Panel |
createPanel
|
private String |
defaultProjectChoice
|
private static String |
EMPTY_STRING
|
private boolean |
enabledState
|
private static String |
HELP_RESOURCE
|
private static String |
HELP_TARGET
Defined constant String which defines the name of the browser
window to launch online help in. |
private NFHelpContext |
helpContext
|
private NFHelpSystem |
helpSystem
|
(package private) static int |
INIT_CHOICE_LIST
|
private boolean |
initialized
|
private boolean |
initReady
|
private Hashtable |
initThreadHash
|
private LayoutManager |
layout
|
private ResourceBundle |
messagesResource
|
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. |
private boolean |
notifyDone
|
(package private) static int |
PROCESS_BROWSE
|
private static String |
PROJECT
|
private static String |
RESOURCE
Defined constant used for referencing the ResourceBundle
class for this LifeCyclePanel . |
private static String |
TEAMTEMPLATE
|
private Hashtable |
teamTemplates
|
protected ThreadGroup |
theThreadGroup
|
static int |
UPDATE_MODE
No Label Update Mode allows the user to assign a Project to a LifeCycleManaged object. |
private boolean |
verbose
|
private String |
VIEW_CARD
|
static int |
VIEW_MODE
View Mode displays the name of the Project associated with a LifeCycleManaged object. |
(package private) Label |
viewLabel
|
(package private) Label |
viewLabelValue
|
private int |
viewMode
|
(package private) Panel |
viewPanel
|
Fields inherited from class java.awt.Panel |
|
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 | |
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 |
addNotify()
Notifies this component that it has been added to a container and if a peer is required, it should be created. |
protected void |
addTeamTemplate(TeamTemplateReference teamTemplateRef)
Add a team template to the choice list. |
void |
assign()
Save the currently selected project in the LifeCycleManaged |
void |
assign(LifeCycleManaged an_object)
Save the currently selected project in the object. |
(package private) void |
browseButton_ActionPerformed(ActionEvent event)
This method is called when the browse button has been pressed. |
void |
clear()
Reset the project drop down list to the blank choice. |
void |
enableChoice(boolean b)
Enables/disables Project listbox |
static WTContainerRef |
getContext()
|
NFHelpContext |
getHelpContext()
Returns the help context. |
private NFHelpSystem |
getHelpSystem()
The work thread for this Applet. |
LayoutManager |
getLayout(LayoutManager mgr)
Gets the layout manager for this container. |
protected ResourceBundle |
getMessagesResource()
getMessagesResource gets the ResourceBundle
used for providing localized error-messages and feedback. |
int |
getMode()
Return the current mode. |
TeamTemplateReference |
getSelectedTeamTemplate()
Get the currently selected team template reference. |
private TeamTemplateReference |
getTeamTemplate(LifeCycleManaged an_object)
Get the teamTemplate reference associated with the specified object. |
private void |
initChoiceList()
Spin off a thread to initialize the choice list. |
private void |
initValues()
If an object has been set, set the text for project value. |
private boolean |
inUpdateMode()
Return true if in update mode, otherwise false. |
boolean |
isInitialized()
|
private void |
localize()
Localizes the text in this container. |
static void |
main(String[] args)
A main test driver. |
private void |
processBrowse()
When the Browse button is pressed bring up a dialog box to allow the user to select a project location. |
private void |
processInitChoiceList()
Initialize the drop down list with available project choices. |
void |
removeHelpListener(PropertyChangeListener pcl)
Method removeHelpListener removes a listener which was being
notified of PropertyChangeEvents in the help system. |
void |
removeNotify()
Notifies this component that it has been removed from its container and if a peers exists, it destroys it. |
void |
setDefaultChoice(String teamTemplateString)
Manually override initial project selected in the drop down list. |
void |
setEnabled(boolean b)
Enables components used by this Panel . |
(package private) void |
setInitialized(boolean initialized)
|
void |
setLayout(LayoutManager mgr)
Sets the layout manager for this container. |
void |
setMode(int mode)
Set the mode to either create or view. |
void |
setObject(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 Valuesprivate static final String EMPTY_STRING
static final int PROCESS_BROWSE
static final int INIT_CHOICE_LIST
private static final String RESOURCE
ResourceBundle
class for this LifeCyclePanel
.
private String VIEW_CARD
private String CREATE_CARD
private int viewMode
private static final String HELP_RESOURCE
private NFHelpSystem helpSystem
private NFHelpContext helpContext
private LayoutManager layout
private static final String PROJECT
private static final String TEAMTEMPLATE
private static WTContainerRef context
private static final String HELP_TARGET
String
which defines the name of the browser
window to launch online help in.
private boolean notifyDone
private boolean initReady
private Hashtable teamTemplates
private LifeCycleManaged anObject
private boolean cardLayoutInitialized
protected ThreadGroup theThreadGroup
private ResourceBundle messagesResource
private boolean verbose
private boolean enabledState
private String defaultProjectChoice
private boolean initialized
private Hashtable initThreadHash
Panel createPanel
Label createLabel
Choice createChoice
Button browseButton
Panel viewPanel
Label viewLabel
Label viewLabelValue
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 removeNotify()
public void addNotify()
private void localize()
protected ResourceBundle getMessagesResource()
getMessagesResource
gets the ResourceBundle
used for providing localized error-messages and feedback.
ResourceBundle
public NFHelpContext getHelpContext()
public void setLayout(LayoutManager mgr)
public LayoutManager getLayout(LayoutManager mgr)
public void setEnabled(boolean b)
Panel
.
protected void addTeamTemplate(TeamTemplateReference teamTemplateRef) throws Exception
teamTemplateRef
- a reference to the teamTemplate being added.
Exception
public void clear()
private void initValues()
private void initChoiceList()
private boolean inUpdateMode()
private void processInitChoiceList()
public int getMode()
CREATE_MODE
,
VIEW_MODE
,
NO_LABEL_CREATE_MODE
,
UPDATE_MODE
,
NO_LABEL_UPDATE_MODE
public void setMode(int mode)
mode
- either create or viewCREATE_MODE
,
VIEW_MODE
,
NO_LABEL_CREATE_MODE
,
UPDATE_MODE
,
NO_LABEL_UPDATE_MODE
public TeamTemplateReference getSelectedTeamTemplate()
private TeamTemplateReference getTeamTemplate(LifeCycleManaged an_object)
an_object
- the object whose project will be returned
TeamTemplateReference
associated with the
specified object.public void setObject(LifeCycleManaged an_object)
an_object
- The LifeCycleManaged object to obtain and set
the project to/from.
public void assign(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)
private NFHelpSystem getHelpSystem()
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
,
PropertyChangeListener
public 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)
,
PropertyChangeListener
private void processBrowse()
void setInitialized(boolean initialized)
public boolean isInitialized()
void browseButton_ActionPerformed(ActionEvent event)
public void enableChoice(boolean b)
public static void main(String[] args)
public void setDefaultChoice(String teamTemplateString)
public static WTContainerRef getContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |