wt.clients.site
Class SiteCreate

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

public class SiteCreate
extends Dialog

See Also:
Serialized Form

Nested Class Summary
(package private)  class SiteCreate.SymAction
           
(package private)  class SiteCreate.SymItem
           
(package private)  class SiteCreate.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
private  ThreadGroup _contextGroup
           
private  HelpContext _helpContext
           
private  HelpSystem _helpSystem
           
private  boolean _isNew
           
private  SiteInfoMaster _master
           
private static ResourceBundle _rb
           
private  long _siteID
           
(package private)  symantec.itools.awt.LabelButton cancelBtn
           
private  Font crossLocaleFont
           
(package private)  TextArea descriptionField
           
(package private)  symantec.itools.awt.WrappingLabel descriptionText
           
private  boolean fComponentsAdjusted
           
(package private)  symantec.itools.awt.LabelButton helpBtn
           
private  boolean isPDMLinkInstalled
          booleans to store the status of installed components
private  boolean isProjectLinkInstalled
           
(package private)  Checkbox masterBox
           
private  boolean ok
           
(package private)  symantec.itools.awt.LabelButton okBtn
           
private  boolean oldReplicaState
           
private  String oldSiteName
           
(package private)  PrincipalSelectionPanel principalSelectionPanel1
           
(package private)  symantec.itools.awt.WrappingLabel principalText
           
(package private)  Checkbox prodReplPeerBox
           
(package private)  Checkbox replicaBox
           
private static String RESOURCES
           
private static boolean SHOW_LOCAL_SITE
           
(package private)  TextField siteField
           
(package private)  symantec.itools.awt.WrappingLabel siteText
           
(package private)  symantec.itools.awt.WrappingLabel siteType
           
(package private)  symantec.itools.awt.StatusBar statusBar1
           
(package private)  TextField urlField
           
(package private)  symantec.itools.awt.WrappingLabel urlText
           
private static boolean viewMode
           
 
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
private SiteCreate(Frame parent)
           
private SiteCreate(Frame parent, boolean modal)
           
  SiteCreate(Frame parent, String title, boolean modal, SiteInfoMaster iMaster, String siteName, boolean viewMode)
           
  SiteCreate(Frame parent, String title, boolean modal, SiteInfoMaster iMaster, String siteName, String urlName, boolean viewMode)
           
  SiteCreate(Frame parent, String title, SiteInfoMaster iMaster, boolean modal, boolean viewMode)
           
 
Method Summary
 void addNotify()
           
(package private)  void cancelBtn_ActionPerformed(ActionEvent event)
           
private  WTContext getContext()
          Returns the appropriate WTContext which corresponds to this frame.
 HelpContext getHelpContext()
          Gets the HelpContext instance associated with this screen., This method is public by Windchill convention
 HelpSystem getHelpSystem()
          Gets the HelpSystem instance associated with this screen.
(package private)  void helpBtn_ActionPerformed(ActionEvent event)
           
private  void initHelpSystem()
          Initializes the help system.
private  void initializeHelp()
          This function should be the last thing called in the ctor.
private  boolean isValidURL(String urlString)
           
private  void localize()
           
private  PropertyChangeListener newHelpListener()
          newHelpListener This function adds a listener to respond to the component mouse over events.
(package private)  void okBtn_ActionPerformed(ActionEvent event)
           
(package private)  void prodReplPeerBox_itemStateChanged(ItemEvent event)
           
private  void setContext(boolean contextOn)
           
 void setVisible(boolean b)
          Shows or hides the component depending on the boolean flag b.
 boolean showDialog()
           
(package private)  void SiteCreate_WindowClosing(WindowEvent event)
           
private  void stopHelp()
          stopHelp should be called every time the window gets closed.
 
Methods inherited from class java.awt.Dialog
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show
 
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, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCES

private static final String RESOURCES
See Also:
Constant Field Values

_rb

private static ResourceBundle _rb

crossLocaleFont

private Font crossLocaleFont

_contextGroup

private ThreadGroup _contextGroup

_helpContext

private HelpContext _helpContext

_helpSystem

private HelpSystem _helpSystem

ok

private boolean ok

_isNew

private boolean _isNew

_master

private SiteInfoMaster _master

