Class ObjectsAttributesDialog

    • Constructor Detail

      • ObjectsAttributesDialog

        public ObjectsAttributesDialog​(Frame owner,
                                       String title,
                                       SkinsFactory skinsFactory)
        Construct a modal dialog to display the attributes for one or more objects.
        Parameters:
        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.
    • Method Detail

      • displayDialog

        public void displayDialog​(S3Object[] objects,
                                  boolean modifyMode)
        Display the dialog with data - always use this method instead of setVisible.
        Parameters:
        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.
      • isModifyMode

        public boolean isModifyMode()
        Returns:
        true if the dialog allows the user to modify object metadata.
      • isModifyActionApproved

        public boolean isModifyActionApproved()
        Returns:
        true if the user approved the dialog to indicate that objects should be updated, false if the user cancelled the dialog.
      • getSourceObjectKeys

        public String[] getSourceObjectKeys()
        Returns:
        the original key names of the S3 objects that should be modified when this dialog is accepted. Because objects are modified in-place, these source key names will match the key names of the destination objects available from the getDestinationObjects() method.
      • getDestinationObjects

        public S3Object[] getDestinationObjects()
        Returns:
        objects containing updated metadata and Access Control List settings provided by the user. When this dialog is approved, the S3 objects should be updated in-place by copying over each object with an updated version from this list.