wt.clients.replication.unit
Class ConfigSpecPanel

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

public class ConfigSpecPanel
extends HelperPanel

See Also:
Serialized Form

Nested Class Summary
 class ConfigSpecPanel.ConfigItemListener
          This class listens for the user to select a ConfigurationItem and adds it to the configItemTextField.
(package private)  class ConfigSpecPanel.SearchBaselineListener
          WorkThread is used to do persistence related activities outside of the AWT Thread.
(package private)  class ConfigSpecPanel.SymAction
           
(package private)  class ConfigSpecPanel.SymFocus
           
(package private)  class ConfigSpecPanel.SymItem
           
 
Nested classes inherited from class wt.clients.replication.unit.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)  symantec.itools.awt.WrappingLabel baselineNameStaticLabel
           
(package private)  TextField baselineNameTextField
           
(package private)  Checkbox baselineRadioButton
           
(package private)  symantec.itools.awt.LabelButton baselineSearchButton
           
private  boolean baselineValidated
           
protected static String BLANK_CHOICE
           
(package private)  Checkbox checkboxCheckedOut
           
(package private)  EnumeratedChoice choiceState
           
(package private)  ViewChoice choiceView
           
(package private)  symantec.itools.awt.LabelButton configItemSearchButton
           
(package private)  TextField configItemTextField
           
private  boolean configItemValidated
           
private  ConfigSpecItem configSpecItem
           
private  Font crossLocaleFont
           
(package private)  TextField effectiveDateTextField
           
(package private)  Checkbox effectivityRadioButton
           
(package private)  ViewChoice effectivityViewChoice
           
(package private)  CheckboxGroup Group1
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine2
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine3
           
(package private)  symantec.itools.awt.WrappingLabel labelConfigurationItem
           
(package private)  symantec.itools.awt.WrappingLabel labelEffectiveDate
           
(package private)  symantec.itools.awt.WrappingLabel labelState
           
(package private)  symantec.itools.awt.WrappingLabel labelType
           
(package private)  symantec.itools.awt.WrappingLabel labelTypeValue
           
(package private)  symantec.itools.awt.WrappingLabel labelValue
           
(package private)  symantec.itools.awt.WrappingLabel labelView
           
(package private)  symantec.itools.awt.WrappingLabel labelView2
           
(package private) static int POPULATE
          Constant for populating the panel
private  ResourceBundle RB
           
static String RESOURCE
           
(package private)  Checkbox saveCheckbox
           
static String STATUSMESSAGE
          Constant to indicate Status messages.
private  String statusText
           
(package private)  TextField valueTextField
           
(package private)  Checkbox versionRadioButton
           
 
Fields inherited from class wt.clients.replication.unit.HelperPanel
resource, SAVE, 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
ConfigSpecPanel()
          Construct a default ConfigSpecPanel.
 
Method Summary
(package private)  void baselineRadioButton_ItemStateChanged(ItemEvent event)
           
(package private)  void baselineSearchButtion_ActionPerformed(ActionEvent event)
           
(package private)  void baselineTextField_FocusLost(FocusEvent event)
           
(package private)  void configItemSearchButton_ActionPerformed(ActionEvent event)
           
(package private)  void configItemTextField_FocusLost(FocusEvent event)
           
(package private)  void effectivityRadioButton_ItemStateChanged(ItemEvent event)
           
protected  void enableBaselineFields(boolean flag)
           
protected  void enableEffectivityFields(boolean flag)
           
protected  void enableStandardFields(boolean flag)
           
 String formatDate(Date date)
           
 ConfigSpecItem getConfigSpecItem()
          Return the ConfigSpecItem being manipulated.
 HelpContext getHelpContext()
          Return the help context for this component
protected  State getState()
          Get the state from the choice list.
 String getStatusText()
          Get the text to display in the status area Unused since the status area was eliminated in the ConfigSpecDialog.
 void initialize()
          Initialize the panel.
 void initializeHelp()
          Initialize the help system for this component.
 void localize()
           
 Timestamp parseDate(String date_string)
           
 void populate()
          Populate the display components based on the contained ConfigSpecItem
 void save()
          Save the current ConfigSpecItem
private  void setBaseline(ManagedBaseline baseline)
          Set the baseline.
private  void setConfigItem(ConfigurationItem ci)
           
 void setConfigSpecItem(ConfigSpecItem specItem)
          Set the ConfigSpecItem to manipulate.
 void setHelpContext(HelpContext aHelpContext)
          Set the help context for this componet.
 void setHelpSystem(HelpSystem aHelpSystem)
          Set the help system for this componet.
private  void setStatusText(String text)
          Set the text to display in the status area Unused since the status area was eliminated in the ConfigSpecDialog.
(package private)  void versionRadioButton_ItemStateChanged(ItemEvent event)
           
 
Methods inherited from class wt.clients.replication.unit.HelperPanel
addNotify, getApplet, getContext, getHelpBundleName, getHelpSystem, getLabelsRB, getLocalizedMessage, getLocalizedValue, getParentFrame, getPartItem, getThreadGroup, initResources, saveInThread, setApplet, setContext, 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

RESOURCE

public static String RESOURCE

STATUSMESSAGE

public static String STATUSMESSAGE
Constant to indicate Status messages.


POPULATE

static final int POPULATE
Constant for populating the panel

See Also:
Constant Field Values

versionRadioButton

Checkbox versionRadioButton

Group1

