>> showEllipsis would be a boolean style in LabelSkin.  Creating a subclass 
>> just to avoid an if statement seems a bit much :-)
> Yes, you have reason, but I was thinking at a simple way to avoid
> adding if and calculations (the current length of the generated
> string, when this has to be enabled, etc), so the current component
> could be not modified and keep the best performances without having to
> handle not-so-common cases ...
> And could be useful also for us to see (and to show) how to extend our
> components.

FWIW, I don't think this is a good use case for inheritance. I actually think 
it would be more difficult to implement this behavior in a sub-class. 

Reply via email to