Class Util

  • All Implemented Interfaces:
    Constants

    public class Util
    extends Object
    implements Constants
    Class with some useful methods.
    Since:
    4.5
    Author:
    Matteo Caruso - LogicalDOC
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • openFile

        public static void openFile​(File file)
        Opens and visualizes the selected file inside an archive.
        Parameters:
        file - The file to open
      • getAndOr

        public static Item[] getAndOr()
        Gets the option items for and/or flags
        Returns:
        the option items
      • getAvailableFields

        public static Item[] getAvailableFields​(String selectedTemplate)
        This method, evaluating all the criteria, retrieves all document fields plus all field from all the selected templates in some criteria.
        Parameters:
        selectedTemplate - the template to use.
        Returns:
        the option items
      • getDocumentFields

        public static Item[] getDocumentFields()
        This method retrieves all document fields
        Returns:
        the option items
      • getOperators

        public static Item[] getOperators​(int type)
        This method retrieves all operator fields for a specific criterion type.
        Parameters:
        type - The criterion type
        Returns:
        the option items
      • getLanguages

        public static Item[] getLanguages()
        Gets the option items for languages
        Returns:
        the option items
      • getTemplates

        public static Item[] getTemplates()
        Gets the option items for templates selection
        Returns:
        the option items
      • getYesNo

        public static Item[] getYesNo()
        Gets the option items for yes/no flags
        Returns:
        the option items