wt.clients.beans.contentholder
Class AddressPropertiesDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended bywt.clients.beans.contentholder.AddressPropertiesDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

class AddressPropertiesDialog
extends Dialog


Nested Class Summary
(package private)  class AddressPropertiesDialog.SymAction
           
(package private)  class AddressPropertiesDialog.SymKey
           
(package private)  class AddressPropertiesDialog.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
(package private)  Label addressLabel
           
(package private)  TextField addressTextField
           
(package private)  Button applyButton
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
private  Hashtable constraintsHashtable
           
private  ContentHolder contentHolder
           
private  ThreadGroup contextGroup
           
static int CREATE
           
(package private)  boolean fComponentsAdjusted
           
private static String HELP_TARGET
          Defined constant String which defines the name of the browser window to launch online help in.
(package private)  Button helpButton
           
private  HelpContext helpContext
           
private  HelpSystem helpSystem
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
private  Vector listeners
           
private static ResourceBundle messagesResource
           
private  int mode
           
(package private)  Label modifiedByLabel
           
(package private)  Label modifiedByValue
           
(package private)  Label modifiedDateLabel
           
(package private)  Label modifiedDateValue
           
(package private)  Label nameLabel
           
(package private)  TextField nameTextField
           
(package private)  Button okButton
           
(package private)  Button openButton
           
private  Applet parentApplet
           
private static String RESOURCE
           
static int UPDATE
           
private  URLData urlData
           
private static String versionID
           
static int VIEW
           
 
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
AddressPropertiesDialog(Frame parent, boolean modal)
           
AddressPropertiesDialog(Frame parent, boolean modal, int mode)
           
AddressPropertiesDialog(Frame parent, String title, boolean modal)
           
 
Method Summary
 void addContentItemListener(ContentItemListener l)
           
 void addNotify()
           
(package private)  void applyButton_Action(ActionEvent event)
           
(package private)  void applyButton_KeyPress(KeyEvent event)
           
(package private)  void cancelButton_Action(ActionEvent event)
           
(package private)  void cancelButton_KeyPress(KeyEvent event)
           
private  void createURLData()
           
(package private)  void Dialog1_WindowClosing(WindowEvent event)
           
private  void enableModification(boolean enable)
           
private  String formatDate(Date time)
           
 ContentHolder getContentHolder()
           
private  WTContext getContext()
           
private  String getLocalizedMessage(String key, Object[] params)
           
 int getMode()
           
 Applet getParentApplet()
           
 URLData getURLData()
           
(package private)  void helpButton_ActionPerformed(ActionEvent event)
           
(package private)  void helpButton_KeyPressed(KeyEvent event)
           
private  void initFields()
           
private  void initHelpSystem()
           
private  void initMode()
           
private  void initResources()
           
private  void localize()
           
private  void notifyContentItemListeners(ContentItemEvent evt)
           
(package private)  void okButton_Action(ActionEvent event)
           
(package private)  void okButton_KeyPress(KeyEvent event)
           
(package private)  void openButton_Action(ActionEvent event)
           
(package private)  void openButton_KeyPress(KeyEvent event)
           
private  void populateConstraintsHashtable()
          Populate the Hashtable with the GridBagConstraints of the components that are to be added and removed from the dialog.
private  void processApplyCommand()
           
private  void processHelpCommand()
           
private  void processOkCommand()
           
private  void processOpenCommand()
           
 void removeContentItemListeners(ContentItemListener l)
           
 void setContentHolder(ContentHolder content_holder)
           
private  void setFocus()
           
 void setMode(int mode)
           
 void setParentApplet(Applet parent_applet)
           
 void setURLData(URLData url_data)
           
 void show()
           
private  void showMessageDialog(String message, boolean modal)
           
private  void showModificationInfo(boolean show)
           
private  void storeConstraints(Container container, Component component)
           
private  void updateColors(Color color)
           
private  boolean updateURLData()
           
 
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

versionID

private static final String versionID
See Also:
Constant Field Values

fComponentsAdjusted

boolean fComponentsAdjusted

addressLabel

Label addressLabel

addressTextField

TextField addressTextField

openButton

Button openButton

nameLabel

Label nameLabel

nameTextField

TextField nameTextField

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

buttonPanel

