wt.clients.replication.unit
Class ConfigSpecDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.replication.unit.ConfigSpecDialog
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable

public class ConfigSpecDialog
extends Dialog
implements PropertyChangeListener

ConfigSpecDialog is used to set the config spec for a user.

Supported API: false

Extendable: false

See Also:
ConfigSpecItem, ConfigSpec, Serialized Form

Nested Class Summary
(package private)  class ConfigSpecDialog.SymAction
           
(package private)  class ConfigSpecDialog.SymContainer
           
(package private)  class ConfigSpecDialog.SymKey
           
(package private)  class ConfigSpecDialog.SymWindow
           
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
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
protected  Applet applet
           
(package private)  symantec.itools.awt.LabelButton btnCancel
           
(package private)  symantec.itools.awt.LabelButton btnHelp
           
(package private)  symantec.itools.awt.LabelButton btnOK
           
static String CANCEL
           
protected  ContainerColorUtility colorUtility
           
private  Font crossLocaleFont
           
(package private)  boolean fComponentsAdjusted
           
private  Frame frame
           
private static String HELP_TARGET
           
protected  HelpContext helpContext
           
protected  HelpSystem helpSystem
           
protected  ActionListener listeners
          This field will hold a list of registered ActionListeners
static String OK
           
(package private)  Panel panButtons
           
(package private)  ConfigSpecPanel panConfigSpecPanel
           
(package private)  Panel panSelection
           
protected  ResourceBundle RB
           
static String RESOURCE
           
private  ThreadGroup threadGroup
           
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
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
ConfigSpecDialog(Frame parent, boolean modal)
          Construct a ConfigSpecDialog with the specified parent and modality.
ConfigSpecDialog(Frame parent, String title, boolean modal)
          Construct a ConfigSpecDialog with the specified parent frame, title, and modality.
 
Method Summary
 void addActionListener(ActionListener l)
          Register an action listener to be notified when a button is pressed
 void addNotify()
          Override parent implementation to record the size of the window prior to calling parents addNotify.
(package private)  void btnCancel_Action(ActionEvent event)
           
(package private)  void btnCancel_KeyPressed(KeyEvent event)
           
(package private)  void btnHelp_Action(ActionEvent event)
           
(package private)  void btnHelp_KeyPressed(KeyEvent event)
           
(package private)  void btnOK_Action(ActionEvent event)
           
(package private)  void btnOK_KeyPressed(KeyEvent event)
           
(package private)  void ConfigSpecDialog_ComponentAdded(ContainerEvent event)
           
(package private)  void Dialog1_WindowClosing(WindowEvent event)
           
protected  void enableButtons(boolean enable)
           
 Applet getApplet()
          Get the parent applet for this dialog.
protected  ContainerColorUtility getColorUtility()
           
 ConfigSpecItem getConfigSpecItem()
          Return the ConfigSpecItem displayed in this dialog.
 WTContext getContext()
          Get the WTContext for use by threads.
private  Frame getFrame()
           
protected  Frame getParentFrame()
          Get the parent frame of this Part Explorer component.
protected  void handleCancelAction(AWTEvent event)
           
protected  void handleHelpAction()
           
protected  void handleOKAction(AWTEvent event)
           
(package private)  void initializeHelp()
          Initialize the help system for this dialog.
protected  void localize()
           
static void main(String[] args)
          A main method that demonstrates how to use this class and allows testing
(package private)  void panConfigSpecPanel_Action(ActionEvent event)
           
 void propertyChange(PropertyChangeEvent event)
          Update the status area with online help.
 void removeActionListener(ActionListener l)
          Remove an action listener from our list of interested listeners
 void setApplet(Applet a)
          Set the parent applet for this dialog.
 void setConfigSpecItem(ConfigSpecItem configSpecItem)
          Set the ConfigSpecItem displayed in this dialog.
private  void setFrame(Frame f)
           
 void show()
          Override the generated show method to fix synchronization problems in Cafe generated code.
protected  void showMessageDialog(String message, boolean modal)
          Display a Message Dialog
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CANCEL

public static final String CANCEL
See Also:
Constant Field Values

OK

public static final String OK
See Also:
Constant Field Values

RESOURCE

public static String RESOURCE

HELP_TARGET

private static final String HELP_TARGET
See Also:
Constant Field Values

