wt.clients.replication.unit
Class UnitTaskPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.replication.unit.UnitHelperPanel
                  extended bywt.clients.replication.unit.UnitTaskPanel
All Implemented Interfaces:
Accessible, EventListener, FocusListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable

public class UnitTaskPanel
extends UnitHelperPanel
implements PropertyChangeListener, FocusListener

UnitTaskPanel is a view class for manipulating WTUnits. It can be used for creating, updating, and viewing a WTUnit.

Supported API: true

Extendable: false

See Also:
wt.replication.unit.WTUnit., Serialized Form

Nested Class Summary
(package private)  class UnitTaskPanel.SymAction
           
(package private)  class UnitTaskPanel.SymJCAction
           
(package private)  class UnitTaskPanel.SymMouse
           
 
Nested classes inherited from class wt.clients.replication.unit.UnitHelperPanel
UnitHelperPanel.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)  UnitAttributesPanel beanAttributesPanel
           
(package private)  symantec.itools.awt.shape.HorizontalLine bottomLine
           
(package private)  symantec.itools.awt.LabelButton browseButton
           
(package private)  Panel buttonPanel
           
(package private)  symantec.itools.awt.LabelButton cancelButton
           
(package private)  Panel cardPanel
           
(package private)  jclass.bwt.JCButton contentsButton
           
static int CREATE_MODE
           
(package private)  Panel createPanel
           
private  Font crossLocaleFont
           
private static boolean DEBUG
          Flag used to provide debugging messages.
(package private)  jclass.bwt.JCButton describedByButton
           
(package private)  DescribedByPanel describedByPanel
           
protected  boolean disposeWindow
           
(package private)  symantec.itools.awt.LabelButton helpButton
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
private static String IBA_RESOURCE
           
(package private)  jclass.bwt.JCButton ibaButton
           
(package private)  IBAContainerEditor ibaPanel
           
private static ResourceBundle ibaResource
           
(package private)  LifeCycleInfoWTUnit lifeCycleInfoPanel
           
(package private)  symantec.itools.awt.WrappingLabel locationLabel
           
(package private)  TextField locationTextField
           
private  String m_strDomain
           
protected  int mode
           
private  MessageDialog msgbox
           
(package private)  symantec.itools.awt.LabelButton okButton
           
(package private)  jclass.bwt.JCButton referencesButton
           
(package private)  Panel relationsPanel
           
(package private)  symantec.itools.awt.LabelButton saveButton
           
private  boolean SHOW_CONTENTS
           
(package private)  symantec.itools.awt.StatusBar statusBar
           
(package private)  Panel tabPanel
           
(package private)  symantec.itools.awt.shape.HorizontalLine topLine
           
private static String UNIT_CREATE_LIFECYCLE_STATE
           
private static String UNIT_CREATE_LIFECYCLE_TEMPLATE
           
static int UPDATE_MODE
           
protected  boolean updateMode
           
(package private)  jclass.bwt.JCButton usesButton
           
static int VIEW_MODE
           
(package private)  Choice viewChoice
           
(package private)  symantec.itools.awt.WrappingLabel viewLabel
           
(package private)  View[] views
           
(package private)  UnitPartPanel wtunitPartPanel
           
 
Fields inherited from class wt.clients.replication.unit.UnitHelperPanel
resource, RESOURCE, SAVE, SET_UNIT_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
UnitTaskPanel()
          Create a UnitTaskPanel.
 
Method Summary
protected  void addClassificationButtons()
           
 void addNotify()
          Override default behavior to initialize the help system when this method is invoked.
protected  void browseButton_Action(ActionEvent event)
           
protected  void cancelButton_Action(ActionEvent event)
           
protected  Folder checkFolderLocation()
           
protected  boolean checkRequiredFields()
          Check if required fields have valid values.
(package private)  void describedByButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
(package private)  void describedByButton_mousePressed(MouseEvent event)
           
