Class FolderProperty<C extends Folder>

    • Constructor Detail

      • FolderProperty

        public FolderProperty()
    • Method Detail

      • allowsParentToCreate

        public boolean allowsParentToCreate​(TopLevelItemDescriptor candidate)
        Determines if the parent container is allowed to create a new item of the given type, or copy from an existing item of the given type.
        Parameters:
        candidate - The type of the item being considered.
        Returns:
        false to prevent the container to create the children of the said type.
      • allowsParentToHave

        public boolean allowsParentToHave​(TopLevelItem candidate)
      • getFolderActions

        @NonNull
        public Collection<? extends Action> getFolderActions()
        Deprecated.
        Actions to be displayed in the folder page.

        Returning actions from this method allows a folder property to add them to the left navigation bar in the folder page.

        Returns:
        can be empty but never null.
        Since:
        3.14