A trait representing an object that has an objection to a particular action.
A trait representing an object that has an objection to a particular action.
This objection is manifested through a human readable vetoMessage which
would generally also be displayed in the GUI when calling tryResolveVeto.
For example, if trying to close a window that is in dirty state,
calling tryResolveVeto will display the veto message in a dialog to the user,
and the user can confirm the closure, which would result in a true return
value, or abort the closure, which would result in a false return type.
A trait representing an object that has an objection to a particular action. This objection is manifested through a human readable
vetoMessage
which would generally also be displayed in the GUI when callingtryResolveVeto
.For example, if trying to close a window that is in dirty state, calling
tryResolveVeto
will display the veto message in a dialog to the user, and the user can confirm the closure, which would result in atrue
return value, or abort the closure, which would result in afalse
return type.