CheckboxGroup Group1

baselineRadioButton

Checkbox baselineRadioButton

effectivityRadioButton

Checkbox effectivityRadioButton

labelView

symantec.itools.awt.WrappingLabel labelView

choiceView

ViewChoice choiceView

labelState

symantec.itools.awt.WrappingLabel labelState

choiceState

EnumeratedChoice choiceState

checkboxCheckedOut

Checkbox checkboxCheckedOut

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

baselineNameStaticLabel

symantec.itools.awt.WrappingLabel baselineNameStaticLabel

baselineNameTextField

TextField baselineNameTextField

baselineSearchButton

symantec.itools.awt.LabelButton baselineSearchButton

horizontalLine2

symantec.itools.awt.shape.HorizontalLine horizontalLine2

labelView2

symantec.itools.awt.WrappingLabel labelView2

effectivityViewChoice

ViewChoice effectivityViewChoice

labelEffectiveDate

symantec.itools.awt.WrappingLabel labelEffectiveDate

effectiveDateTextField

TextField effectiveDateTextField

labelConfigurationItem

symantec.itools.awt.WrappingLabel labelConfigurationItem

configItemTextField

TextField configItemTextField

configItemSearchButton

symantec.itools.awt.LabelButton configItemSearchButton

labelType

symantec.itools.awt.WrappingLabel labelType

labelTypeValue

symantec.itools.awt.WrappingLabel labelTypeValue

labelValue

symantec.itools.awt.WrappingLabel labelValue

valueTextField

TextField valueTextField

horizontalLine3

symantec.itools.awt.shape.HorizontalLine horizontalLine3

saveCheckbox

Checkbox saveCheckbox

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext

statusText

private String statusText

configSpecItem

private ConfigSpecItem configSpecItem

RB

private ResourceBundle RB

crossLocaleFont

private Font crossLocaleFont

baselineValidated

private boolean baselineValidated

configItemValidated

private boolean configItemValidated

BLANK_CHOICE

protected static String BLANK_CHOICE
Constructor Detail

ConfigSpecPanel

public ConfigSpecPanel()
Construct a default ConfigSpecPanel.

Method Detail

setConfigSpecItem

public void setConfigSpecItem(ConfigSpecItem specItem)
                       throws PropertyVetoException,
                              WTException
Set the ConfigSpecItem to manipulate.

Parameters:
specItem - the ConfigSpecItem to manipulate.
Throws:
PropertyVetoException
WTException

getConfigSpecItem

public ConfigSpecItem getConfigSpecItem()
Return the ConfigSpecItem being manipulated.

Returns:
the ConfigSpecItem being manipulated.

setStatusText

private void setStatusText(String text)
Set the text to display in the status area Unused since the status area was eliminated in the ConfigSpecDialog.


getStatusText

public String getStatusText()
Get the text to display in the status area Unused since the status area was eliminated in the ConfigSpecDialog.


initializeHelp

public void initializeHelp()
Initialize the help system for this component.

Overrides:
initializeHelp in class HelperPanel

setHelpContext

public void setHelpContext(HelpContext aHelpContext)
Set the help context for this componet.

Overrides:
setHelpContext in class HelperPanel
Parameters:
aHelpContext - the HelpContext to use for this component

setHelpSystem

public void setHelpSystem(HelpSystem aHelpSystem)
Set the help system for this componet.

Overrides:
setHelpSystem in class HelperPanel
Parameters:
aHelpSystem - the HelpSystem to use for this component

getHelpContext

public HelpContext getHelpContext()
Return the help context for this component

Overrides:
getHelpContext in class HelperPanel
Returns:
the help context for this component

save

public void save()
          throws WTException,
                 WTPropertyVetoException
Save the current ConfigSpecItem

Throws:
WTException
WTPropertyVetoException

getState

protected State getState()
Get the state from the choice list.

Returns:
the state from the choice list

initialize

public void initialize()
Initialize the panel. (currently unused)


localize

public void localize()
Overrides:
localize in class HelperPanel

populate

public void populate()
Populate the display components based on the contained ConfigSpecItem


setBaseline

private void setBaseline(ManagedBaseline baseline)
Set the baseline. The baseline name and number fields are populated. If the name field is not empty, then the other fields are disabled.


setConfigItem

private void setConfigItem(ConfigurationItem ci)

configItemTextField_FocusLost

void configItemTextField_FocusLost(FocusEvent event)

baselineTextField_FocusLost

void baselineTextField_FocusLost(FocusEvent event)

baselineSearchButtion_ActionPerformed

void baselineSearchButtion_ActionPerformed(ActionEvent event)

configItemSearchButton_ActionPerformed

void configItemSearchButton_ActionPerformed(ActionEvent event)

parseDate

public Timestamp parseDate(String date_string)
                    throws WTPropertyVetoException
Throws:
WTPropertyVetoException

formatDate

public String formatDate(Date date)

versionRadioButton_ItemStateChanged

void versionRadioButton_ItemStateChanged(ItemEvent event)

baselineRadioButton_ItemStateChanged

void baselineRadioButton_ItemStateChanged(ItemEvent event)

effectivityRadioButton_ItemStateChanged

void effectivityRadioButton_ItemStateChanged(ItemEvent event)

enableStandardFields

protected void enableStandardFields(boolean flag)

enableBaselineFields

protected void enableBaselineFields(boolean flag)

enableEffectivityFields

protected void enableEffectivityFields(boolean flag)