_siteID

private long _siteID

oldSiteName

private String oldSiteName

oldReplicaState

private boolean oldReplicaState

SHOW_LOCAL_SITE

private static boolean SHOW_LOCAL_SITE

viewMode

private static boolean viewMode

fComponentsAdjusted

private boolean fComponentsAdjusted

isPDMLinkInstalled

private boolean isPDMLinkInstalled
booleans to store the status of installed components


isProjectLinkInstalled

private boolean isProjectLinkInstalled

siteText

symantec.itools.awt.WrappingLabel siteText

urlText

symantec.itools.awt.WrappingLabel urlText

descriptionText

symantec.itools.awt.WrappingLabel descriptionText

siteField

TextField siteField

urlField

TextField urlField

okBtn

symantec.itools.awt.LabelButton okBtn

cancelBtn

symantec.itools.awt.LabelButton cancelBtn

helpBtn

symantec.itools.awt.LabelButton helpBtn

statusBar1

symantec.itools.awt.StatusBar statusBar1

descriptionField

TextArea descriptionField

principalText

symantec.itools.awt.WrappingLabel principalText

principalSelectionPanel1

PrincipalSelectionPanel principalSelectionPanel1

siteType

symantec.itools.awt.WrappingLabel siteType

masterBox

Checkbox masterBox

replicaBox

Checkbox replicaBox

prodReplPeerBox

Checkbox prodReplPeerBox
Constructor Detail

SiteCreate

private SiteCreate(Frame parent)

SiteCreate

private SiteCreate(Frame parent,
                   boolean modal)

SiteCreate

public SiteCreate(Frame parent,
                  String title,
                  SiteInfoMaster iMaster,
                  boolean modal,
                  boolean viewMode)

SiteCreate

public SiteCreate(Frame parent,
                  String title,
                  boolean modal,
                  SiteInfoMaster iMaster,
                  String siteName,
                  boolean viewMode)

SiteCreate

public SiteCreate(Frame parent,
                  String title,
                  boolean modal,
                  SiteInfoMaster iMaster,
                  String siteName,
                  String urlName,
                  boolean viewMode)
Method Detail

addNotify

public void addNotify()

localize

private void localize()

setVisible

public void setVisible(boolean b)
Shows or hides the component depending on the boolean flag b.

Parameters:
b - if true, show the component; otherwise, hide the component.
See Also:
Component.isVisible()

showDialog

public boolean showDialog()

SiteCreate_WindowClosing

void SiteCreate_WindowClosing(WindowEvent event)

okBtn_ActionPerformed

void okBtn_ActionPerformed(ActionEvent event)

cancelBtn_ActionPerformed

void cancelBtn_ActionPerformed(ActionEvent event)

helpBtn_ActionPerformed

void helpBtn_ActionPerformed(ActionEvent event)

isValidURL

private boolean isValidURL(String urlString)

getContext

private WTContext getContext()
Returns the appropriate WTContext which corresponds to this frame. This method first tries to retrieve the WTContext by using the ThreadGroup saved when this frame was constructed. If the ThreadGroup is null, then this method tries to use the parent Applet to get the WTContext. If that parent applet is also null, this method uses the default getContext() method to retrieve a WTContext.

Returns:
the WTContext object associated with this frame
See Also:
WTContext

setContext

private void setContext(boolean contextOn)

initializeHelp

private void initializeHelp()
This function should be the last thing called in the ctor. It initializes the help system, and adds the components the help system will listen for mouse over events to.


getHelpContext

public HelpContext getHelpContext()
Gets the HelpContext instance associated with this screen., This method is public by Windchill convention


getHelpSystem

public HelpSystem getHelpSystem()
Gets the HelpSystem instance associated with this screen. Windchill convention says that this function should be public.


initHelpSystem

private void initHelpSystem()
Initializes the help system.


newHelpListener

private PropertyChangeListener newHelpListener()
newHelpListener This function adds a listener to respond to the component mouse over events. It updates the status bar everytime the mouse passes over one of the buttons.


stopHelp

private void stopHelp()
stopHelp should be called every time the window gets closed.


prodReplPeerBox_itemStateChanged

void prodReplPeerBox_itemStateChanged(ItemEvent event)