Class CSSAssetReferences

All Implemented Interfaces:
EventListener, IGProp<String>, IReferencingGProp, Cloneable

public class CSSAssetReferences extends AssetReferences
CSS file references in the assets module folder.
Author:
Christopher Mindus
  • Constructor Details

    • CSSAssetReferences

      protected CSSAssetReferences()
      Creates a Asset References property with no name and with a null value.
    • CSSAssetReferences

      public CSSAssetReferences(Atom propertyAtom)
      Creates a Asset References property with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • clone

      public CSSAssetReferences clone()
      Clone.
      Overrides:
      clone in class AssetReferences
      Returns:
      The cloned instance.
    • sendCustomCSS

      public void sendCustomCSS(int cacheOperation, IPropMgrInfoProvider infoProvider, ITransactionCreator transCreator, ITransactionSender sender)
      Send custom CSS to client upon start.
      Parameters:
      cacheOperation - The cache operation: 0=don't cache, 1=cache upon use, 2=cache at start.
      infoProvider - The informtion provider.
      transCreator - The creator of send transactions.
      sender - Sends client transactions.
    • getFileTypeDescr

      protected String getFileTypeDescr()
      The file type description.
      Specified by:
      getFileTypeDescr in class AssetReferences
      Returns:
      The file type description, e.g. .
    • isValidFileExtension

      protected boolean isValidFileExtension(String ext)
      Validates each asset file for correct file extension.
      Specified by:
      isValidFileExtension in class AssetReferences
      Parameters:
      ext - The asset file extension to verify, without the "." prefix, meaning if there is no file extension, then an empty string is passed.
      Returns:
      true if extension is valid, false otherwise.
    • getErrorMessage

      protected String getErrorMessage(String fullPathOrURL)
      Gets the error message for an invalid file extension.
      Specified by:
      getErrorMessage in class AssetReferences
      Parameters:
      fullPathOrURL - The full file name or URL path.
      Returns:
      The error message.