protected  void enableCreateFields()
          Enable appropriate fields for creating a unit.
protected  void enableUpdateFields()
          Enable appropriate fields for updating a unit.
protected  void enableViewFields()
          Enable appropriate fields for viewing a unit.
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
protected  String getSourceClassName()
           
protected  String getTypeClassName()
           
 int getUpdateMode()
          Get the update mode.
protected  void helpButton_Action(ActionEvent event)
           
protected  void ibaButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
protected  void ibaButton_mousePressed(MouseEvent event)
           
protected  void initialize()
           
 void initializeHelp()
          Initialize the help system.
protected  void localize()
           
protected  void okButton_Action(ActionEvent event)
           
 void propertyChange(PropertyChangeEvent event)
          Update the status area with online help.
 void save()
          Start a new thread to save the modified part.
protected  void saveButton_Action(ActionEvent event)
           
protected  void saveInThread()
          Perform the actions to save the new or modified unit.
private  boolean saveWTUnit()
           
protected  void setMaxLengths()
           
private  void setStatusFlags()
           
 void setUnitItem()
          Set the UnitItem to display and manipulate.
 void setUpdateMode(int aMode)
          Set the update mode.
protected  void showDefaultPanel()
           
protected  void showDescribedByPanel()
           
protected  void showIBAPanel()
           
protected  void showUnitPartPanel()
           
protected  void trace(String message)
           
protected  void updateColors(Color color)
           
protected  void usesButton_actionPerformed(jclass.bwt.JCActionEvent event)
           
protected  void usesButton_mousePressed(MouseEvent event)
           
 
Methods inherited from class wt.clients.replication.unit.UnitHelperPanel
getApplet, getContext, getHelpBundleName, getHelpContext, getHelpSystem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getThreadGroup, getUnitItem, initResources, setApplet, setContext, setHelpContext, setHelpSystem, setUnitItem, 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

SHOW_CONTENTS

private boolean SHOW_CONTENTS

UPDATE_MODE

public static final int UPDATE_MODE
See Also:
Constant Field Values

CREATE_MODE

public static final int CREATE_MODE
See Also:
Constant Field Values

VIEW_MODE

public static final int VIEW_MODE
See Also:
Constant Field Values

disposeWindow

protected boolean disposeWindow

updateMode

protected boolean updateMode

mode

protected int mode

wtunitPartPanel

UnitPartPanel wtunitPartPanel

describedByPanel

DescribedByPanel describedByPanel

ibaPanel

IBAContainerEditor ibaPanel

views

View[] views

DEBUG

private static boolean DEBUG
Flag used to provide debugging messages.


IBA_RESOURCE

private static final String IBA_RESOURCE
See Also:
Constant Field Values

ibaResource

private static ResourceBundle ibaResource

crossLocaleFont

private Font crossLocaleFont

m_strDomain

private String m_strDomain

UNIT_CREATE_LIFECYCLE_TEMPLATE

private static String UNIT_CREATE_LIFECYCLE_TEMPLATE

UNIT_CREATE_LIFECYCLE_STATE

private static String UNIT_CREATE_LIFECYCLE_STATE

msgbox

private MessageDialog msgbox

lifeCycleInfoPanel

LifeCycleInfoWTUnit lifeCycleInfoPanel

attributesPanel

Panel attributesPanel

beanAttributesPanel

UnitAttributesPanel beanAttributesPanel

createPanel

Panel createPanel

viewLabel

symantec.itools.awt.WrappingLabel viewLabel

viewChoice

Choice viewChoice

locationLabel

symantec.itools.awt.WrappingLabel locationLabel

locationTextField

TextField locationTextField

browseButton

symantec.itools.awt.LabelButton browseButton

relationsPanel

Panel relationsPanel

topLine

symantec.itools.awt.shape.HorizontalLine topLine

tabPanel

Panel tabPanel

usesButton

jclass.bwt.JCButton usesButton

referencesButton

