Class MojoFolderTransform

    • Field Detail

      • FP_SORT_ASCENDING

        public static final java.lang.String FP_SORT_ASCENDING
        See Also:
        Constant Field Values
      • FP_INCLUDE_OBJECT_DESC

        public static final java.lang.String FP_INCLUDE_OBJECT_DESC
        See Also:
        Constant Field Values
      • FP_OB_CONTEXT_ID

        public static final java.lang.String FP_OB_CONTEXT_ID
        See Also:
        Constant Field Values
      • FP_INCLUDE_ANCESTOR_INFO

        public static final java.lang.String FP_INCLUDE_ANCESTOR_INFO
        See Also:
        Constant Field Values
      • FP_INCLUDE_MODIFICATION_TIME

        public static final java.lang.String FP_INCLUDE_MODIFICATION_TIME
        See Also:
        Constant Field Values
      • FP_SEARCH_PATTERN

        public static final java.lang.String FP_SEARCH_PATTERN
        See Also:
        Constant Field Values
      • FP_INCLUDE_AVAILABLE_VIEW_MEDIA

        public static final java.lang.String FP_INCLUDE_AVAILABLE_VIEW_MEDIA
        See Also:
        Constant Field Values
      • FP_INCLUDE_HIDDEN_ANCESTORS

        public static final java.lang.String FP_INCLUDE_HIDDEN_ANCESTORS
        See Also:
        Constant Field Values
      • FP_SHOW_OBJECT_TAGS

        public static final java.lang.String FP_SHOW_OBJECT_TAGS
        See Also:
        Constant Field Values
    • Constructor Detail

      • MojoFolderTransform

        public MojoFolderTransform()
        Default no-argument constructor. Initializes formal parameters.
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Returns:
        The textual description of the transform.
      • initializeTransform

        public void initializeTransform​(Transformable data)
        Description copied from class: AbstractAppTransform

        This method initialize the private and protected fields of the transform, such as width and height. It also invokes the initializeWebComponent, initializeImages and initializeCss methods.

        This method is automatically called from the transform method. Transforms which would like to invoke other methods in this instance directly (for example, to invoke some render methods), need first to call this method to guarantee that the Transform is ready to generate output.
        Specified by:
        initializeTransform in interface AppTransform
        Overrides:
        initializeTransform in class AbstractAppTransform
        Parameters:
        data - the bean to transform.
      • createFolderBlock

        public Block createFolderBlock()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createObjectInfoBlock

        public Block createObjectInfoBlock​(WebObjectInfo objInfo,
                                           SimpleList ancs)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addCustomCSSClass

        public java.lang.String addCustomCSSClass​(WebObjectInfo objInfo)
        This method is created to be overridden by the users who want to customize the icons for each object. The users can create their own conditions along with different output strings indicating the custom css classes.
        Parameters:
        objInfo -
        Returns:
        A string indicates the CSS Class name for the icon of that object