Class CmsFileInfo

java.lang.Object
com.google.gwt.core.client.JavaScriptObject
org.opencms.gwt.client.ui.input.upload.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 final Comparator<CmsFileInfo>
    The file info comparator.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    final String
    Returns the file name.
    final int
    Returns the file size.
    final String
    Returns the suffix of the file name with the dot at the beginning e.g.
    final com.google.gwt.dom.client.InputElement
    Returns the associated input element if available.
    final String
    Returns the file name to override the original one if set, or the original file name.
    final void
    setOverrideFileName(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
  • Field Details

  • Constructor Details

    • CmsFileInfo

      protected CmsFileInfo()
      Creates a simple JS file object.

  • Method Details

    • getFileName

      public final 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 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 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(String overrideFileName)
      Sets the file name to override the original one.

      Parameters:
      overrideFileName - the override file name