jclass.bwt.JCButton referencesButton

describedByButton

jclass.bwt.JCButton describedByButton

bottomLine

symantec.itools.awt.shape.HorizontalLine bottomLine

cardPanel

Panel cardPanel

buttonPanel

Panel buttonPanel

okButton

symantec.itools.awt.LabelButton okButton

saveButton

symantec.itools.awt.LabelButton saveButton

cancelButton

symantec.itools.awt.LabelButton cancelButton

helpButton

symantec.itools.awt.LabelButton helpButton

statusBar

symantec.itools.awt.StatusBar statusBar

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

ibaButton

jclass.bwt.JCButton ibaButton

contentsButton

jclass.bwt.JCButton contentsButton
Constructor Detail

UnitTaskPanel

public UnitTaskPanel()
Create a UnitTaskPanel.

Method Detail

getUpdateMode

public int getUpdateMode()
Get the update mode.

Returns:
this.UPDATE_MODE, this.VIEW_MODE, or this.CREATE_MODE

setUpdateMode

public void setUpdateMode(int aMode)
                   throws PropertyVetoException
Set the update mode. Setting the update changes the fields displayed and controls whether they are view only or editable.

Parameters:
aMode - the new update 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.

Overrides:
addNotify in class UnitHelperPanel

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 unit.


enableViewFields

protected void enableViewFields()
Enable appropriate fields for viewing a unit.


enableUpdateFields

protected void enableUpdateFields()
Enable appropriate fields for updating a unit.


setUnitItem

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

Overrides:
setUnitItem in class UnitHelperPanel

save

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


saveInThread

protected void saveInThread()
Perform the actions to save the new or modified unit.

Overrides:
saveInThread in class UnitHelperPanel

saveWTUnit

private boolean saveWTUnit()
                    throws WTPropertyVetoException,
                           WTException
Throws:
WTPropertyVetoException
WTException

setStatusFlags

private void setStatusFlags()
                     throws WTException
Throws:
WTException

initializeHelp

public void initializeHelp()
Initialize the help system.

Overrides:
initializeHelp in class UnitHelperPanel

propertyChange

public void propertyChange(PropertyChangeEvent event)
Update the status area with online help.

Specified by:
propertyChange in interface PropertyChangeListener

updateColors

protected void updateColors(Color color)

initialize

protected void initialize()

showDefaultPanel

protected void showDefaultPanel()

showUnitPartPanel

protected void showUnitPartPanel()

usesButton_actionPerformed

protected void usesButton_actionPerformed(jclass.bwt.JCActionEvent event)

describedByButton_actionPerformed

void describedByButton_actionPerformed(jclass.bwt.JCActionEvent event)

showDescribedByPanel

protected void showDescribedByPanel()

okButton_Action

protected void okButton_Action(ActionEvent event)

saveButton_Action

protected void saveButton_Action(ActionEvent event)

cancelButton_Action

protected void cancelButton_Action(ActionEvent event)

helpButton_Action

protected void helpButton_Action(ActionEvent event)

browseButton_Action

protected void browseButton_Action(ActionEvent event)

checkFolderLocation

protected Folder checkFolderLocation()
                              throws WTException
Throws:
WTException

localize

protected void localize()
Overrides:
localize in class UnitHelperPanel

setMaxLengths

protected void setMaxLengths()

getSourceClassName

protected String getSourceClassName()

getTypeClassName

protected String getTypeClassName()

usesButton_mousePressed

protected void usesButton_mousePressed(MouseEvent event)

describedByButton_mousePressed

void describedByButton_mousePressed(MouseEvent event)

ibaButton_actionPerformed

protected void ibaButton_actionPerformed(jclass.bwt.JCActionEvent event)

ibaButton_mousePressed

protected void ibaButton_mousePressed(MouseEvent event)

addClassificationButtons

protected void addClassificationButtons()

showIBAPanel

protected void showIBAPanel()

trace

protected void trace(String message)

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener