public class ObjectsAttributesDialog
extends javax.swing.JDialog
implements java.awt.event.ActionListener
S3Objects,
and optionally to allow the objects metadata attributes to be modified.javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type| Modifier and Type | Field and Description |
|---|---|
private javax.swing.JButton |
addMetadataItemButton |
private javax.swing.JTextField |
bucketLocationTextField |
private javax.swing.JButton |
cancelButton |
private S3Object |
currentObject |
private int |
currentObjectIndex |
private javax.swing.JLabel |
currentObjectLabel |
private S3Object[] |
destinationObjects |
private javax.swing.JPanel |
destinationPanel |
private GuiUtils |
guiUtils |
private java.awt.Insets |
insetsDefault |
private java.awt.Insets |
insetsHorizontalSpace |
private java.awt.Insets |
insetsVerticalSpace |
private java.awt.Insets |
insetsZero |
private javax.swing.JPanel |
metadataButtonsContainer |
private javax.swing.JTable |
metadataTable |
private TableSorter |
metadataTableSorter |
private boolean |
modifyActionApproved |
private boolean |
modifyMode |
private javax.swing.JButton |
nextObjectButton |
private javax.swing.JPanel |
nextPreviousPanel |
private javax.swing.JTextField |
objectContentLengthTextField |
private javax.swing.JTextField |
objectETagTextField |
private javax.swing.JTextField |
objectKeyTextField |
private javax.swing.JTextField |
objectLastModifiedTextField |
private javax.swing.table.DefaultTableModel |
objectMetadataTableModel |
private javax.swing.JButton |
okButton |
private javax.swing.JLabel |
ownerIdLabel |
private javax.swing.JTextField |
ownerIdTextField |
private javax.swing.JLabel |
ownerNameLabel |
private javax.swing.JTextField |
ownerNameTextField |
private javax.swing.JButton |
previousObjectButton |
private javax.swing.JButton |
removeMetadataItemButton |
private static long |
serialVersionUID |
private SkinsFactory |
skinsFactory |
private javax.swing.JTextField |
storageClassTextField |
accessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
ObjectsAttributesDialog(java.awt.Frame owner,
java.lang.String title,
SkinsFactory skinsFactory)
Construct a modal dialog to display the attributes for one or more objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Event handler for this dialog.
|
void |
displayDialog(S3Object[] objects,
boolean modifyMode)
Display the dialog with data - always use this method instead of setVisible.
|
private void |
displayObjectProperties()
Update the dialog to display the attributes of a single object.
|
S3Object[] |
getDestinationObjects() |
java.lang.String[] |
getSourceObjectKeys() |
private void |
initGui()
Initialise the GUI elements to display the given item.
|
boolean |
isModifyActionApproved() |
boolean |
isModifyMode() |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprivate static final long serialVersionUID
private GuiUtils guiUtils
private SkinsFactory skinsFactory
private final java.awt.Insets insetsZero
private final java.awt.Insets insetsDefault
private final java.awt.Insets insetsVerticalSpace
private final java.awt.Insets insetsHorizontalSpace
private S3Object[] destinationObjects
private S3Object currentObject
private int currentObjectIndex
private javax.swing.JTextField objectKeyTextField
private javax.swing.JTextField objectContentLengthTextField
private javax.swing.JTextField objectLastModifiedTextField
private javax.swing.JTextField objectETagTextField
private javax.swing.JTextField bucketLocationTextField
private javax.swing.JTextField storageClassTextField
private javax.swing.table.DefaultTableModel objectMetadataTableModel
private TableSorter metadataTableSorter
private javax.swing.JLabel ownerNameLabel
private javax.swing.JLabel ownerIdLabel
private javax.swing.JLabel currentObjectLabel
private javax.swing.JTable metadataTable
private javax.swing.JButton removeMetadataItemButton
private javax.swing.JButton addMetadataItemButton
private javax.swing.JButton previousObjectButton
private javax.swing.JButton nextObjectButton
private javax.swing.JButton okButton
private javax.swing.JButton cancelButton
private javax.swing.JPanel metadataButtonsContainer
private javax.swing.JPanel destinationPanel
private javax.swing.JPanel nextPreviousPanel
private javax.swing.JTextField ownerNameTextField
private javax.swing.JTextField ownerIdTextField
private boolean modifyMode
private boolean modifyActionApproved
public ObjectsAttributesDialog(java.awt.Frame owner,
java.lang.String title,
SkinsFactory skinsFactory)
owner - the Frame over which the dialog will be displayed and centred.title - a title for the dialog.skinsFactory - factory for producing skinned GUI components.public void displayDialog(S3Object[] objects, boolean modifyMode)
objects - the S3 objects whose attributes will be displayed, and that may be modified.modifyMode - if this parameter is true, the user will be able to modify object metadata
items. If false, the user will only be able to view object attributes and
will not be able to change the metadata.private void initGui()
private void displayObjectProperties()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic boolean isModifyMode()
public boolean isModifyActionApproved()
public java.lang.String[] getSourceObjectKeys()
getDestinationObjects() method.public S3Object[] getDestinationObjects()