threadGroup

private ThreadGroup threadGroup

applet

protected Applet applet

helpSystem

protected HelpSystem helpSystem

helpContext

protected HelpContext helpContext

RB

protected ResourceBundle RB

crossLocaleFont

private Font crossLocaleFont

colorUtility

protected ContainerColorUtility colorUtility

fComponentsAdjusted

boolean fComponentsAdjusted

panButtons

Panel panButtons

btnOK

symantec.itools.awt.LabelButton btnOK

btnCancel

symantec.itools.awt.LabelButton btnCancel

btnHelp

symantec.itools.awt.LabelButton btnHelp

panSelection

Panel panSelection

frame

private Frame frame

listeners

protected ActionListener listeners
This field will hold a list of registered ActionListeners


panConfigSpecPanel

ConfigSpecPanel panConfigSpecPanel
Constructor Detail

ConfigSpecDialog

public ConfigSpecDialog(Frame parent,
                        boolean modal)
Construct a ConfigSpecDialog with the specified parent and modality.

Parameters:
parent - the parent frame for this dialog

ConfigSpecDialog

public ConfigSpecDialog(Frame parent,
                        String title,
                        boolean modal)
Construct a ConfigSpecDialog with the specified parent frame, title, and modality.

Parameters:
parent - the parent frame for this dialog
title - the title for this dialog
modal - if true, display as a modal dialog
Method Detail

getApplet

public Applet getApplet()
Get the parent applet for this dialog.

Returns:
the parent applet for this dialog

setApplet

public void setApplet(Applet a)
Set the parent applet for this dialog.

Parameters:
a - the parent applet for this dialog

addNotify

public void addNotify()
Override parent implementation to record the size of the window prior to calling parents addNotify.


show

public void show()
Override the generated show method to fix synchronization problems in Cafe generated code.


setFrame

private void setFrame(Frame f)

getFrame

private Frame getFrame()

addActionListener

public void addActionListener(ActionListener l)
Register an action listener to be notified when a button is pressed


removeActionListener

public void removeActionListener(ActionListener l)
Remove an action listener from our list of interested listeners


Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)

btnCancel_Action

void btnCancel_Action(ActionEvent event)

handleCancelAction

protected void handleCancelAction(AWTEvent event)

btnOK_Action

void btnOK_Action(ActionEvent event)

handleOKAction

protected void handleOKAction(AWTEvent event)

enableButtons

protected void enableButtons(boolean enable)

showMessageDialog

protected void showMessageDialog(String message,
                                 boolean modal)
Display a Message Dialog

Parameters:
message - the message to display
modal - the modality of the dialog used to display the message

panConfigSpecPanel_Action

void panConfigSpecPanel_Action(ActionEvent event)

localize

protected void localize()

getConfigSpecItem

public ConfigSpecItem getConfigSpecItem()
Return the ConfigSpecItem displayed in this dialog.

Returns:
the ConfigSpecItem displayed in this dialog

setConfigSpecItem

public void setConfigSpecItem(ConfigSpecItem configSpecItem)
                       throws WTException
Set the ConfigSpecItem displayed in this dialog.

Parameters:
configSpecItem - the ConfigSpecItem displayed in this dialog
Throws:
WTException

initializeHelp

void initializeHelp()
Initialize the help system for this dialog.


propertyChange

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

Specified by:
propertyChange in interface PropertyChangeListener

getContext

public WTContext getContext()
Get the WTContext for use by threads.

Returns:
the WTContext for this component.

getParentFrame

protected Frame getParentFrame()
Get the parent frame of this Part Explorer component.

Returns:
the parent frame of this component.

main

public static void main(String[] args)
A main method that demonstrates how to use this class and allows testing


btnHelp_Action

void btnHelp_Action(ActionEvent event)

handleHelpAction

protected void handleHelpAction()

ConfigSpecDialog_ComponentAdded

void ConfigSpecDialog_ComponentAdded(ContainerEvent event)

getColorUtility

protected ContainerColorUtility getColorUtility()

btnOK_KeyPressed

void btnOK_KeyPressed(KeyEvent event)

btnCancel_KeyPressed

void btnCancel_KeyPressed(KeyEvent event)

btnHelp_KeyPressed

void btnHelp_KeyPressed(KeyEvent event)