wt.clients.beans.lifecycle
Class LifeCycleInfo

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.beans.lifecycle.LifeCycleInfo
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class LifeCycleInfo
extends Panel

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

See Also:
Serialized Form

Nested Class Summary
 
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  boolean cardLayoutInitialized
           
static int CREATE_MODE
          Create Mode allows the user to assign a Life Cycle template and Project to a LifeCycleManaged object.
private  LayoutManager layout
           
(package private)  Label lifeCycleLabel
           
(package private)  LifeCyclePanel lifeCyclePanel1
           
private  ResourceBundle messagesResource
           
(package private)  Panel panel1
           
(package private)  Label projectLabel
           
(package private)  ProjectPanel projectPanel1
           
private static String RESOURCE
          Defined constant used for referencing the ResourceBundle class for this LifeCycleInfo
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.
private  int viewMode
           
 
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
LifeCycleInfo()
          Creates a LifeCycleInfo 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 object previously set by setObject.
 void assign(LifeCycleManaged an_object)
          Save the currently selected Life Cycle and Project in the specified LifeCycleManaged object.
 void clear()
          Reset the Project drop down list to the blank choice.
 LayoutManager getLayout()
          Gets the layout manager for this container.
private  ResourceBundle getMessagesResource()
          getMessagesResource gets the ResourceBundle used for providing localized error-messages and feedback.
 int getMode()
          Return the current mode.
 Dimension getPreferredSize()
          Gets the preferred size of this component.
private  void localize()
          Localizes the text in this container.
static void main(String[] args)
          A main test driver.
 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 setEnabled(boolean b)
          Enables components used by this Panel.
 void setLayout(LayoutManager mgr)
          Sets the layout manager for this container.
 void setMode(int mode)
          Set the mode to create, update or view.
 void setObject(LifeCycleManaged an_object)
          Set the LifeCycleManaged object.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATE_MODE

public static final int CREATE_MODE
Create Mode allows the user to assign a Life Cycle template and Project to a LifeCycleManaged object.

Supported API: true

See Also:
setMode(int), Constant Field Values

VIEW_MODE

public static final int VIEW_MODE
View Mode displays the name of the Project, Life Cycle template and Life Cycle state associated with a LifeCycleManaged object.

Supported API: true

See Also:
setMode(int), Constant Field Values

UPDATE_MODE

public static final int UPDATE_MODE
Update Mode allows the user to assign a Life Cycle template and Project to a LifeCycleManaged object.

Supported API: true

See Also:
setMode(int), Constant Field Values

RESOURCE

private static final String RESOURCE
Defined constant used for referencing the ResourceBundle class for this LifeCycleInfo

See Also:
Constant Field Values

cardLayoutInitialized

private boolean cardLayoutInitialized

viewMode

private int viewMode

messagesResource

private ResourceBundle messagesResource

layout

private LayoutManager layout

panel1

Panel panel1

lifeCycleLabel

Label lifeCycleLabel

lifeCyclePanel1

LifeCyclePanel lifeCyclePanel1

projectLabel

Label projectLabel

projectPanel1

ProjectPanel projectPanel1
Constructor Detail

LifeCycleInfo

public LifeCycleInfo()
Creates a LifeCycleInfo Panel. The default mode is CREATE_MODE.

Supported API: true

Method Detail

getPreferredSize

public Dimension getPreferredSize()
Gets the preferred size of this component.

Supported API: false


setEnabled

public void setEnabled(boolean b)
Enables components used by this Panel.

Supported API: false


setLayout

public void setLayout(LayoutManager mgr)
Sets the layout manager for this container.

Supported API: false


getLayout

public LayoutManager getLayout()
Gets the layout manager for this container.

Supported API: false


localize

private void localize()
Localizes the text in this container.

Supported API: false


getMessagesResource

private ResourceBundle getMessagesResource()
getMessagesResource gets the ResourceBundle used for providing localized error-messages and feedback.

Supported API: false

See Also:
ResourceBundle

addHelpListener

public void addHelpListener(PropertyChangeListener pcl)
Method 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.

Supported API: true

Parameters:
pcl - The PropertyChangeListener to be notified of PropertyChangeEvents generated by the help system.
See Also:
removeHelpListener(java.beans.PropertyChangeListener), HelpSystem, HelpContext, PropertyChangeListener

removeHelpListener

public void removeHelpListener(PropertyChangeListener pcl)
Method 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.

Supported API: true

Parameters:
pcl - the PropertyChangeListener to be removed as a listener of events generated by the help system of this panel.
See Also:
addHelpListener(java.beans.PropertyChangeListener), PropertyChangeListener

setClassName

public void setClassName(String a_class_name)
Set the class name used to obtain the list of Life Cycle choices. The class name must be a fully qualified class name for example wt.doc.WTDocument.

Supported API: true

Parameters:
a_class_name - A fully qualified class name.

setClass

public void setClass(Class a_class)
Set the class used to obtain the list of Life Cycle choices.

Supported API: true

Parameters:
a_class - The class of the object

setObject

public void setObject(LifeCycleManaged an_object)
Set the 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.

Supported API: true

Parameters:
an_object - The LifeCycleManaged object.

getMode

public int getMode()
Return the current mode.

Supported API: true

Returns:
the current mode
See Also:
CREATE_MODE, VIEW_MODE, UPDATE_MODE

setMode

public void setMode(int mode)
Set the mode to create, update or view.

Supported API: true

Parameters:
mode - either create or view
See Also:
CREATE_MODE, VIEW_MODE, UPDATE_MODE

assign

public void assign(LifeCycleManaged an_object)
Save the currently selected Life Cycle and Project in the specified LifeCycleManaged object.

Supported API: true

Parameters:
an_object - The object to update with the currently selected Life Cycle template.

assign

public void assign()
Save the currently selected Life Cycle template and Project in the LifeCycleManaged object previously set by setObject.

Supported API: true

See Also:
setObject

clear

public void clear()
Reset the Project drop down list to the blank choice.

Supported API: false


main

public static void main(String[] args)
A main test driver.

Supported API: false