Method setDescription is missing on com.vaadin.ui.Component

Hi everyone,

is there a reason why com.vaadin.ui.Component has no setDescription method but a getDescription method?

You can set a caption but not a description.

Kind regards

Markus

Hi,

as it’s written in docs
“Component is the top-level interface that is and must be implemented by all Vaadin components. Component is paired with
AbstractComponent
, which provides a default implementation for all the methods defined in this interface.”

Component

As you might check the AbstractComponent indeed contains the default implementation.

I am not sure through about the exact reason, why this method has been added to AbstractComponent only, but as Vaadin components extend AbstactComponent, wou will get setDescription also : )

Regards,
Anastasia