wt.clients.folder
Class CreateFolderDialog

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

public class CreateFolderDialog
extends Dialog

Dialog for creating new SubFolder objects. This dialog allows the user to enter the name of the new subfolder, specify where the subfolder will be created, and specify the subfolder's domain.

Supported API:true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private)  class CreateFolderDialog.DSListen
           
(package private)  class CreateFolderDialog.SymAction
           
(package private)  class CreateFolderDialog.SymItem
           
(package private)  class CreateFolderDialog.SymKey
           
(package private)  class CreateFolderDialog.SymText
           
(package private)  class CreateFolderDialog.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  boolean adminPermit
           
(package private)  Button browseButton
           
(package private)  Panel buttonPanel
           
(package private)  Button cancelButton
           
private  ThreadGroup contextGroup
           
private  boolean displayDomains
           
private  AdminDomainRef domain
           
(package private)  Button domainBrowseButton
           
(package private)  Label domainLabel
           
(package private)  TextField domainTextField
           
(package private)  boolean fComponentsAdjusted
           
private  String folderLocation
           
private  String folderName
           
(package private)  Label folderNameLabel
           
(package private)  TextField folderNameTextField
           
(package private)  symantec.itools.awt.shape.HorizontalLine horizontalLine1
           
(package private)  Checkbox inheritDomainCheckbox
           
private  String inheritDomainFromCabinet
           
private  String inheritDomainFromFolder
           
private  Vector listeners
           
(package private)  Label locationLabel
           
(package private)  TextField locationTextField
           
(package private)  Button okButton
           
private  Applet parentApplet
           
private  Folder parentFolder
           
private static ResourceBundle resources
           
private static String RESOURCES
           
private static String versionID
           
 
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
CreateFolderDialog(Frame parent, boolean modal)
          Constructor for this dialog.
CreateFolderDialog(Frame parent, String title, boolean modal)
          Constructor for this dialog.
 
Method Summary
 void addActionListener(ActionListener al)
          Deprecated. 

Supported API:false
 void addNotify()
          Creates the dialog's peer.
(package private)  void browseButton_Action(ActionEvent event)
           
(package private)  void cancelButton_Action(ActionEvent event)
           
(package private)  void cancelButton_KeyPress(KeyEvent event)
           
private  void createFolder()
           
(package private)  void Dialog1_WindowClosing(WindowEvent event)
           
private  void dispatchRefresh(int action, Object obj)
           
(package private)  void domainBrowseButton_Action(ActionEvent event)
           
(package private)  void folderNameTextField_TextValueChanged(TextEvent event)
           
private  WTContext getContext()
           
 String getFolderLocation()
          Returns the string location in which the new folder will be created.
 String getFolderName()
          Retrieves the string name which will be used as the name of the subfolder to be created.
 Applet getParentApplet()
          Deprecated. 

Supported API:false
private  AdminDomainRef getParentDomainRef()
           
 Folder getParentFolder()
          Returns the Folder object in which the new folder will be created.
private  void getPreferences()
           
private  void inheritDomainCheckbox_set_inheritance()
           
 void inheritDomainCheckbox_state_changed(ItemEvent event)
           
 void initFolderLocation(String location)
          Initializes the location in which to create the subfolder with the given String location.
 void initialize(Folder parent_folder)
          Sets the parent folder and invokes setAdminActionsEnabled to determine whether user has rights to set subFolder's domain.
private  void initResources()
          Deprecated.  
private  void localize()
           
(package private)  void locationTextField_Typed(KeyEvent event)
           
protected  void notifyActionEvent()
          Deprecated. 

Supported API:false
(package private)  void okButton_Action(ActionEvent event)
           
(package private)  void okButton_KeyPress(KeyEvent event)
           
protected  void processOkCommand()
           
 void removeActionListener(ActionListener al)
          Deprecated. 

Supported API:false
private  void setAdminActionsEnabled()
           
private  void setContext(boolean context_on)
           
private  void setDomain(AdminDomainRef domain)
           
 void setFolderLocation(String location)
          Sets the string location in which the new folder will be created with the given String.
 void setFolderName(String name)
          Sets the string name which will be used as the name of the subfolder to be created with the given String.
 void setParentApplet(Applet parent_applet)
          Deprecated. 

Supported API:false
 void setParentFolder(Folder parent_folder)
          Set the parent folder in which the new subfolder will be created to the given folder.
 void show()
           
private  void showMessageDialog(String message)
           
 
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

folderNameLabel

Label folderNameLabel

folderNameTextField

TextField folderNameTextField

locationLabel

Label locationLabel

locationTextField

TextField locationTextField

browseButton

Button browseButton

domainLabel

Label domainLabel

domainTextField

TextField domainTextField

domainBrowseButton

Button domainBrowseButton

inheritDomainCheckbox

Checkbox inheritDomainCheckbox

buttonPanel

Panel buttonPanel

okButton

Button okButton

cancelButton

Button cancelButton

horizontalLine1

symantec.itools.awt.shape.HorizontalLine horizontalLine1

folderName

private String folderName

folderLocation

private String folderLocation

inheritDomainFromCabinet

private String inheritDomainFromCabinet

inheritDomainFromFolder

private String inheritDomainFromFolder

parentFolder

private Folder parentFolder

listeners

private Vector listeners

parentApplet

private Applet parentApplet

contextGroup

private ThreadGroup contextGroup

domain

private AdminDomainRef domain

displayDomains

private boolean displayDomains

adminPermit

private boolean adminPermit

RESOURCES

private static String RESOURCES

resources

private static ResourceBundle resources
Constructor Detail

CreateFolderDialog