Panel buttonPanel

okButton

Button okButton

applyButton

Button applyButton

cancelButton

Button cancelButton

helpButton

Button helpButton

modifiedDateLabel

Label modifiedDateLabel

modifiedDateValue

Label modifiedDateValue

modifiedByLabel

Label modifiedByLabel

modifiedByValue

Label modifiedByValue

CREATE

public static final int CREATE
See Also:
Constant Field Values

UPDATE

public static final int UPDATE
See Also:
Constant Field Values

VIEW

public static final int VIEW
See Also:
Constant Field Values

HELP_TARGET

private static final String HELP_TARGET
Defined constant String which defines the name of the browser window to launch online help in.

See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

messagesResource

private static ResourceBundle messagesResource

urlData

private URLData urlData

contentHolder

private ContentHolder contentHolder

parentApplet

private Applet parentApplet

listeners

private Vector listeners

mode

private int mode

constraintsHashtable

private Hashtable constraintsHashtable

contextGroup

private ThreadGroup contextGroup

helpSystem

private HelpSystem helpSystem

helpContext

private HelpContext helpContext
Constructor Detail

AddressPropertiesDialog

public AddressPropertiesDialog(Frame parent,
                               boolean modal)

AddressPropertiesDialog

public AddressPropertiesDialog(Frame parent,
                               String title,
                               boolean modal)

AddressPropertiesDialog

public AddressPropertiesDialog(Frame parent,
                               boolean modal,
                               int mode)
Method Detail

addNotify

public void addNotify()

show

public void show()

initResources

private void initResources()

initHelpSystem

private void initHelpSystem()

localize

private void localize()

Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)

cancelButton_Action

void cancelButton_Action(ActionEvent event)

setURLData

public void setURLData(URLData url_data)

getURLData

public URLData getURLData()

setContentHolder

public void setContentHolder(ContentHolder content_holder)

getContentHolder

public ContentHolder getContentHolder()

setParentApplet

public void setParentApplet(Applet parent_applet)

getParentApplet

public Applet getParentApplet()

setMode

public void setMode(int mode)

getMode

public int getMode()

addContentItemListener

public void addContentItemListener(ContentItemListener l)

removeContentItemListeners

public void removeContentItemListeners(ContentItemListener l)

initMode

private void initMode()

setFocus

private void setFocus()

initFields

private void initFields()

getContext

private WTContext getContext()

createURLData

private void createURLData()
                    throws WTPropertyVetoException,
                           WTException
Throws:
WTPropertyVetoException
WTException

updateURLData

private boolean updateURLData()
                       throws WTPropertyVetoException
Throws:
WTPropertyVetoException

openButton_Action

void openButton_Action(ActionEvent event)

processOpenCommand

private void processOpenCommand()

okButton_Action

void okButton_Action(ActionEvent event)

processOkCommand

private void processOkCommand()

notifyContentItemListeners

private void notifyContentItemListeners(ContentItemEvent evt)

applyButton_Action

void applyButton_Action(ActionEvent event)

processApplyCommand

private void processApplyCommand()

openButton_KeyPress

void openButton_KeyPress(KeyEvent event)

okButton_KeyPress

void okButton_KeyPress(KeyEvent event)

applyButton_KeyPress

void applyButton_KeyPress(KeyEvent event)

cancelButton_KeyPress

void cancelButton_KeyPress(KeyEvent event)

updateColors

private void updateColors(Color color)

showMessageDialog

private void showMessageDialog(String message,
                               boolean modal)

formatDate

private String formatDate(Date time)

showModificationInfo

private void showModificationInfo(boolean show)

enableModification

private void enableModification(boolean enable)

getLocalizedMessage

private String getLocalizedMessage(String key,
                                   Object[] params)

helpButton_ActionPerformed

void helpButton_ActionPerformed(ActionEvent event)

processHelpCommand

private void processHelpCommand()

helpButton_KeyPressed

void helpButton_KeyPressed(KeyEvent event)

populateConstraintsHashtable

private void populateConstraintsHashtable()
Populate the Hashtable with the GridBagConstraints of the components that are to be added and removed from the dialog. This method is necessary to work around the but in IE where 'setVisible(false)' does not work.


storeConstraints

private void storeConstraints(Container container,
                              Component component)