wt.clients.beans.contentholder
Class FilePropertiesDialog
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
wt.clients.beans.contentholder.FilePropertiesDialog
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Serializable
- class FilePropertiesDialog
- extends Dialog
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
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 |
versionID
private static final String versionID
- See Also:
- Constant Field Values
fComponentsAdjusted
boolean fComponentsAdjusted
fileNameLabel
Label fileNameLabel
fileNameValue
Label fileNameValue
filePathLabel
Label filePathLabel
filePathValue
Label filePathValue
formatLabel
Label formatLabel
formatChoiceBox
Choice formatChoiceBox
sizeLabel
Label sizeLabel
sizeValue
Label sizeValue
modifiedDateLabel
Label modifiedDateLabel
modifiedOnValue
Label modifiedOnValue
modifiedByLabel
Label modifiedByLabel
modifiedByValue
Label modifiedByValue
getFileButton
Button getFileButton
horizontalLine1
symantec.itools.awt.shape.HorizontalLine horizontalLine1
buttonPanel
Panel buttonPanel
okButton
Button okButton
applyButton
Button applyButton
cancelButton
Button cancelButton
helpButton
Button helpButton
DEBUG
private static boolean DEBUG
- Flag used to provide debugging messages.
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
INIT_FIELDS
protected static final int INIT_FIELDS
- See Also:
- Constant Field Values
INIT_FORMATS
protected static final int INIT_FORMATS
- See Also:
- Constant Field Values
GET_FILE
protected static final int GET_FILE
- 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
resources
private static ResourceBundle resources
file
private ApplicationData file
contentHolder
private ContentHolder contentHolder
parentApplet
private Applet parentApplet
parentFrame
private Frame parentFrame
listeners
private Vector listeners
formatNames
private Vector formatNames
mode
private int mode
constraintsHashtable
private Hashtable constraintsHashtable
contextGroup
private ThreadGroup contextGroup
helpSystem
private HelpSystem helpSystem
helpContext
private HelpContext helpContext
intentToUpdate
private boolean intentToUpdate
contextLock
private Object contextLock
waitingOnContext
private int waitingOnContext
FilePropertiesDialog
public FilePropertiesDialog(Frame parent,
boolean modal)
FilePropertiesDialog
public FilePropertiesDialog(Frame parent,
String title,
boolean modal)
addNotify
public void addNotify()
show
public void show()
Dialog1_WindowClosing
void Dialog1_WindowClosing(WindowEvent event)
initResources
private void initResources()
initHelpSystem
private void initHelpSystem()
localize
private void localize()
cancelButton_Action
void cancelButton_Action(ActionEvent event)
setFile
public void setFile(ApplicationData file)
getFile
public ApplicationData getFile()
setContentHolder
public void setContentHolder(ContentHolder content_holder)
getContentHolder
public ContentHolder getContentHolder()
setIntentToUpdate
public void setIntentToUpdate(boolean update)
isIntentToUpdate
public boolean isIntentToUpdate()
setParentApplet
public void setParentApplet(Applet parent_applet)
getParentApplet
public Applet getParentApplet()
getParentFrame
public Frame getParentFrame()
- Gets the parent
Frame
of the panel. The parent
frame, if set, is used in displaying message dialogs. If the
parent frame has not been explicitly set, but the parent applet
has been explicitly set, this method will try to retrieve a
Frame
from the parent applet.
- Returns:
- the
Frame
parent - See Also:
#setParentFrame
,
setParentApplet(java.applet.Applet)
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()
showModificationInfo
private void showModificationInfo(boolean show)
enableModification
private void enableModification(boolean enable)
initFormatNames
private void initFormatNames()
initFormatChoices
private void initFormatChoices()
getContext
private WTContext getContext()
getFileButton_Action
void getFileButton_Action(ActionEvent event)
processGetCommand
private void processGetCommand()
downloadFile
private void downloadFile()
uploadFile
private void uploadFile()
- Deprecated. replaced by downloadFile
- Downloads the file displayed by this dialog.
selectFormat
private void selectFormat(String format)
enableActions
private void enableActions(boolean enable)
updateFileFormat
private boolean updateFileFormat()
throws WTContentHolderException,
WTPropertyVetoException,
WTException
- Throws:
WTContentHolderException
WTPropertyVetoException
WTException
okButton_Action
void okButton_Action(ActionEvent event)
processOkCommand
private void processOkCommand()
processApplyCommand
private void processApplyCommand()
showMessageDialog
private void showMessageDialog(String message,
boolean modal)
notifyContentItemListeners
private void notifyContentItemListeners(ContentItemEvent evt)
applyButton_Action
void applyButton_Action(ActionEvent event)
cancelButton_KeyPress
void cancelButton_KeyPress(KeyEvent event)
okButton_KeyPress
void okButton_KeyPress(KeyEvent event)
applyButton_KeyPress
void applyButton_KeyPress(KeyEvent event)
getLocalizedMessage
private String getLocalizedMessage(String key,
Object[] params)
formatDate
private String formatDate(Date time)
helpButton_ActionPerformed
void helpButton_ActionPerformed(ActionEvent event)
processHelpCommand
private void processHelpCommand()
helpButton_KeyPressed
void helpButton_KeyPressed(KeyEvent event)
getFileButton_KeyPressed
void getFileButton_KeyPressed(KeyEvent event)
updateColors
private void updateColors(Color color)
getFileSize
private String getFileSize(ApplicationData file)
roundToTwoDecimals
private float roundToTwoDecimals(float number)
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)