Class Utils


  • public class Utils
    extends java.lang.Object
    Utility class for some static functions for handling and converting Strings and so on.
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      Modifier and Type Method Description
      static void add​(java.awt.Container container, java.awt.GridBagLayout gridBagLayout, java.awt.Component c, int gridx, int gridy)  
      static void add​(java.awt.Container container, java.awt.GridBagLayout gridBagLayout, java.awt.Component c, int gridx, int gridy, int ipadx, int ipady)  
      static void add​(java.awt.Container cont, java.awt.GridBagLayout gbl, java.awt.Component c, int x, int y, int width, int height, double weightx, double weighty, int ipadx, int ipady)  
      static void addComponent​(java.awt.Container cont, java.awt.GridBagLayout gbl, java.awt.Component c, int x, int y, int width, int height, double weightx, double weighty, int ipadx, int ipady, java.awt.Insets insets)  
      static boolean checkIfStringIsEmpty​(java.lang.String string)  
      static int countFilesAndDirectoriesInEdalDirectory​(ClientPrimaryDataEntity srcDir)  
      static int countObjects​(java.awt.Frame parent, java.nio.file.Path srcDir)  
      static int countObjectsWithErrorsAndWarnings​(java.awt.Frame parent, java.nio.file.Path srcDir)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NumberOfDirectories

        public static int NumberOfDirectories
      • NumberOfFiles

        public static int NumberOfFiles
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • checkIfStringIsEmpty

        public static boolean checkIfStringIsEmpty​(java.lang.String string)
      • countObjects

        public static int countObjects​(java.awt.Frame parent,
                                       java.nio.file.Path srcDir)
      • countObjectsWithErrorsAndWarnings

        public static int countObjectsWithErrorsAndWarnings​(java.awt.Frame parent,
                                                            java.nio.file.Path srcDir)
      • addComponent

        public static void addComponent​(java.awt.Container cont,
                                        java.awt.GridBagLayout gbl,
                                        java.awt.Component c,
                                        int x,
                                        int y,
                                        int width,
                                        int height,
                                        double weightx,
                                        double weighty,
                                        int ipadx,
                                        int ipady,
                                        java.awt.Insets insets)
      • add

        public static void add​(java.awt.Container container,
                               java.awt.GridBagLayout gridBagLayout,
                               java.awt.Component c,
                               int gridx,
                               int gridy)
      • add

        public static void add​(java.awt.Container cont,
                               java.awt.GridBagLayout gbl,
                               java.awt.Component c,
                               int x,
                               int y,
                               int width,
                               int height,
                               double weightx,
                               double weighty,
                               int ipadx,
                               int ipady)
      • add

        public static void add​(java.awt.Container container,
                               java.awt.GridBagLayout gridBagLayout,
                               java.awt.Component c,
                               int gridx,
                               int gridy,
                               int ipadx,
                               int ipady)