public CreateFolderDialog(Frame parent,
                          boolean modal)
Constructor for this dialog.

Parameters:
parent - the Frame owner of the dialog
modal - true, if the dialog should be displayed as modal and block input to the parent window

Supported API:true

CreateFolderDialog

public CreateFolderDialog(Frame parent,
                          String title,
                          boolean modal)
Constructor for this dialog.

Parameters:
parent - the Frame owner of the dialog
title - the String to be displayed as the title of this dialog
modal - true, if the dialog should be displayed as modal and block input to the parent window

Supported API:true
Method Detail

initResources

private void initResources()
Deprecated.  

Method to initialize the resource bundle containing the localized resources used by this dialog. This method is deprecated and no longer necessary because all resources are retrieved using WTMessage class.

Supported API:true


localize

private void localize()

addNotify

public void addNotify()
Creates the dialog's peer.

Supported API:true


show

public void show()

Dialog1_WindowClosing

void Dialog1_WindowClosing(WindowEvent event)

initFolderLocation

public void initFolderLocation(String location)
Initializes the location in which to create the subfolder with the given String location. The given string must be a valid path to an existing cabinet or folder. The dialog will display with the given string as the location.

Parameters:
location - a String specifying the cabinet or folder location in which to create the subfolder. The string should be a valid path to an existing cabinet or folder.

Supported API:true

initialize

public void initialize(Folder parent_folder)
Sets the parent folder and invokes setAdminActionsEnabled to determine whether user has rights to set subFolder's domain.

Parameters:
parent_folder - Folder specifying the parent cabinet or subfolder in which to create the subFolder.

Supported API:false

getFolderName

public String getFolderName()
Retrieves the string name which will be used as the name of the subfolder to be created.

Returns:
the String name of the folder being created.

Supported API:true

setFolderName

public void setFolderName(String name)
Sets the string name which will be used as the name of the subfolder to be created with the given String.

Parameters:
name - the String name to be used as the name of the folder being created.

Supported API:true

getFolderLocation

public String getFolderLocation()
Returns the string location in which the new folder will be created. The returned string will be a path to the cabinet/folder in which the new folder will be created.

Returns:
the String location of the folder in which the new folder will be created.

Supported API:true

setFolderLocation

public void setFolderLocation(String location)
Sets the string location in which the new folder will be created with the given String. The given string must be a valid path to an existing cabinet or folder.

Parameters:
location - the String location of the folder in which the new folder be created.

Supported API:true

getParentFolder

public Folder getParentFolder()
Returns the Folder object in which the new folder will be created.

Returns:
the parent folder in which the new subfolder will be created.

Supported API:true

setParentFolder

public void setParentFolder(Folder parent_folder)
Set the parent folder in which the new subfolder will be created to the given folder.

Parameters:
parent_folder - the parent Folder in which the new subfolder will be created

Supported API:true

addActionListener

public void addActionListener(ActionListener al)
Deprecated. 

Supported API:false

Adds an ActionListener to be notified when an ActionEvent against this dialog occurs.

Parameters:
al - the ActionListener to be notified

removeActionListener

public void removeActionListener(ActionListener al)
Deprecated. 

Supported API:false

Removes an ActionListener who has been previously added as a listener to ActionEvents against this dialog. This method will remove the given listener from the list of ActionListeners. If the given listener is not currently registered as a listener, it will be ignored.

Parameters:
al - the ActionListener to be removed

notifyActionEvent

protected void notifyActionEvent()
Deprecated. 

Supported API:false

Notifies the registered ActionListeners of an ActionEvent that has occurred. This method invokes the "actionPerformed" method on the ActionListeners.


setParentApplet

public void setParentApplet(Applet parent_applet)
Deprecated. 

Supported API:false

Sets the parent Applet to provide context to this dialog. This method is no longer necessary because the WTContext class is used to provide context.

Parameters:
parent_applet - the parent Applet to provide context to this dialog

getParentApplet

public Applet getParentApplet()
Deprecated. 

Supported API:false

Returns the parent Applet providing context to this dialog. This method is no longer necessary because the WTContext class is used to provide context.

Returns:
the parent Applet providing context to this dialog

setDomain

private void setDomain(AdminDomainRef domain)

inheritDomainCheckbox_state_changed

public void inheritDomainCheckbox_state_changed(ItemEvent event)

inheritDomainCheckbox_set_inheritance

private void inheritDomainCheckbox_set_inheritance()

folderNameTextField_TextValueChanged

void folderNameTextField_TextValueChanged(TextEvent event)

cancelButton_Action

void cancelButton_Action(ActionEvent event)

createFolder

private void createFolder()
                   throws FolderException,
                          WTPropertyVetoException,
                          WTException
Throws:
FolderException
WTPropertyVetoException
WTException

okButton_Action

void okButton_Action(ActionEvent event)

processOkCommand

protected void processOkCommand()

dispatchRefresh

private void dispatchRefresh(int action,
                             Object obj)

browseButton_Action

void browseButton_Action(ActionEvent event)

domainBrowseButton_Action

void domainBrowseButton_Action(ActionEvent event)

getContext

private WTContext getContext()

setContext

private void setContext(boolean context_on)

locationTextField_Typed

void locationTextField_Typed(KeyEvent event)

okButton_KeyPress

void okButton_KeyPress(KeyEvent event)

cancelButton_KeyPress

void cancelButton_KeyPress(KeyEvent event)

showMessageDialog

private void showMessageDialog(String message)

setAdminActionsEnabled

private void setAdminActionsEnabled()

getParentDomainRef

private AdminDomainRef getParentDomainRef()

getPreferences

private void getPreferences()