Class ButtonAndFieldHandler


  • public class ButtonAndFieldHandler
    extends java.lang.Object
    Helper class for IntelligentFormViewImpl to handle buttons and fields.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleFieldsForIndexMask​(boolean disabled)
      Handles the fields for index mask usage.
      void removeValidationMessages()
      Removes all error messages from the fields.
      void setButtonMode​(com.saperion.ngc.iform.IntelligentFormViewImpl.ButtonMode mode)
      Sets the buttons to disabled/enabled state according to the specified ButtonMode.
      void setButtonMode​(com.saperion.ngc.iform.IntelligentFormViewImpl.ButtonMode mode, boolean ignoreDisabledBtn)
      Sets the buttons to disabled/enabled state according to the specified ButtonMode.
      void setFieldsDisabledState​(boolean disabled)
      Sets the disabled state for all fields.
      void setFieldsReadonlyState​(boolean disabled)
      Sets the readonly state for all fields.
      void validateFields()
      Triggers the validation for all fields.
      • Methods inherited from class java.lang.Object

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

      • setButtonMode

        public void setButtonMode​(com.saperion.ngc.iform.IntelligentFormViewImpl.ButtonMode mode)
        Sets the buttons to disabled/enabled state according to the specified ButtonMode.
        Parameters:
        mode - button mode
      • setButtonMode

        public void setButtonMode​(com.saperion.ngc.iform.IntelligentFormViewImpl.ButtonMode mode,
                                  boolean ignoreDisabledBtn)
        Sets the buttons to disabled/enabled state according to the specified ButtonMode. If ignoreDisabledBtn is true and any button is in disabled state, it ignores all actions
        Parameters:
        mode - button mode
        ignoreDisabledBtn - flag to ignore disabled button
      • handleFieldsForIndexMask

        public void handleFieldsForIndexMask​(boolean disabled)
        Handles the fields for index mask usage.
        Parameters:
        disabled - set to true to disable all fields
      • setFieldsReadonlyState

        public void setFieldsReadonlyState​(boolean disabled)
        Sets the readonly state for all fields.
        Parameters:
        disabled - disabled state
      • setFieldsDisabledState

        public void setFieldsDisabledState​(boolean disabled)
        Sets the disabled state for all fields.
        Parameters:
        disabled - disabled state
      • validateFields

        public void validateFields()
        Triggers the validation for all fields.
      • removeValidationMessages

        public void removeValidationMessages()
        Removes all error messages from the fields.