Class SingleFileUploadField.BeforeValueClearEvent

java.lang.Object
java.util.EventObject
io.jmix.ui.component.SingleFileUploadField.BeforeValueClearEvent
All Implemented Interfaces:
Serializable
Enclosing interface:
SingleFileUploadField

public static class SingleFileUploadField.BeforeValueClearEvent extends EventObject
Describes before value clear event. Event is invoked before value clearing when user use clear button.
See Also:
  • Constructor Details

  • Method Details

    • getSource

      public SingleFileUploadField getSource()
      Overrides:
      getSource in class EventObject
    • isClearPrevented

      public boolean isClearPrevented()
      Returns:
      true if clearing the file value is prevented
    • preventClearAction

      public void preventClearAction()
      Prevents the file value from being cleared.