Class CmsFileInfo


  • public class CmsFileInfo
    extends com.google.gwt.core.client.JavaScriptObject
    A file object.

    Since:
    8.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Comparator<CmsFileInfo> INFO_COMPARATOR
      The file info comparator.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsFileInfo()
      Creates a simple JS file object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileName()
      Returns the file name.
      int getFileSize()
      Returns the file size.
      java.lang.String getFileSuffix()
      Returns the suffix of the file name with the dot at the beginning e.g.
      com.google.gwt.dom.client.InputElement getInputElement()
      Returns the associated input element if available.
      java.lang.String getOverrideFileName()
      Returns the file name to override the original one if set, or the original file name.
      void setOverrideFileName​(java.lang.String overrideFileName)
      Sets the file name to override the original one.
      • Methods inherited from class com.google.gwt.core.client.JavaScriptObject

        cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmsFileInfo

        protected CmsFileInfo()
        Creates a simple JS file object.

    • Method Detail

      • getFileName

        public final java.lang.String getFileName()
        Returns the file name.

        Returns:
        the file name
      • getFileSize

        public final int getFileSize()
        Returns the file size.

        Returns:
        the file size
      • getFileSuffix

        public final java.lang.String getFileSuffix()
        Returns the suffix of the file name with the dot at the beginning e.g. ".zip".

        Returns:
        the suffix of the file name
      • getInputElement

        public final com.google.gwt.dom.client.InputElement getInputElement()
        Returns the associated input element if available.

        Returns:
        the input element
      • getOverrideFileName

        public final java.lang.String getOverrideFileName()
        Returns the file name to override the original one if set, or the original file name.

        Returns:
        the override file name
      • setOverrideFileName

        public final void setOverrideFileName​(java.lang.String overrideFileName)
        Sets the file name to override the original one.

        Parameters:
        overrideFileName - the override file name