Class FormUtil


  • public final class FormUtil
    extends java.lang.Object
    Provides utility-methods for IntelligentFormViews.
    • Method Detail

      • isQueryForm

        public static boolean isQueryForm​(FormMode formMode)
        Returns true if the form is any type of query-form.
        Parameters:
        formMode - mode of the form
        Returns:
        true if the form is a query-form
      • isQueryForm

        public static boolean isQueryForm​(IntelligentFormView form)
        Returns true if the form is any type of query-form.
        Parameters:
        form - the form
        Returns:
        true if the form is a query-form
      • isIndexForm

        public static boolean isIndexForm​(FormMode formMode)
        Returns true if the form is any type of index-form.
        Parameters:
        formMode - the mode of the form
        Returns:
        true if the form is a index-form
      • isIndexForm

        public static boolean isIndexForm​(IntelligentFormView form)
        Returns true if the form is any type of index-form.
        Parameters:
        form - the form
        Returns:
        true if the form is a index-form
      • canModifyDocuments

        public static boolean canModifyDocuments​(IntelligentFormView form)
        Checks if all viewers of the form are able to edit documents.
        Parameters:
        form - the form to check
        Returns:
        true if all viewers can edit document, otherwise false
      • canShowRevisions

        public static boolean canShowRevisions​(IntelligentFormView form)
        Checks if all viewers of the given form are able to show revisions.
        Parameters:
        form - the form to check
        Returns:
        true if all viewers can show revisions, otherwise false