Class EditStructureDialog

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
All Implemented Interfaces:
EventChild, EventChildHandler, LogEventChildHandler, Serializable, Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Framable

public class EditStructureDialog extends AbstractStructureDialog
Dialog shown when the structure of a document is being edited.
See Also:
  • Constructor Details

    • EditStructureDialog

      public EditStructureDialog()
  • Method Details

    • show

      public static void show(DocumentId documentId, List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> documentPages, BaseWindow parent, org.zkoss.zk.ui.event.EventListener eventListener, boolean commentEnabled, 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
    • uploadItem

      public void uploadItem()
      Description copied from class: AbstractStructureDialog
      Uploads a new item to add it to the document.
      Specified by:
      uploadItem in class AbstractStructureDialog
    • 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
    • removeItem

      public void removeItem()
      Description copied from class: AbstractStructureDialog
      Removes the selected item from the list.
      Specified by:
      removeItem in class AbstractStructureDialog
    • 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