Class EditStructureDialog

    • Constructor Detail

      • EditStructureDialog

        public EditStructureDialog()
    • Method Detail

      • show

        public static void show​(DocumentId documentId,
                                java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentPages,
                                BaseWindow parent,
                                org.zkoss.zk.ui.event.EventListener eventListener,
                                boolean commentEnabled,
                                java.lang.String defaultComment)
        Shows the EditStructureDialog.
        Parameters:
        documentId - ID of the document to edit
        documentPages - list of document page information
        parent - parent view
        eventListener - event listener
        defaultComment - default value for comment field
        commentEnabled - comment field enabled or not
      • addNewDocument

        protected org.zkoss.zul.Listitem addNewDocument​(org.zkoss.zk.ui.event.UploadEvent uploadEvent)
        Description copied from class: AbstractStructureDialog
        Adds a new item to the structure.
        Overrides:
        addNewDocument in class AbstractStructureDialog
        Parameters:
        uploadEvent - event with unploaded document
        Returns:
        newly created listitem or null if no item was added
      • showSelectedItem

        public void showSelectedItem()
        Shows the selected element in the preview.
      • getDocumentId

        public DocumentId getDocumentId()
        Returns:
        ID of the document that is being edited
      • setDocumentId

        public void setDocumentId​(DocumentId documentId)
        Parameters:
        documentId - ID of the document that is being edited