Package io.jmix.ui.component
Class SingleFileUploadField.BeforeValueClearEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.SingleFileUploadField.BeforeValueClearEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- SingleFileUploadField
Describes before value clear event. Event is invoked before value clearing when user use clear button.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Prevents the file value from being cleared.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BeforeValueClearEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
isClearPrevented
public boolean isClearPrevented()- Returns:
- true if clearing the file value is prevented
-
preventClearAction
public void preventClearAction()Prevents the file value from being cleared.
-