> From: Alex Karasulu [mailto:[EMAIL PROTECTED] 
> 
> Here's my random thoughts,
> 
> Is there not a property change even mechanism in java beans 
> as well as as means to veto a property change if it is 
> constrained and the new value violates this constraint?  If 
> so there's gotta be a role for it to play in this situation.

Yes, but that veto mechanism only takes effect when you change
a property, and relies on the object being in a valid state
before the change. If the object is in an invalid state and
is trying to reach the closest valid state, then it is by no
means certain that the veto mechanism can decide whether to
veto the change or not.

> Also if the min value is set to above the max than another 
> approach might be to slide max to the min value to comply 
> with the constraint. Likewise if the new max is below the min 
> then slide the max down to the min value.

Sure.

Risk being that the user may not get what is expected - i.e.
what was configured.

/LS


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to