wt.clients.prodmgmt
Class InstanceTaskPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.prodmgmt.HelperPanel
                  extended bywt.clients.prodmgmt.InstanceTaskPanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public class InstanceTaskPanel
extends HelperPanel

See Also:
Serialized Form

Nested Class Summary
(package private)  class InstanceTaskPanel.MSymAction
           
 
Nested classes inherited from class wt.clients.prodmgmt.HelperPanel
HelperPanel.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
(package private)  Panel attributesPanel
           
(package private)  PartAttributesPanel beanAttributesPanel
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
static int CREATE_MODE
           
private static boolean DEBUG
          Flag used to provide debugging messages.
protected  boolean disposeWindow
           
static int DUPLICATE_MODE
           
(package private)  Label header
           
(package private)  Button helpButton
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine2
           
(package private)  LifeCycleInfo lifeCycleInfoPanel
           
protected  int mode
           
private  MessageDialog msgbox
           
(package private)  Button okButton
           
private  WTProductInstance2 originalInstance
           
protected  boolean updateMode
           
 
Fields inherited from class wt.clients.prodmgmt.HelperPanel
resource, RESOURCE, SAVE, SET_CONFIGURATION_ITEM, SET_INSTANCE_ITEM, SET_PART_ITEM, threadGroup
 
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
InstanceTaskPanel()
          Create a PartTaskPanel.
 
Method Summary
 void addNotify()
          Override default behavior to initialize the help system when this method is invoked.
protected  void cancelButton_Action(ActionEvent event)
           
protected  boolean checkRequiredFields()
          Check if required fields have valid values.
protected  void enableCreateFields()
          Enable appropriate fields for creating a part.
 int getMode()
          Get the mode.
protected  void helpButton_Action(ActionEvent event)
           
protected  void initialize()
           
 void initializeHelp()
          Initialize the help system.
protected  void localize()
           
protected  void okButton_Action(ActionEvent event)
           
 void save()
          Start a new thread to save the modified part.
protected  void saveInThread()
          Perform the actions to the modified product instance
 void setInstanceItem()
          Set the InstanceItem to display and manipulate.
 void setInstanceItem(InstanceItem item)
          Set the InstanceItem to display and manipulate.
 void setMode(int aMode)
          Set the mode.
protected  void trace(String message)
           
protected  void updateColors(Color color)
           
 
Methods inherited from class wt.clients.prodmgmt.HelperPanel
getApplet, getConfigurationItem, getContext, getHelpBundleName, getHelpContext, getHelpSystem, getInstanceItem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getPartItem, getThreadGroup, initResources, setApplet, setConfigurationItem, setConfigurationItem, setContext, setHelpContext, setHelpSystem, setPartItem, setPartItem, setUpdateMode, showMessageDialog
 
Methods inherited from class java.awt.Panel
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, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, 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, setLayout, 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, setEnabled, 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
See Also:
Constant Field Values

DUPLICATE_MODE

public static final int DUPLICATE_MODE
See Also:
Constant Field Values

disposeWindow

protected boolean disposeWindow

updateMode

protected boolean updateMode

mode

protected int mode

originalInstance

private WTProductInstance2 originalInstance

DEBUG

private static boolean DEBUG
Flag used to provide debugging messages.


msgbox

private MessageDialog msgbox

attributesPanel

Panel attributesPanel

beanAttributesPanel

PartAttributesPanel beanAttributesPanel

lifeCycleInfoPanel

LifeCycleInfo lifeCycleInfoPanel

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

helpButton

Button helpButton

header

Label header

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2
Constructor Detail

InstanceTaskPanel

public InstanceTaskPanel()
Create a PartTaskPanel.

Method Detail

getMode

public int getMode()
Get the mode.

Returns:
this.CREATE_MODE or this.DUPLICATE_MODE

setMode

public void setMode(int aMode)
             throws PropertyVetoException
Set the mode.

Parameters:
aMode - the mode
Throws:
PropertyVetoException - if the mode is invalid.

addNotify

public void addNotify()
Override default behavior to initialize the help system when this method is invoked.


checkRequiredFields

protected boolean checkRequiredFields()
Check if required fields have valid values.

Returns:
true if the required fields have valid values.

enableCreateFields

protected void enableCreateFields()
Enable appropriate fields for creating a part.


setInstanceItem

public void setInstanceItem()
Set the InstanceItem to display and manipulate. This is a callback routine invoked by an internal thread.

Overrides:
setInstanceItem in class HelperPanel

setInstanceItem

public void setInstanceItem(InstanceItem item)
Set the InstanceItem to display and manipulate. This is a callback routine invoked by an internal thread.

Overrides:
setInstanceItem in class HelperPanel
Parameters:
item - the InstanceItem to contain

save

public void save()
Start a new thread to save the modified part.


saveInThread

protected void saveInThread()
Perform the actions to the modified product instance

Overrides:
saveInThread in class HelperPanel

initializeHelp

public void initializeHelp()
Initialize the help system.

Overrides:
initializeHelp in class HelperPanel

updateColors

protected void updateColors(Color color)

initialize

protected void initialize()

okButton_Action

protected void okButton_Action(ActionEvent event)

cancelButton_Action

protected void cancelButton_Action(ActionEvent event)

helpButton_Action

protected void helpButton_Action(ActionEvent event)

localize

protected void localize()
Overrides:
localize in class HelperPanel

trace

protected void trace(String message)