Class CmsEditProperties

    • Method Detail

      • editProperties

        public static void editProperties​(org.opencms.util.CmsUUID structureId,
                                          I_CmsContextMenuHandler contextMenuHandler,
                                          boolean editName,
                                          java.lang.Runnable cancelHandler,
                                          boolean enableAdeTemplateSelect,
                                          CmsEditProperties.PropertyEditingContext editContext)
        Starts the property editor for the resource with the given structure id.

        Parameters:
        structureId - the structure id of a resource
        contextMenuHandler - the context menu handler
        editName - if true, provides a field for changing the file name
        cancelHandler - callback which is executed if the user cancels the property dialog
        enableAdeTemplateSelect - enables/disables special template selector
        editContext - the editing context
      • editPropertiesWithFileNavigation

        public static void editPropertiesWithFileNavigation​(org.opencms.util.CmsUUID structureId,
                                                            I_CmsContextMenuHandler contextMenuHandler,
                                                            boolean editName,
                                                            java.lang.Runnable cancelHandler,
                                                            boolean enableAdeTemplateSelect,
                                                            CmsEditProperties.PropertyEditingContext editContext,
                                                            CmsActiveFieldData prevFieldData)
        Starts the property editor for the resource with the given structure id.

        Parameters:
        structureId - the structure id of a resource
        contextMenuHandler - the context menu handler
        editName - if true, provides a field for changing the file name
        cancelHandler - callback which is executed if the user cancels the property dialog
        enableAdeTemplateSelect - enables/disables special template selector
        editContext - the editing context
        prevFieldData - the previous active field data (may be null)
      • openPropertyDialog

        public static void openPropertyDialog​(org.opencms.gwt.shared.property.CmsPropertiesBean result,
                                              I_CmsContextMenuHandler contextMenuHandler,
                                              boolean editName,
                                              java.lang.Runnable cancelHandler,
                                              boolean enableAdeTemplateSelect,
                                              CmsEditProperties.PropertyEditingContext editContext)
        Opens the property dialog and populates it with the data from a given CmsPropertiesBean.

        Parameters:
        result - the property data
        contextMenuHandler - the context menu handler
        editName - true if the name should be editable
        cancelHandler - the cancel handler
        enableAdeTemplateSelect - true if template selection should be enabled
        editContext - the edit context